Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maiha/60997 to your computer and use it in GitHub Desktop.
Save maiha/60997 to your computer and use it in GitHub Desktop.
Problem:
"merb --version" doesn't work
Check:
(maiha-no-macbook-air)<~>% ruby19 -r rubygems -e "gem 'merb-core', '>= 0'"
<internal:gem_prelude>:249:in `push_gem_version_on_load_path': undefined method `<=>' for nil:NilClass (NoMethodError)
from <internal:gem_prelude>:14:in `gem'
from -e:1:in `<main>'
(maiha-no-macbook-air)<~>% ruby19 -r rubygems -e "gem 'merb-core', '>=0'"
/Users/maiha/ruby/lib/ruby19/1.9.1/rubygems.rb:636:in `report_activate_error': Could not find RubyGem merb-core (>= 0) (Gem::LoadError)
no spaces works sane although gems are not installed yet.
Conclusion:
gem version should not contain any spaces
Patch: (bin/merb)
- version = ">= 0"
+ version = ">=0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment