Skip to content

Aliasing Distribution Causes Namespace Collision - #46

Merged
estebanz01 merged 2 commits into
estebanz01:masterfrom
rubyDoomsday:bug/remove-aliasing-distribution
Oct 7, 2021
Merged

Aliasing Distribution Causes Namespace Collision#46
estebanz01 merged 2 commits into
estebanz01:masterfrom
rubyDoomsday:bug/remove-aliasing-distribution

Conversation

@ghost

@ghost ghost commented Sep 13, 2021

Copy link
Copy Markdown

Description
The gem loads prior to the main application code and aliasing the gems
namespace to a root namespace creates conflicts with main app. This
update removes the aliasing to prevent this from happening.

Relates to Issue
#45

**Description**
The gem loads prior to the main application code and aliasing the gems
namespace to a root namespace creates conflicts with main app. This
update removes the aliasing to prevent this from happening.

**Relates to Issue**
estebanz01#45
@estebanz01

Copy link
Copy Markdown
Owner

Hey! thanks for your PR. I'll take a look at it.

The problem with this approach is that you are removing the aliasing defined for distributions, so I'd need to do some lookup on usage of the gem dependents before merging it.

@ghost

ghost commented Sep 15, 2021

Copy link
Copy Markdown
Author

Hey! thanks for your PR. I'll take a look at it.

The problem with this approach is that you are removing the aliasing defined for distributions, so I'd need to do some lookup on usage of the gem dependents before merging it.

Thanks! I assumed that the aliasing was only in place for convenience in testing. I hadn't thought that it had downstream effects. I would have thought the #defined?() check would have prevented collisions with the main app, but apparently not ☹️. I am definitely open to suggestions on how to better approach this. FWIW, I was able to get our application UAR by switching to the forked version for the time being and everything appears to be on the up and up.

If this is in fact a breaking change I can modify the version to a major bump instead. Let me know if there is anything I can do to help! 😄

@estebanz01

Copy link
Copy Markdown
Owner

@beccachapin sorry the delay! Let's release this as a major bump 👍

removes distribution namespace aliasing

**Description**
This update remove the `Distribution` name space aliasing. To avoid
issues it is recommended that any references to `Distribution` are
replaced with the full name path `Statistics::Distribution` to avoid any
disruption.
@ghost

ghost commented Sep 29, 2021

Copy link
Copy Markdown
Author

@estebanz01 Updated to version 3.0. I am a little unclear why the checks aren't running. Is there something I need to do?

@estebanz01

Copy link
Copy Markdown
Owner

@beccachapin nah. It's something related to permissions that I never figured it out. Approved! Thaaaanks!

@estebanz01
estebanz01 merged commit 9609a9b into estebanz01:master Oct 7, 2021
@estebanz01

Copy link
Copy Markdown
Owner

I'll release it later today. 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants