-
Notifications
You must be signed in to change notification settings - Fork 23
Carry commits from newrelic #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Carry commits from newrelic #16
Conversation
dblock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what tests should be modified, but tests should be modified ;)
Maybe separate the whole dependency manifest stuff into a different PR?
Needs documentation, changelog, etc.
lib/gem-licenses.rb
Outdated
| @@ -1 +1,10 @@ | |||
| require 'gem_licenses' | |||
|
|
|||
| if defined?(Rails) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should live in its own file and be loaded via the above require. See how other gems do this.
lib/gem/specification.rb
Outdated
|
|
||
| # manually clean up some cruft | ||
| after = before.collect do |license| | ||
| stringified = license.to_s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicking, but this could be a when with all three values an license.to.s_upcase.
lib/gem/specification.rb
Outdated
|
|
||
| def log_warning(message) | ||
| warn message if debugging? | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you mention this should be a logger.
|
@dblock Thanks for looking at it - any kind of feedback about this is great.
I've now realized that |
|
Remaining things are logger (getting rid of |
|
It’s a nice evening for it, so perhaps tonight, in the Copenhagen time zone.
… On 6 Nov 2017, at 21:47, Daniel Doubrovkine (dB.) @dblockdotorg ***@***.***> wrote:
Remaining things are logger (getting rid of debugging?), changelog/readme.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
I am still half confused about to_dependency_manifest.rb btw, so maybe split that into a different PR? |
|
@dblock I made the simple decision to follow the logging/output style of the parent class Gem::Specification - use |
|
(That's it, for tonight. I'm out of time. See you soon!) |
This PR carries commits mentioned in #16.
Questions for reviewer:
dependency_manifest.ymlcodepath in the gem, or can we offerbeforeandafterhooks in the Rake task, to offer manipulability of the licenses information gathered?Things that stand out:
Replaced.ENV['DEBUG']to enable "debug mode" could become a logger insteaddependency_manifestthings to its own PR