New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 4 support #79
Rails 4 support #79
Changes from all commits
cdf35c5
a8e8b62
1cdd79f
c18bfc0
b1d29ea
6c728b1
2c9112b
ccc5b04
b1e8582
4bde79c
965d0b3
57c9043
24417ca
8634cfc
dfd6520
9017c9a
c7d8a2a
39c855a
725cea1
2df47df
89db29c
a6f73d6
adc345e
7acc7aa
d48d1ee
161dc35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,38 @@ | ||
source :gemcutter | ||
source 'https://rubygems.org' | ||
|
||
gem "activerecord", "~> 3.0" | ||
gemspec | ||
|
||
group :development do | ||
gem "rake" | ||
gem "jeweler", ">= 1.4.0" | ||
# Database Adapters | ||
platforms :ruby do | ||
gem "mysql2", "~> 0.3.0" | ||
gem "pg", "~> 0.9" | ||
gem "sqlite3-ruby", "~> 1.3.1" | ||
gem "seamless_database_pool", "~> 1.0.13" | ||
end | ||
|
||
group :test do | ||
# Database Adapters | ||
platforms :ruby do | ||
gem "mysql", "~> 2.8.1" | ||
gem "mysql2", "~> 0.3.0" | ||
gem "pg", "~> 0.9" | ||
gem "sqlite3-ruby", "~> 1.3.1" | ||
gem "seamless_database_pool", "~> 1.0.11" | ||
end | ||
|
||
platforms :jruby do | ||
gem "jdbc-mysql" | ||
gem "activerecord-jdbcmysql-adapter" | ||
end | ||
|
||
# Support libs | ||
gem "factory_girl", "~> 1.3.3" | ||
gem "delorean", "~> 0.2.0" | ||
|
||
# Debugging | ||
platforms :mri_18 do | ||
gem "ruby-debug", "= 0.10.4" | ||
end | ||
|
||
platforms :jruby do | ||
gem "ruby-debug-base", "= 0.10.4" | ||
gem "ruby-debug", "= 0.10.4" | ||
end | ||
|
||
platforms :mri_19 do | ||
gem "debugger" | ||
end | ||
platforms :jruby do | ||
gem "jdbc-mysql" | ||
gem "activerecord-jdbcmysql-adapter" | ||
end | ||
|
||
# Support libs | ||
gem "factory_girl", "~> 4.2.0" | ||
gem "delorean", "~> 0.2.0" | ||
|
||
# Debugging | ||
platforms :mri_18 do | ||
gem "ruby-debug", "= 0.10.4" | ||
end | ||
|
||
platforms :jruby do | ||
gem "ruby-debug-base", "= 0.10.4" | ||
gem "ruby-debug", "= 0.10.4" | ||
end | ||
|
||
platforms :mri_19, :mri_20 do | ||
gem "debugger" | ||
end | ||
|
||
version = ENV['RAILS_VERSION'] || "3.2" | ||
|
||
eval_gemfile File.expand_path("../gemfiles/#{version}.gemfile", __FILE__) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really like how you're loading gemfiles for different versions of Rails. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I wasn't sure whichever is better. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouch, replied to wrong message. Thanks, I think Steve Klabnik blogged about this so this is his idea :) |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,22 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE DIRECTLY | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' | ||
# -*- encoding: utf-8 -*- | ||
require File.expand_path('../lib/activerecord-import/version', __FILE__) | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "activerecord-import" | ||
s.version = "0.2.10" | ||
Gem::Specification.new do |gem| | ||
gem.authors = ["Zach Dennis"] | ||
gem.email = ["zach.dennis@gmail.com"] | ||
gem.summary = "Bulk-loading extension for ActiveRecord" | ||
gem.description = "Extraction of the ActiveRecord::Base#import functionality from ar-extensions for Rails 3 and beyond" | ||
gem.homepage = "http://github.com/zdennis/activerecord-import" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Zach Dennis"] | ||
s.date = "2012-08-30" | ||
s.description = "Extraction of the ActiveRecord::Base#import functionality from ar-extensions for Rails 3 and beyond" | ||
s.email = "zach.dennis@gmail.com" | ||
s.extra_rdoc_files = [ | ||
"README.markdown" | ||
] | ||
s.files = [ | ||
"README.markdown", | ||
"Rakefile", | ||
"VERSION", | ||
"lib/activerecord-import.rb", | ||
"lib/activerecord-import/active_record/adapters/abstract_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/jdbcmysql_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/mysql2_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/mysql_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/postgresql_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb", | ||
"lib/activerecord-import/active_record/adapters/sqlite3_adapter.rb", | ||
"lib/activerecord-import/adapters/abstract_adapter.rb", | ||
"lib/activerecord-import/adapters/mysql_adapter.rb", | ||
"lib/activerecord-import/adapters/postgresql_adapter.rb", | ||
"lib/activerecord-import/adapters/sqlite3_adapter.rb", | ||
"lib/activerecord-import/base.rb", | ||
"lib/activerecord-import/import.rb", | ||
"lib/activerecord-import/mysql.rb", | ||
"lib/activerecord-import/mysql2.rb", | ||
"lib/activerecord-import/postgresql.rb", | ||
"lib/activerecord-import/sqlite3.rb", | ||
"lib/activerecord-import/synchronize.rb" | ||
] | ||
s.homepage = "http://github.com/zdennis/activerecord-import" | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = "1.8.24" | ||
s.summary = "Bulk-loading extension for ActiveRecord" | ||
gem.files = `git ls-files`.split($\) | ||
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.name = "activerecord-import" | ||
gem.require_paths = ["lib"] | ||
gem.version = ActiveRecord::Import::VERSION | ||
|
||
if s.respond_to? :specification_version then | ||
s.specification_version = 3 | ||
gem.required_ruby_version = ">= 1.9.2" | ||
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<activerecord>, ["~> 3.0"]) | ||
s.add_development_dependency(%q<rake>, [">= 0"]) | ||
s.add_development_dependency(%q<jeweler>, [">= 1.4.0"]) | ||
s.add_runtime_dependency(%q<activerecord>, ["~> 3.0"]) | ||
else | ||
s.add_dependency(%q<activerecord>, ["~> 3.0"]) | ||
s.add_dependency(%q<rake>, [">= 0"]) | ||
s.add_dependency(%q<jeweler>, [">= 1.4.0"]) | ||
s.add_dependency(%q<activerecord>, ["~> 3.0"]) | ||
end | ||
else | ||
s.add_dependency(%q<activerecord>, ["~> 3.0"]) | ||
s.add_dependency(%q<rake>, [">= 0"]) | ||
s.add_dependency(%q<jeweler>, [">= 1.4.0"]) | ||
s.add_dependency(%q<activerecord>, ["~> 3.0"]) | ||
end | ||
gem.add_runtime_dependency "activerecord", ">= 3.0" | ||
gem.add_development_dependency "rake" | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
platforms :ruby do | ||
gem 'mysql', '~> 2.8.1' | ||
gem 'activerecord', '~> 3.1.0' | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
platforms :ruby do | ||
gem 'mysql', '~> 2.8.1' | ||
gem 'activerecord', '~> 3.2.0' | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
platforms :ruby do | ||
gem 'mysql', '~> 2.9' | ||
gem 'activerecord', '~> 4.0.0.rc2' | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RAILS_VERSION
is shorter but technically it should beACTIVERECORD_VERSION
orAR_VERSION
. Thoughts?