Skip to content

Commit

Permalink
Only warn when the rubygems version is too old
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarranza committed Oct 21, 2015
1 parent 02e7680 commit fb066b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion gemstash.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ you push your own private gems as well."
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
spec.require_paths = ["lib"]
spec.required_rubygems_version = "~> 2.4"

spec.add_runtime_dependency "dalli", "~> 2.7"
spec.add_runtime_dependency "lru_redux", "~> 1.1"
Expand Down
6 changes: 3 additions & 3 deletions lib/gemstash/cli/start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def store_daemonized
end

def check_rubygems_version
raise "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))
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))
end

def daemonize?
Expand Down

0 comments on commit fb066b5

Please sign in to comment.