sequel-rails 0.9.16 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +39 -60
  3. data/Gemfile +4 -13
  4. data/History.md +54 -0
  5. data/README.md +28 -10
  6. data/Rakefile +1 -1
  7. data/ci/rails-4.0.gemfile +3 -11
  8. data/ci/rails-4.1.gemfile +3 -11
  9. data/ci/rails-4.2.gemfile +3 -11
  10. data/ci/rails-5.0.gemfile +3 -3
  11. data/ci/rails-5.1.gemfile +28 -0
  12. data/ci/rails-5.2.gemfile +28 -0
  13. data/ci/rails-6.0.gemfile +28 -0
  14. data/lib/action_dispatch/middleware/session/sequel_store.rb +21 -9
  15. data/lib/generators/sequel.rb +7 -7
  16. data/lib/generators/sequel/migration/migration_generator.rb +1 -1
  17. data/lib/generators/sequel/migration/templates/migration.rb.erb +2 -0
  18. data/lib/generators/sequel/model/model_generator.rb +2 -1
  19. data/lib/generators/sequel/session_migration/session_migration_generator.rb +1 -1
  20. data/lib/sequel_rails/configuration.rb +7 -4
  21. data/lib/sequel_rails/db_config.rb +8 -4
  22. data/lib/sequel_rails/migrations.rb +23 -7
  23. data/lib/sequel_rails/railtie.rb +21 -5
  24. data/lib/sequel_rails/railties/database.rake +31 -6
  25. data/lib/sequel_rails/sequel/plugins/rails_extensions.rb +1 -1
  26. data/lib/sequel_rails/storage.rb +2 -4
  27. data/lib/sequel_rails/storage/abstract.rb +17 -5
  28. data/lib/sequel_rails/storage/jdbc.rb +2 -2
  29. data/lib/sequel_rails/storage/mysql.rb +1 -0
  30. data/lib/sequel_rails/storage/postgres.rb +7 -3
  31. data/lib/sequel_rails/version.rb +1 -1
  32. data/rubocop-todo.yml +4 -1
  33. data/sequel-rails.gemspec +13 -21
  34. data/spec/helpers/io.rb +1 -5
  35. data/spec/integration/sessions_controller_spec.rb +6 -1
  36. data/spec/lib/generators/sequel/migration_spec.rb +9 -1
  37. data/spec/lib/generators/sequel/session_migration_spec.rb +1 -1
  38. data/spec/lib/sequel_rails/configuration_spec.rb +78 -0
  39. data/spec/lib/sequel_rails/migrations_spec.rb +21 -4
  40. data/spec/lib/sequel_rails/railtie_spec.rb +1 -1
  41. data/spec/lib/sequel_rails/railties/database_rake_spec.rb +42 -0
  42. data/spec/lib/sequel_rails/storage/mysql_spec.rb +1 -1
  43. data/spec/lib/sequel_rails/storage/postgres_spec.rb +1 -1
  44. data/spec/spec_helper.rb +5 -2
  45. metadata +29 -34
  46. data/ci/rails-3.2.gemfile +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 238d5d10e4e69338fa33a2b57d788dab80da794e
4
- data.tar.gz: 86b74a729100056ce1ab178c6fede62f7cab5678
2
+ SHA256:
3
+ metadata.gz: 8ae909ba1a811f03330fa4fa5f66433fb725e48f878da92a62a3f3a0d31cfa75
4
+ data.tar.gz: 2701e9e4c9d8389dbac1888edbc64db469ebddbd966f30af08c16317ebd2c0f0
5
5
  SHA512:
6
- metadata.gz: 9fa7c3bda75b73d66eaceb8a09386f743e5e2defb574a581fb8e6f6d5eab16bb22c90b98c6585a5bce8cde4dcdefd3e5f9027eb04e4cf3c98369b224e4f51af7
7
- data.tar.gz: 516360da6da064d2103dd66e3af54991ced235bcd7e6c31c574f2488943adbe6bbd75d68584f4d412b7657e72f876cd366a49ddbd878306725ed50925acdde8d
6
+ metadata.gz: d26336d4cf8376c3a08b6fcdf6fbbdecd4976cef3747f845bb1c022f7f3429140beb981ba2ae86ffed9754b0a063979386a0c765cf116f2aa4b8b587b14433bb
7
+ data.tar.gz: c14f662a88af0d045327c13bf94bd16946865c65cb73539d328934b45fb7a7de6ef0ae92616a442fff99619d61d6380e9df1fdeef0fb1a742c4edbf5726d7d59
@@ -1,84 +1,63 @@
1
1
  language: ruby
2
2
  cache: bundler
3
- sudo: false
3
+ services:
4
+ - mysql
5
+ - postgresql
4
6
  rvm:
5
- - ree
6
- - 1.8.7
7
- - 1.9.3
8
- - 2.0.0
9
- - 2.1.10
10
- - 2.2.6
11
- - 2.3.3
12
- - 2.4.0
13
- - jruby-18mode
14
- - jruby-19mode
15
- - jruby-9.0.5.0
16
- - jruby-9.1.8.0
7
+ - 2.2.9
8
+ - 2.3.8
9
+ - 2.4.9
10
+ - 2.5.7
11
+ - 2.6.5
12
+ - jruby-9.2.8.0
17
13
  before_script:
18
14
  - mysql -e 'create database sequel_rails_test;'
19
15
  - mysql -e 'create database sequel_rails_test_mysql2;'
20
- - psql -c 'create database sequel_rails_test;' -U postgres
16
+ - mysql -e 'create database sequel_rails_test_storage_dev;'
17
+ - psql -c 'create database sequel_rails_test_storage_dev;' -U postgres
18
+ - psql -c 'create database sequel_rails_test;' -U postgres
21
19
  env:
22
- - SEQUEL='~> 3.0'
23
20
  - SEQUEL='~> 4.0'
21
+ - SEQUEL='~> 5.0'
24
22
  gemfile:
25
- - ci/rails-3.2.gemfile
26
23
  - ci/rails-4.0.gemfile
27
24
  - ci/rails-4.1.gemfile
28
25
  - ci/rails-4.2.gemfile
29
26
  - ci/rails-5.0.gemfile
27
+ - ci/rails-5.1.gemfile
28
+ - ci/rails-5.2.gemfile
29
+ - ci/rails-6.0.gemfile
30
30
  matrix:
31
- allow_failures:
32
- - rvm: 2.4.0
33
- - rvm: jruby-9.0.5.0
34
- gemfile: ci/rails-5.0.gemfile
35
- - rvm: jruby-9.1.8.0
36
- gemfile: ci/rails-5.0.gemfile
37
31
  exclude:
38
- - rvm: 2.2.6
39
- gemfile: ci/rails-3.2.gemfile
40
- - rvm: 2.3.3
41
- gemfile: ci/rails-3.2.gemfile
42
- - rvm: 2.4.0
43
- gemfile: ci/rails-3.2.gemfile
44
- - rvm: jruby-9.0.5.0
45
- gemfile: ci/rails-3.2.gemfile
46
- - rvm: jruby-9.1.8.0
47
- gemfile: ci/rails-3.2.gemfile
48
- - rvm: ree
49
- gemfile: ci/rails-4.0.gemfile
50
- - rvm: 1.8.7
51
- gemfile: ci/rails-4.0.gemfile
52
- - rvm: jruby-18mode
32
+ - rvm: 2.4.9
53
33
  gemfile: ci/rails-4.0.gemfile
54
- - rvm: ree
34
+ - rvm: 2.4.9
55
35
  gemfile: ci/rails-4.1.gemfile
56
- - rvm: 1.8.7
36
+ - rvm: 2.5.7
37
+ gemfile: ci/rails-4.0.gemfile
38
+ - rvm: 2.5.7
57
39
  gemfile: ci/rails-4.1.gemfile
58
- - rvm: jruby-18mode
40
+ - rvm: 2.6.5
41
+ gemfile: ci/rails-4.0.gemfile
42
+ - rvm: 2.6.5
59
43
  gemfile: ci/rails-4.1.gemfile
60
- - rvm: ree
61
- gemfile: ci/rails-4.2.gemfile
62
- - rvm: 1.8.7
63
- gemfile: ci/rails-4.2.gemfile
64
- - rvm: jruby-18mode
44
+ - rvm: 2.6.5
65
45
  gemfile: ci/rails-4.2.gemfile
66
- - rvm: ree
46
+ - rvm: 2.6.5
67
47
  gemfile: ci/rails-5.0.gemfile
68
- - rvm: 1.8.7
69
- gemfile: ci/rails-5.0.gemfile
70
- - rvm: jruby-18mode
71
- gemfile: ci/rails-5.0.gemfile
72
- - rvm: jruby-19mode
73
- gemfile: ci/rails-5.0.gemfile
74
- - rvm: 1.9.3
75
- gemfile: ci/rails-5.0.gemfile
76
- - rvm: 2.0.0
77
- gemfile: ci/rails-5.0.gemfile
78
- - rvm: 2.1.10
79
- gemfile: ci/rails-5.0.gemfile
80
- - gemfile: ci/rails-3.2.gemfile
81
- env: SEQUEL='~> 4.0'
48
+ - rvm: 2.6.5
49
+ gemfile: ci/rails-5.1.gemfile
50
+ - rvm: jruby-9.2.8.0
51
+ gemfile: ci/rails-4.0.gemfile
52
+ - rvm: jruby-9.2.8.0
53
+ gemfile: ci/rails-4.1.gemfile
54
+ - rvm: 2.2.9
55
+ gemfile: ci/rails-6.0.gemfile
56
+ - rvm: 2.3.8
57
+ gemfile: ci/rails-6.0.gemfile
58
+ - rvm: 2.4.9
59
+ gemfile: ci/rails-6.0.gemfile
60
+
82
61
  notifications:
83
62
  email:
84
63
  - jonathan.tron@metrilio.com
data/Gemfile CHANGED
@@ -5,28 +5,19 @@ gemspec
5
5
  gem 'actionpack'
6
6
  gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
7
7
 
8
- if RUBY_VERSION < '1.9'
9
- # why do we even care, it's deprecated
10
- gem 'activesupport', '< 4'
11
- gem 'pry', '< 0.10'
12
- gem 'tzinfo'
13
- else
14
- gem 'pry'
15
- end
8
+ gem 'pry'
16
9
 
17
10
  # MRI/Rubinius Adapter Dependencies
18
11
  platform :ruby do
19
- gem 'pg'
20
- if RUBY_VERSION < '2.4'
21
- gem 'mysql'
22
- end
12
+ gem 'mysql' if RUBY_VERSION < '2.4'
23
13
  gem 'mysql2'
14
+ gem 'pg'
24
15
  gem 'sqlite3'
25
16
  end
26
17
 
27
18
  # JRuby Adapter Dependencies
28
19
  platform :jruby do
29
- gem 'jdbc-sqlite3'
30
20
  gem 'jdbc-mysql'
31
21
  gem 'jdbc-postgres'
22
+ gem 'jdbc-sqlite3'
32
23
  end
