Sha256: 4e3e9639f909e4e4ac149cda9c0ca1dd25a72d66d5a73c7e38849492d669c784
Contents?: true
Size: 1.03 KB
Versions: 22
Compression:
Stored size: 1.03 KB
Contents
unless defined?(SmartAsset::Gems) require 'rubygems' class SmartAsset class Gems VERSIONS = { :framework_fixture => '0.1.2', :'rack-test' => '0.5.6', :rake => '=0.8.7', :rspec => '=1.3.1' } TYPES = { :gemspec => [], :gemspec_dev => [ :rspec ], :lib => [], :rake => [ :rake, :rspec ], :spec_first => [ :framework_fixture ], :spec => [ :'rack-test', :rspec ] } class <<self def lockfile file = File.expand_path('../../../gems', __FILE__) unless File.exists?(file) File.open(file, 'w') do |f| Gem.loaded_specs.each do |key, value| f.puts "#{key} #{value.version.version}" end end end end def require(type=nil) (TYPES[type] || TYPES.values.flatten.compact).each do |name| gem name.to_s, VERSIONS[name] end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems