Skip to content

Commit

Permalink
add gemfiles for activerecord 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ronen committed Apr 19, 2016
1 parent 1ab3a2b commit d294f53
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/gemfiles/activerecord-5.0/Gemfile.base.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eval File.read File.expand_path('../../Gemfile.base', __FILE__)

gem "activerecord", ">= 5.0.0.beta1", "< 5.1"
10 changes: 10 additions & 0 deletions templates/gemfiles/activerecord-5.0/Gemfile.mysql2.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "mysql2"
end

platform :jruby do
gem 'activerecord-jdbcmysql-adapter'
end
10 changes: 10 additions & 0 deletions templates/gemfiles/activerecord-5.0/Gemfile.postgresql.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "pg"
end

platform :jruby do
gem 'activerecord-jdbcpostgresql-adapter'
end
10 changes: 10 additions & 0 deletions templates/gemfiles/activerecord-5.0/Gemfile.sqlite3.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "pathname"
eval(Pathname.new(__FILE__).dirname.join("Gemfile.base").read, binding)

platform :ruby do
gem "sqlite3"
end

platform :jruby do
gem 'activerecord-jdbcsqlite3-adapter', '>=1.3.0.beta2'
end

0 comments on commit d294f53

Please sign in to comment.