-
Notifications
You must be signed in to change notification settings - Fork 46
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
Reduce number of requires #92
base: master
Are you sure you want to change the base?
Conversation
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.
If a ruby file uses a library, I'm all for having it explicitly require
it. Otherwise, that file can only run by using an opaque loading mechanism where the libs required globally are known.
@@ -1,6 +1,7 @@ | |||
require 'rubygems' | |||
require 'rake' | |||
require 'date' | |||
require File.expand_path('../lib/papertrail/version', __FILE__) |
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.
lib/
should be in the path when this is run so "papertrail/version"
should be all that's necessary to require.
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.
Nope. Doesn't work 😢
@lmarburger I waffled on what made more sense with requiring papertrail, and your comment makes me think maybe I chose the wrong course. Would it be better to put the |
91e4f32
to
ce5ef0f
Compare
ce5ef0f
to
28a3476
Compare
No description provided.