Updating Gemfile to require jeweler and rakefile to use Bundler to ensure dependencies are installed.
This commit is contained in:
parent
163f5c64be
commit
6c6a0d22b9
6
Gemfile
6
Gemfile
|
@ -1,6 +1,10 @@
|
||||||
source :gemcutter
|
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
|
group :test do
|
||||||
# Database Adapters
|
# Database Adapters
|
||||||
|
|
11
Rakefile
11
Rakefile
|
@ -1,10 +1,11 @@
|
||||||
require 'rubygems'
|
require "bundler"
|
||||||
|
Bundler.setup
|
||||||
|
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'jeweler'
|
require 'jeweler'
|
||||||
require 'bundler'
|
|
||||||
Jeweler::Tasks.new do |gem|
|
Jeweler::Tasks.new do |gem|
|
||||||
gem.name = "activerecord-import"
|
gem.name = "activerecord-import"
|
||||||
gem.summary = %Q{Bulk-loading extension for ActiveRecord}
|
gem.summary = %Q{Bulk-loading extension for ActiveRecord}
|
||||||
|
@ -13,7 +14,11 @@ begin
|
||||||
gem.homepage = "http://github.com/zdennis/activerecord-import"
|
gem.homepage = "http://github.com/zdennis/activerecord-import"
|
||||||
gem.authors = ["Zach Dennis"]
|
gem.authors = ["Zach Dennis"]
|
||||||
gem.files = FileList["VERSION", "Rakefile", "README*", "lib/**/*"]
|
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
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue