Skip to content

Commit

Permalink
Update Gemfile for Bundler RC5
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Aug 14, 2010
1 parent 0c41f6d commit 25c9a36
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 29 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pkg/*
Vagrantfile
.vagrant
.bundle
*.lock
cookbooks/*
_site/*
!templates/*
Expand Down
45 changes: 45 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
GIT
remote: git://github.com/mitchellh/virtualbox.git
revision: 69db76b
specs:
virtualbox (0.7.5)
ffi (>= 0.6.3)

PATH
remote: .
specs:
vagrant (0.5.3.dev)
archive-tar-minitar (= 0.5.2)
json (>= 1.4.3)
mario (~> 0.0.6)
net-scp (>= 1.0.2)
net-ssh (>= 2.0.19)
virtualbox (~> 0.7.3)

GEM
remote: http://rubygems.org/
specs:
archive-tar-minitar (0.5.2)
contest (0.1.2)
ffi (0.6.3)
rake (>= 0.8.7)
json (1.4.6)
mario (0.0.6)
mocha (0.9.8)
rake
net-scp (1.0.2)
net-ssh (>= 1.99.1)
net-ssh (2.0.23)
rake (0.8.7)
yard (0.5.8)

PLATFORMS
ruby

DEPENDENCIES
contest (>= 0.1.2)
mocha
rake
vagrant!
virtualbox!
yard
31 changes: 3 additions & 28 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
require 'rubygems'
require 'bundler/setup'
require 'rake/testtask'
Bundler::GemHelper.install_tasks

task :default => :test

def gemspec
@gemspec ||= begin
file = File.expand_path('../vagrant.gemspec', __FILE__)
eval(File.read(file), binding, file)
end
end

begin
require 'rake/gempackagetask'
rescue LoadError
task(:gem) { $stderr.puts '`gem install rake` to package gems' }
else
Rake::GemPackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
task :gem => :gemspec
end

desc "install the gem locally"
task :install => :package do
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-ri --no-rdoc}
end

desc "validate the gemspec"
task :gemspec do
gemspec.validate
end

Rake::TestTask.new do |t|
t.libs << "test"
t.pattern = 'test/**/*_test.rb'
Expand Down

0 comments on commit 25c9a36

Please sign in to comment.