Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 14c3d3ca61
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (47 sloc) 1.51 kb
unless defined?(AB::Gems)
require 'rubygems'
module AB
class Gems
VERSIONS = {
:active_wrapper => '=0.3.3',
:cucumber => '=0.6.2',
:haml => '=2.2.17',
:json => '=1.4.3',
:lilypad => '=0.3.0',
:newrelic_rpm => '=2.10.6',
:'rack-test' => '=0.5.3',
:rake => '=0.8.7',
:rspec => '=1.3.0',
:sinatra => '=1.0',
:whenever => '=0.6.2',
:with_pid => '=0.1.3'
}
TYPES = {
:console => [ :active_wrapper, :sinatra ],
:dj => [ :with_pid ],
:gemspec => [ :active_wrapper, :haml, :json, :lilypad, :newrelic_rpm, :sinatra, :whenever, :with_pid ],
:gemspec_dev => [ :cucumber, :rspec, :'rack-test' ],
:lib => [ :active_wrapper, :haml, :json, :lilypad, :newrelic_rpm, :sinatra ],
:rake => [ :active_wrapper, :rake, :rspec ],
: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
Jump to Line
Something went wrong with that request. Please try again.