Skip to content

Commit

Permalink
Rubygems message in red, and rubygems version greater or equal than 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranza committed Oct 22, 2015
1 parent f7edf1e commit 9015877
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/gemstash/cli/start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def store_daemonized
end

def check_rubygems_version
STDERR.puts("Rubygems version is too old, please update rubygems by running: " \
"gem update --system") unless
Gem::Requirement.new("~> 2.4").satisfied_by?(Gem::Version.new(Gem::VERSION))
@cli.say(@cli.set_color("Rubygems version is too old, " \
"please update rubygems by running: " \
"gem update --system", :red)) unless
Gem::Requirement.new(">= 2.4").satisfied_by?(Gem::Version.new(Gem::VERSION))
end

def daemonize?
Expand Down

0 comments on commit 9015877

Please sign in to comment.