data/History.md CHANGED
@@ -1,3 +1,57 @@
1
+ master (unreleased)
2
+ ===================
3
+
4
+ * Fix readme formatting (Ben Koshy)
5
+ [#175](https://github.com/TalentBox/sequel-rails/pull/175)
6
+ * Add frozen_string_literal to migration template (Semyon Pupkov)
7
+ [#174](https://github.com/TalentBox/sequel-rails/pull/174)
8
+ * Add allow_missing_migration_files option (Semyon Pupkov)
9
+ [#172](https://github.com/TalentBox/sequel-rails/pull/172)
10
+ [#173](https://github.com/TalentBox/sequel-rails/pull/173)
11
+
12
+ 1.1.0 (2019-10-29)
13
+ ==================
14
+
15
+ * Add test_connect option (p-leger)
16
+ [#165](https://github.com/TalentBox/sequel-rails/pull/165)
17
+ * Silence logger for sessions store (Michael Coyne)
18
+ [#171](https://github.com/TalentBox/sequel-rails/pull/171)
19
+ * Add db:sessions:clear and db:sessions:trim rake tasks (Michael Coyne)
20
+ [#170](https://github.com/TalentBox/sequel-rails/pull/170)
21
+ * Allow 'servers' to propagate to Sequel connection (Dustin Byrne)
22
+ [#169](https://github.com/TalentBox/sequel-rails/pull/169)
23
+
24
+ 1.0.1 (2018-02-27)
25
+ ==================
26
+
27
+ * Check that db/ exists before running db:schema:load (Olivier Lacan)
28
+ [#157](https://github.com/TalentBox/sequel-rails/pull/157)
29
+ * Raise useful exception when db/migrate directory is absent (Olivier Lacan)
30
+ [#156](https://github.com/TalentBox/sequel-rails/pull/156)
31
+ * Test Ruby 2.5.0 on Travis CI (Olivier Lacan)
32
+ [#155](https://github.com/TalentBox/sequel-rails/pull/155)
33
+ * Fix Sequel::DatabaseConnectionError on db:create:all task (Olivier Lacan)
34
+ [#154](https://github.com/TalentBox/sequel-rails/pull/154)
35
+ * Enable skip_connect in db:create rake task (Olivier Lacan)
36
+ [#148](https://github.com/TalentBox/sequel-rails/pull/148)
37
+ * Update controller tests to cope with `ActionDispatch::IntegrationTest`
38
+ params handling change.
39
+ * Fix db:create rake tasks (Rolf Timmermans)
40
+ [#145](https://github.com/TalentBox/sequel-rails/pull/145)
41
+
42
+ 1.0.0 (2017-11-20)
43
+ ==================
44
+
45
+ * Support for Sequel ~> 5.0 (@Jesterovskiy and @ckoenig)
46
+ [#143](https://github.com/TalentBox/sequel-rails/pull/143)
47
+ * Better handling of missing database when using Postgresql (Steve Hoeksema)
48
+ [#140](https://github.com/TalentBox/sequel-rails/pull/140)
49
+ * Bump version to 1.0.0.alpha
50
+ * Drop CI testing with Rubies < 2.2 and Rails < 4.0, add Rails 5.1, and add
51
+ minimal Ruby (>= 2.2) and Rubygems (>= 1.8.11) version to gemspec
52
+ * Fix arguments for the shell exec commands on windows (Gencer W. Genç)
53
+ [#134](https://github.com/TalentBox/sequel-rails/pull/134)
54
+
1
55
  0.9.16 (2017-06-22)
2
56
  ===================
3
57
 
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # sequel-rails
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/sequel-rails.png)][gem]
4
- [![Build Status](https://secure.travis-ci.org/TalentBox/sequel-rails.png?branch=master)][travis]
5
- [![Code Climate](https://codeclimate.com/github/TalentBox/sequel-rails.png)][codeclimate]
3
+ [![Gem Version](https://badge.fury.io/rb/sequel-rails.svg)][gem]
4
+ [![Build Status](https://secure.travis-ci.org/TalentBox/sequel-rails.svg?branch=master)][travis]
5
+ [![Code Climate](https://codeclimate.com/github/TalentBox/sequel-rails.svg)][codeclimate]
6
6
 
7
7
  [gem]: https://rubygems.org/gems/sequel-rails
8
8
  [travis]: http://travis-ci.org/TalentBox/sequel-rails
@@ -10,7 +10,7 @@
10
10
 
11
11
  This gem provides the railtie that allows
12
12
  [sequel](http://github.com/jeremyevans/sequel) to hook into
13
- [Rails (3.x, 4.x and 5.x)](http://github.com/rails/rails) and thus behave like a
13
+ [Rails (4.x and 5.x)](http://github.com/rails/rails) and thus behave like a
14
14
  rails framework component. Just like activerecord does in rails,
15
15
  [sequel-rails](http://github.com/talentbox/sequel-rails) uses the railtie API to
16
16
  hook into rails. The two are actually hooked into rails almost identically.
@@ -28,8 +28,7 @@ Since January 2013, we've become the official maintainers of the gem after
28
28
  Using sequel-rails
29
29
  ==================
30
30
 
31
- Using sequel with Rails (3.x, 4.x or 5.x) requires a couple minor
32
- changes.
31
+ Using sequel with Rails (4.x or 5.x) requires a couple minor changes.
33
32
 
34
33
  First, add the following to your Gemfile (after the `Rails` lines):
35
34
 
@@ -60,7 +59,7 @@ require "action_mailer/railtie"
60
59
  require "action_view/railtie"
61
60
  require "action_cable/engine"
62
61
  require "sprockets/railtie"
63
- require "rails/test_unit/railtie
62
+ require "rails/test_unit/railtie"
64
63
  ```
65
64
 
66
65
  Then you need to get rid of `ActiveRecord` configurations, that is if you
@@ -167,6 +166,9 @@ You can configure some options with the usual rails mechanism, in
167
166
  # Allowed options: :sql, :ruby.
168
167
  config.sequel.schema_format = :sql
169
168
 
169
+ # Allowed options: true, false, default false
170
+ config.sequel.allow_missing_migration_files = true
171
+
170
172
  # Whether to dump the schema after successful migrations.
171
173
  # Defaults to false in production and test, true otherwise.
172
174
  config.sequel.schema_dump = true
@@ -189,6 +191,10 @@ You can configure some options with the usual rails mechanism, in
189
191
  # This setting disabled the automatic connect after Rails init
190
192
  config.sequel.skip_connect = true
191
193
 
194
+ # Configure if Sequel should try to 'test' the database connection in order
195
+ # to fail early
196
+ config.sequel.test_connect = true
197
+
192
198
  # If you want to use a specific logger
193
199
  config.sequel.logger = MyLogger.new($stdout)
194
200
  ```
@@ -247,11 +253,11 @@ Here's some examples:
247
253
 
248
254
  For in memory testing:
249
255
 
250
- ```yaml
251
- development:
256
+ ```yaml
257
+ development:
252
258
  adapter: sqlite # Also accept sqlite3
253
259
  database: ":memory:"
254
- ```
260
+ ```
255
261
 
256
262
  Enabling plugins
257
263
  ================
@@ -334,6 +340,8 @@ rake db:schema:load # Load a schema.rb file into the database
334
340
  rake db:seed # Load the seed data from db/seeds.rb
335
341
  rake db:setup # Create the database, load the schema, and initialize with the seed data
336
342
  rake db:test:prepare # Prepare test database (ensure all migrations ran, drop and re-create database then load schema). This task can be run in the same invocation as other task (eg: rake db:migrate db:test:prepare).
343
+ rake db:sessions:clear # Delete all sessions from the database
344
+ rake db:sessions:trim[threshold] # Delete all sessions older than `threshold` days (default to 30 days, eg: rake db:session:trim[10])
337
345
  ```
338
346
 
339
347
  Note on Patches/Pull Requests
@@ -398,7 +406,17 @@ Improvements have been made by those awesome contributors:
398
406
  * Pablo Herrero (@pabloh)
399
407
  * Henre Botha (@henrebotha)
400
408
  * Mohammad Satrio (@tyok)
409
+ * Gencer W. Genç (@gencer)
401
410
  * Steve Hoeksema (@steveh)
411
+ * Jester (@Jesterovskiy)
412
+ * ckoenig (@ckoenig)
413
+ * Rolf Timmermans (@rolftimmermans)
414
+ * Olivier Lacan (@olivierlacan)
415
+ * Dustin Byrne (@dsbyrne)
416
+ * Michael Coyne (@mjc-gh)
417
+ * p-leger (@p-leger)
418
+ * Semyon Pupkov (@artofhuman)
419
+ * Ben Koshy (@BKSpurgeon)
402
420
 
403
421
  Credits
404
422
  =======
data/Rakefile CHANGED
@@ -30,7 +30,7 @@ begin
30
30
 
31
31
  configs = {
32
32
  'postgresql' => { 'TEST_ENCODING' => 'unicode' },
33
- 'sqlite3' => { 'TEST_DATABASE' => 'db/database.sqlite3' },
33
+ 'sqlite3' => { 'TEST_DATABASE' => File.join(File.expand_path('.'), 'spec/internal/db/database.sqlite3') },
34
34
  }
35
35
 
36
36
  configs.merge!(
@@ -1,24 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'railties', '~> 4.0.0'
3
+ gem 'railties', '~> 4.0.13'
4
4
 
5
5
  gemspec :path => '../'
6
6
 
7
7
  gem 'sequel', "#{ENV['SEQUEL']}"
8
8
 
9
- gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
10
-
11
- if RUBY_VERSION < '2.1'
12
- gem 'nokogiri', '< 1.7.0'
13
- end
9
+ gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
14
10
 
15
11
  # MRI/Rubinius Adapter Dependencies
16
12
  platform :ruby do
17
- if RUBY_VERSION < '2.0'
18
- gem 'pg', '~> 0.18.4'
19
- else
20
- gem 'pg'
21
- end
13
+ gem 'pg'
22
14
  if RUBY_VERSION < '2.4'
23
15
  gem 'mysql'
24
16
  end
@@ -1,24 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'railties', '~> 4.1.0'
3
+ gem 'railties', '~> 4.1.16'
4
4
 
5
5
  gemspec :path => '../'
6
6
 
7
7
  gem 'sequel', "#{ENV['SEQUEL']}"
8
8
 
9
- gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
10
-
11
- if RUBY_VERSION < '2.1'
12
- gem 'nokogiri', '< 1.7.0'
13
- end
9
+ gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
14
10
 
15
11
  # MRI/Rubinius Adapter Dependencies
16
12
  platform :ruby do
17
- if RUBY_VERSION < '2.0'
18
- gem 'pg', '~> 0.18.4'
19
- else
20
- gem 'pg'
21
- end
13
+ gem 'pg'
22
14
  if RUBY_VERSION < '2.4'
23
15
  gem 'mysql'
24
16
  end
@@ -1,24 +1,16 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'railties', '~> 4.2.0'
3
+ gem 'railties', '~> 4.2.11'
4
4
 
5
5
  gemspec :path => '../'
6
6
 
7
7
  gem 'sequel', "#{ENV['SEQUEL']}"
8
8
 
9
- gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
10
-
11
- if RUBY_VERSION < '2.1'
12
- gem 'nokogiri', '< 1.7.0'
13
- end
9
+ gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
14
10
 
15
11
  # MRI/Rubinius Adapter Dependencies
16
12
  platform :ruby do
17
- if RUBY_VERSION < '2.0'
18
- gem 'pg', '~> 0.18.4'
19
- else
20
- gem 'pg'
21
- end
13
+ gem 'pg'
22
14
  if RUBY_VERSION < '2.4'
23
15
  gem 'mysql'
24
16
  end
@@ -1,13 +1,13 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'railties', '~> 5.0.0'
4
- gem 'activemodel', '~> 5.0.0'
3
+ gem 'railties', '~> 5.0.7'
4
+ gem 'activemodel', '~> 5.0.7'
5
5
 
6
6
  gemspec :path => '../'
7
7
 
8
8
  gem 'sequel', "#{ENV['SEQUEL']}"
9
9
 
10
- gem 'fakefs', '0.5.3', :require => 'fakefs/safe'
10
+ gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
11
11
 
12
12
  # MRI/Rubinius Adapter Dependencies
13
13
  platform :ruby do
@@ -0,0 +1,28 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 5.1.6'
4
+ gem 'activemodel', '~> 5.1.6'
5
+ gem 'actionpack', '~> 5.1.6'
6
+
7
+ gemspec :path => '../'
8
+
9
+ gem 'sequel', "#{ENV['SEQUEL']}"
10
+
11
+ gem 'fakefs', '0.11.2', :require => 'fakefs/safe'
12
+
13
+ # MRI/Rubinius Adapter Dependencies
14
+ platform :ruby do
15
+ gem 'pg'
16
+ if RUBY_VERSION < '2.4'
17
+ gem 'mysql'
18
+ end
19
+ gem 'mysql2'
20
+ gem 'sqlite3'
21
+ end
22
+
23
+ # JRuby Adapter Dependencies
24
+ platform :jruby do
25
+ gem 'jdbc-sqlite3'
26
+ gem 'jdbc-mysql'
27
+ gem 'jdbc-postgres'
28
+ end