diff --git a/templates/gemfiles/activerecord-5.0/Gemfile.base.erb b/templates/gemfiles/activerecord-5.0/Gemfile.base.erb new file mode 100644 index 0000000..b583c0f --- /dev/null +++ b/templates/gemfiles/activerecord-5.0/Gemfile.base.erb @@ -0,0 +1,3 @@ +eval File.read File.expand_path('../../Gemfile.base', __FILE__) + +gem "activerecord", ">= 5.0.0.beta1", "< 5.1" diff --git a/templates/gemfiles/activerecord-5.0/Gemfile.mysql2.erb b/templates/gemfiles/activerecord-5.0/Gemfile.mysql2.erb new file mode 100644 index 0000000..f6e58e3 --- /dev/null +++ b/templates/gemfiles/activerecord-5.0/Gemfile.mysql2.erb @@ -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 diff --git a/templates/gemfiles/activerecord-5.0/Gemfile.postgresql.erb b/templates/gemfiles/activerecord-5.0/Gemfile.postgresql.erb new file mode 100644 index 0000000..2c00e63 --- /dev/null +++ b/templates/gemfiles/activerecord-5.0/Gemfile.postgresql.erb @@ -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 \ No newline at end of file diff --git a/templates/gemfiles/activerecord-5.0/Gemfile.sqlite3.erb b/templates/gemfiles/activerecord-5.0/Gemfile.sqlite3.erb new file mode 100644 index 0000000..a116d6d --- /dev/null +++ b/templates/gemfiles/activerecord-5.0/Gemfile.sqlite3.erb @@ -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 \ No newline at end of file