I have the following in my Gemfile
:
gem 'rspec-rails', '2.8.1'
Is there a command available which indicates if there is a more update version available (or maybe list all versions)?
I understand that RubyGems does list current versions.
I looked at bundle update
( http://docs.rubygems.org/read/chapter/10#page40 ) but it doesn't seem to have a "dry-run" option.
gem outdated -r |grep rspec-rails
(see gem help outdated
)
In your code you can write something like that:
if `gem outdated -r`.include? "rspec-rails"
# ....
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.