sequel-rails 1.2.2 → 1.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2aff64f558081a4bd3fd000cdfd10d0f311f8df566191c10b9667854f3963318
4
- data.tar.gz: 4893182c4f44909bacfc5addab1b7e57ad1d789e550b448ce4ef685be7630b81
3
+ metadata.gz: 4467a383f3413bb4b1591cb66da137df75d3bfcd9c4dce35fbddcd2318e90ac0
4
+ data.tar.gz: cb56b93c002d527aa4b86f5606f5008bfb1204326ee491edcc2396af83b9ab78
5
5
  SHA512:
6
- metadata.gz: 5857f2559c24d2f1c06d1b5f671a18f886614cae46a76c918b9a311e70c6680c0b36e740605847eef202cc8f0ada7d08670d27c64cc3fb5c5bf5b08de49b1e3a
7
- data.tar.gz: 58af2a634a6d2483a686a99d7196a4250ff086b672e252409c5c15fd160a06bdaed16b47926209c6de63d6666a4c24fd24c20d255208aeb2367f4df1febc82ba
6
+ metadata.gz: 1e3d387eccab17f2c16d121f8bd46be8a4340b8095cdc6da1ce49174d9b11f62c51f2130605c09e521a9b1ab012401986f7c5589797c47c47a28c9c007240911
7
+ data.tar.gz: 792edaf8402e12052265db9523283fc8f3e32d6144b0cd064494d6b4a57bc6e8967a861196e1aa40ad51738d2bfd64a978f02942563350e00061cbfe350635e6
@@ -50,6 +50,7 @@ jobs:
50
50
  - "3.0"
51
51
  - "3.1"
52
52
  - "3.2"
53
+ - "3.3"
53
54
  # - "jruby"
54
55
  include:
55
56
  - ruby: "2.6"
@@ -66,6 +67,8 @@ jobs:
66
67
  rails: "6.1"
67
68
  - ruby: "3.2"
68
69
  rails: "6.1"
70
+ - ruby: "3.3"
71
+ rails: "6.1"
69
72
  - ruby: "2.6"
70
73
  rails: "7.0"
71
74
  - ruby: "jruby"
data/History.md CHANGED
@@ -1,3 +1,11 @@
1
+ Dev
2
+ ===
3
+
4
+ * Allow to use commands db:test:prepare, db:setup without created DB (@artofhuman)
5
+ [#203](https://github.com/TalentBox/sequel-rails/pull/203)
6
+ * Update CI to run on Ruby 3.3 (@PikachuEXE)
7
+ [#202](https://github.com/TalentBox/sequel-rails/pull/202)
8
+
1
9
  1.2.2 (2023-12-18)
2
10
  ==================
3
11
 
data/README.md CHANGED
@@ -377,7 +377,7 @@ Once you do that, you will see the following rake tasks among others. These are
377
377
  ```bash
378
378
  rake db:create[env] # Create the database defined in config/database.yml for the current Rails.env
379
379
  rake db:create:all # Create all the local databases defined in config/database.yml
380
- rake db:drop[env] # Create the database defined in config/database.yml for the current Rails.env
380
+ rake db:drop[env] # Drop the database defined in config/database.yml for the current Rails.env
381
381
  rake db:drop:all # Drops all the local databases defined in config/database.yml
382
382
  rake db:force_close_open_connections # Forcibly close any open connections to the test database
383
383
  rake db:migrate # Migrate the database to the latest version
@@ -108,15 +108,17 @@ module SequelRails
108
108
  end
109
109
 
110
110
  def check_skip_connect_conditions(app)
111
- app.config.sequel[:skip_connect] ||= database_create_command?
111
+ app.config.sequel[:skip_connect] ||= skip_db_connect?
112
112
  end
113
113
 
114
114
  def database_connection_required?(app)
115
115
  !app.config.sequel[:skip_connect]
116
116
  end
117
117
 
118
- def database_create_command?
119
- ['db:create', 'db:create:all'].any? { |c| Rake.application.top_level_tasks.include?(c) }
118
+ def skip_db_connect?
119
+ Rake.application.top_level_tasks.any? do |task|
120
+ task.match?(/^db:create|db:test:prepare|^db:drop|db:setup/)
121
+ end
120
122
  end
121
123
  end
122
124
  end
@@ -1,3 +1,3 @@
1
1
  module SequelRails
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brasten Sager (brasten)
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-18 00:00:00.000000000 Z
12
+ date: 2024-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  - !ruby/object:Gem::Version
308
308
  version: 1.8.11
309
309
  requirements: []
310
- rubygems_version: 3.4.10
310
+ rubygems_version: 3.5.16
311
311
  signing_key:
312
312
  specification_version: 4
313
313
  summary: Use Sequel with Rails (3.x and 4.x)