Conversation
|
My bad, fixing |
There was a problem hiding this comment.
you can update with just gem update --system :)
c89a629 to
4443d84
Compare
Since gemstash will only support RubyGems >= 2.4 (rubygems/gemstash#32), we only set this header in RubyGems 2.0+.
Since gemstash will only support RubyGems >= 2.4 (rubygems/gemstash#32), we only set this header in RubyGems 2.0+.
Since gemstash will only support RubyGems >= 2.4 (rubygems/gemstash#32), we only set this header in RubyGems 2.0+.
Since gemstash will only support RubyGems >= 2.4 (rubygems/gemstash#32), we only set this header in RubyGems 2.0+.
|
Are we good to go here? |
4443d84 to
fb066b5
Compare
There was a problem hiding this comment.
How about gem requirement of ">= 2.4" instead? Otherwise this will give an erroneous too old message if they go to 3.0.
There was a problem hiding this comment.
Also, do you think it makes sense to colorize the message as red or yellow to draw more attention to it, or is that overkill?
There was a problem hiding this comment.
Yep to both, I like colors, red is so warm.
On Thu, Oct 22, 2015 at 1:25 AM, Mike Virata-Stone <notifications@github.com
wrote:
In lib/gemstash/cli/start.rb
#32 (comment):@@ -36,6 +37,12 @@ def store_daemonized
Gemstash::Env.daemonized = daemonize?
end
def check_rubygems_versionSTDERR.puts("Rubygems version is too old, please update rubygems by running: " \"gem update --system") unlessGem::Requirement.new("~> 2.4").satisfied_by?(Gem::Version.new(Gem::VERSION))Also, do you think it makes sense to colorize the message as red or yellow
to draw more attention to it, or is that overkill?—
Reply to this email directly or view it on GitHub
https://github.com/bundler/gemstash/pull/32/files#r42699875.
133102b to
9015877
Compare
|
👍 |
To prevent having weird errors like
TypeError: no implicit conversion of StringIO into Stringfor using old versions of rubygems, we enforce the use of anything over 2.4.There are 2 lines of defense:
In the latter, we are also going to show how to fix the problem in the error message.
cc @indirect @smellsblue