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

Version Path
smart_asset-0.5.3 lib/smart_asset/gems.rb
smart_asset-0.5.2 lib/smart_asset/gems.rb
smart_asset-0.5.1 lib/smart_asset/gems.rb
smart_asset-0.5.0 lib/smart_asset/gems.rb
smart_asset-0.4.7 lib/smart_asset/gems.rb
smart_asset-0.4.6 lib/smart_asset/gems.rb
smart_asset-0.4.5 lib/smart_asset/gems.rb
smart_asset-0.4.4 lib/smart_asset/gems.rb
smart_asset-0.4.3 lib/smart_asset/gems.rb
smart_asset-0.4.2 lib/smart_asset/gems.rb
smart_asset-0.4.1 lib/smart_asset/gems.rb
smart_asset-0.4.0 lib/smart_asset/gems.rb
smart_asset-0.3.4 lib/smart_asset/gems.rb
smart_asset-0.3.2 lib/smart_asset/gems.rb
smart_asset-0.3.1 lib/smart_asset/gems.rb
smart_asset-0.2.3 lib/smart_asset/gems.rb
smart_asset-0.2.2 lib/smart_asset/gems.rb
smart_asset-0.2.1 lib/smart_asset/gems.rb
smart_asset-0.2.0 lib/smart_asset/gems.rb
smart_asset-0.1.3 lib/smart_asset/gems.rb