-
Notifications
You must be signed in to change notification settings - Fork 752
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
Fix "Already initialized constant" warnings when running #298
Conversation
There are more |
@rumpelsepp Thanks, I updated the pull request. There are also more |
@jneen, any thoughts? |
@@ -2,6 +2,15 @@ | |||
|
|||
# stdlib | |||
require 'pathname' | |||
require_relative 'rouge/version' |
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.
require_relative
isn't available on 1.8.7
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.
Given the .travis.yml seems to test a minimum version of Ruby v1.9.3, I don't think this should be a problem.
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.
But why require_relative
over 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.
Maybe the intent is more clear with require_relative
On 15 aug 2015, at 20:21, Josh Cheek [email protected] wrote:
In lib/rouge.rb:
@@ -2,6 +2,15 @@
stdlib
require 'pathname'
+require_relative 'rouge/version'
But why not just use require?—
Reply to this email directly or view it on GitHub.
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.
I think require_relative
is okay, for now. @jneen what are your thoughts on this?
On Aug 15, 2015, at 5:56 PM, "Patrik Ragnarsson" [email protected] wrote:
In lib/rouge.rb:
@@ -2,6 +2,15 @@
stdlib
require 'pathname'
+require_relative 'rouge/version'
Maybe the intent is more clear with require_relative
…
—
Reply to this email directly or view it on GitHub.
👍 |
3 similar comments
👍 |
👍 |
👍 |
Are there any issues with this left open? I'd like to get this merged to get the warnings in my application disappear. Look good to me 👍 |
👍 |
3 similar comments
👍 |
👍 |
👍 |
Closing for now, and seconding the intent to not depend on |
This should be fixed in v1.10.0. |
Thanks and welcome back, @jneen! Glad to see the new release. I already submitted an update to GitLab: |
:] |
This builds upon https://github.com/rumpelsepp/rugments/commit/e6bdd4eeed47670710d48f53c4b7759a35f1f348, but ensues the specs and
rackup
app work.Closes #296