Guest User

Untitled

a guest
Feb 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. require 'rubygems'
  2.  
  3. gem = Gem::Dependency.new('rails', '=2.1.2')
  4. matches = Gem.source_index.find_name(gem.name, gem.version_requirements)
  5. matches.last.runtime_dependencies.each do |dep_gem|
  6. puts "#{dep_gem.name}, #{dep_gem.version_requirements}" # => nil, nil, nil, nil, nil, nil
  7. end
  8. # >> rake, >= 0.8.1
  9. # >> activesupport, = 2.1.2
  10. # >> activerecord, = 2.1.2
  11. # >> actionpack, = 2.1.2
  12. # >> actionmailer, = 2.1.2
  13. # >> activeresource, = 2.1.2
Add Comment
Please, Sign In to add comment