sequel-rails 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -0
- data/History.md +8 -0
- data/README.md +1 -1
- data/lib/sequel_rails/railtie.rb +5 -3
- data/lib/sequel_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4467a383f3413bb4b1591cb66da137df75d3bfcd9c4dce35fbddcd2318e90ac0
|
4
|
+
data.tar.gz: cb56b93c002d527aa4b86f5606f5008bfb1204326ee491edcc2396af83b9ab78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3d387eccab17f2c16d121f8bd46be8a4340b8095cdc6da1ce49174d9b11f62c51f2130605c09e521a9b1ab012401986f7c5589797c47c47a28c9c007240911
|
7
|
+
data.tar.gz: 792edaf8402e12052265db9523283fc8f3e32d6144b0cd064494d6b4a57bc6e8967a861196e1aa40ad51738d2bfd64a978f02942563350e00061cbfe350635e6
|
data/.github/workflows/ci.yml
CHANGED
@@ -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] #
|
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
|
data/lib/sequel_rails/railtie.rb
CHANGED
@@ -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] ||=
|
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
|
119
|
-
|
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
|
data/lib/sequel_rails/version.rb
CHANGED
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.
|
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:
|
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.
|
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)
|