Updating Gemfile to require jeweler and rakefile to use Bundler to ensure dependencies are installed.

This commit is contained in:
Zach Dennis 2010-09-26 20:46:02 -04:00
parent 163f5c64be
commit 6c6a0d22b9
2 changed files with 13 additions and 4 deletions

View file

@ -1,6 +1,10 @@
source :gemcutter
gem "rails", ">= 3.0.0.rc"
gem "rails", ">= 3.0.0rc"
group :development do
gem "jeweler", ">= 1.4.0"
end
group :test do
# Database Adapters

View file

@ -1,10 +1,11 @@
require 'rubygems'
require "bundler"
Bundler.setup
require 'rake'
require 'rake/testtask'
begin
require 'jeweler'
require 'bundler'
Jeweler::Tasks.new do |gem|
gem.name = "activerecord-import"
gem.summary = %Q{Bulk-loading extension for ActiveRecord}
@ -13,7 +14,11 @@ begin
gem.homepage = "http://github.com/zdennis/activerecord-import"
gem.authors = ["Zach Dennis"]
gem.files = FileList["VERSION", "Rakefile", "README*", "lib/**/*"]
gem.add_bundler_dependencies
bundler = Bundler.load
bundler.dependencies_for(:default).each do |dependency|
gem.add_dependency dependency.name, *dependency.requirements_list
end
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end