sequel-rails 1.2.3 → 1.2.4

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: 4467a383f3413bb4b1591cb66da137df75d3bfcd9c4dce35fbddcd2318e90ac0
4
- data.tar.gz: cb56b93c002d527aa4b86f5606f5008bfb1204326ee491edcc2396af83b9ab78
3
+ metadata.gz: 397a879b8562aed5908b6e658f965ecb57870c0a64613cd1752e157f2604fb32
4
+ data.tar.gz: 9702cb1002a2b451bd7954b12e3bece2b4322795f2efe75c850ad35854ecbc10
5
5
  SHA512:
6
- metadata.gz: 1e3d387eccab17f2c16d121f8bd46be8a4340b8095cdc6da1ce49174d9b11f62c51f2130605c09e521a9b1ab012401986f7c5589797c47c47a28c9c007240911
7
- data.tar.gz: 792edaf8402e12052265db9523283fc8f3e32d6144b0cd064494d6b4a57bc6e8967a861196e1aa40ad51738d2bfd64a978f02942563350e00061cbfe350635e6
6
+ metadata.gz: 84addb7863682b82c8c30a8ae6ead3946b98446802ef103c88ded1ac78d78d4528e519904ec65cc92dbffbd9e904531ab5643a7e8dd134d90a520e1a899ca797
7
+ data.tar.gz: b3831bd1ab2e4af54cfa762269f91fbae3fd80358230fffb5e5a576e2e57ba58dc0dd6ab123cfa380e2fbd917fda800a17505323f9c80c0ac078be15d577a2ad
@@ -2,9 +2,9 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
5
+ branches: [master]
6
6
  pull_request:
7
- branches: ['**']
7
+ branches: ["**"]
8
8
 
9
9
  jobs:
10
10
  tests:
@@ -15,7 +15,7 @@ jobs:
15
15
  POSTGRES_USER: postgres
16
16
  POSTGRES_PASSWORD: postgres
17
17
  ports:
18
- - 5432
18
+ - 5432
19
19
  options: >-
20
20
  --health-cmd pg_isready
21
21
  --health-interval 10s
@@ -27,7 +27,7 @@ jobs:
27
27
  env:
28
28
  MYSQL_ROOT_PASSWORD: root
29
29
  ports:
30
- - 3306
30
+ - 3306
31
31
  options: >-
32
32
  --health-cmd="mysqladmin ping"
33
33
  --health-interval=10s
@@ -42,6 +42,8 @@ jobs:
42
42
  - "6.1"
43
43
  - "7.0"
44
44
  - "7.1"
45
+ - "7.2"
46
+ - "8.0"
45
47
  sequel:
46
48
  - "~> 5.0"
47
49
  ruby:
@@ -77,7 +79,25 @@ jobs:
77
79
  rails: "7.1"
78
80
  - ruby: "jruby"
79
81
  rails: "7.1"
80
- name: Rails ${{ matrix.rails }}, Sequel ${{ matrix.sequel }}, Ruby ${{ matrix.ruby }}
82
+ - ruby: "2.6"
83
+ rails: "7.2"
84
+ - ruby: "2.7"
85
+ rails: "7.2"
86
+ - ruby: "3.0"
87
+ rails: "7.2"
88
+ - ruby: "jruby"
89
+ rails: "7.2"
90
+ - ruby: "2.6"
91
+ rails: "8.0"
92
+ - ruby: "2.7"
93
+ rails: "8.0"
94
+ - ruby: "3.0"
95
+ rails: "8.0"
96
+ - ruby: "3.1"
97
+ rails: "8.0"
98
+ - ruby: "jruby"
99
+ rails: "8.0"
100
+ name: Rails ${{ matrix.rails }}, Ruby ${{ matrix.ruby }}, Sequel ${{ matrix.sequel }}
81
101
 
82
102
  env:
83
103
  SEQUEL: "${{ matrix.sequel }}"
data/History.md CHANGED
@@ -1,5 +1,12 @@
1
- Dev
2
- ===
1
+ 1.2.4 (2025-03-06)
2
+ ==================
3
+
4
+ * Disconnect database connections before attempting to drop database (@rolftimmermans)
5
+ [#204](https://github.com/TalentBox/sequel-rails/pull/204)
6
+ * Configure CI to include tests for Rails ~> 8.0.0 (Jonathan Tron)
7
+
8
+ 1.2.3 (2024-09-15)
9
+ ==================
3
10
 
4
11
  * Allow to use commands db:test:prepare, db:setup without created DB (@artofhuman)
5
12
  [#203](https://github.com/TalentBox/sequel-rails/pull/203)
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  This gem provides the railtie that allows
11
11
  [sequel](http://github.com/jeremyevans/sequel) to hook into
12
- [Rails (5.2.x, 6.x, 7.x)](http://github.com/rails/rails) and thus behave like a
12
+ [Rails (5.2.x, 6.x, 7.x, 8.x)](http://github.com/rails/rails) and thus behave like a
13
13
  rails framework component. Just like activerecord does in rails,
14
14
  [sequel-rails](http://github.com/talentbox/sequel-rails) uses the railtie API to
15
15
  hook into rails. The two are actually hooked into rails almost identically.
@@ -27,7 +27,7 @@ Since January 2013, we've become the official maintainers of the gem after
27
27
  Using sequel-rails
28
28
  ==================
29
29
 
30
- Using sequel with Rails (5.2.x, 6.x, 7.x) requires a few minor changes.
30
+ Using sequel with Rails (5.2.x, 6.x, 7.x, 8.x) requires a few minor changes.
31
31
 
32
32
  First, add the following to your Gemfile (after the `Rails` lines):
33
33
 
data/Rakefile CHANGED
@@ -1,3 +1,6 @@
1
+ # So loading rails via combustion doesn't crash on some older versions
2
+ require 'logger'
3
+
1
4
  begin
2
5
  require 'bundler/setup'
3
6
  rescue LoadError
@@ -0,0 +1,27 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 7.2.0'
4
+ gem 'activemodel', '~> 7.2.0'
5
+ gem 'actionpack', '~> 7.2.0'
6
+
7
+ gemspec :path => '../'
8
+
9
+ gem 'sequel', "#{ENV['SEQUEL']}"
10
+
11
+ gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
12
+
13
+ gem 'rspec-rails', '~> 5.0'
14
+
15
+ # MRI/Rubinius Adapter Dependencies
16
+ platform :ruby do
17
+ gem 'pg'
18
+ gem 'mysql2'
19
+ gem 'sqlite3'
20
+ end
21
+
22
+ # JRuby Adapter Dependencies
23
+ platform :jruby do
24
+ gem 'jdbc-sqlite3'
25
+ gem 'jdbc-mysql'
26
+ gem 'jdbc-postgres'
27
+ end
@@ -0,0 +1,27 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'railties', '~> 8.0.0'
4
+ gem 'activemodel', '~> 8.0.0'
5
+ gem 'actionpack', '~> 8.0.0'
6
+
7
+ gemspec :path => '../'
8
+
9
+ gem 'sequel', "#{ENV['SEQUEL']}"
10
+
11
+ gem 'fakefs', '>= 1.8.0', :require => 'fakefs/safe'
12
+
13
+ gem 'rspec-rails', '~> 5.0'
14
+
15
+ # MRI/Rubinius Adapter Dependencies
16
+ platform :ruby do
17
+ gem 'pg'
18
+ gem 'mysql2'
19
+ gem 'sqlite3'
20
+ end
21
+
22
+ # JRuby Adapter Dependencies
23
+ platform :jruby do
24
+ gem 'jdbc-sqlite3'
25
+ gem 'jdbc-mysql'
26
+ gem 'jdbc-postgres'
27
+ end
@@ -206,6 +206,7 @@ namespace sequel_rails_namespace do
206
206
  desc "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 #{sequel_rails_namespace}:migrate #{sequel_rails_namespace}:test:prepare)."
207
207
  task :prepare => "#{sequel_rails_namespace}:abort_if_pending_migrations" do
208
208
  previous_env, Rails.env = Rails.env, 'test'
209
+ Sequel::DATABASES.each(&:disconnect)
209
210
  Rake::Task["#{sequel_rails_namespace}:drop"].execute
210
211
  Rake::Task["#{sequel_rails_namespace}:create"].execute
211
212
  Rake::Task["#{sequel_rails_namespace}:load"].execute
@@ -1,3 +1,3 @@
1
1
  module SequelRails
2
- VERSION = '1.2.3'.freeze
2
+ VERSION = '1.2.4'.freeze
3
3
  end
@@ -1,8 +1,12 @@
1
+ # So loading rails via combustion doesn't crash on some older versions
2
+ require 'logger'
3
+
1
4
  begin
2
5
  require 'bundler/setup'
3
6
  rescue LoadError
4
7
  warn 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
8
  end
9
+
6
10
  Bundler.require :default, :development, :test
7
11
 
8
12
  Combustion.path = ''
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,6 @@
1
+ # So loading rails via combustion doesn't crash on some older versions
2
+ require 'logger'
3
+
1
4
  require 'rubygems'
2
5
  require 'bundler'
3
6
 
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.3
4
+ version: 1.2.4
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: 2024-09-15 00:00:00.000000000 Z
12
+ date: 2025-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -224,6 +224,8 @@ files:
224
224
  - ci/rails-6.1.gemfile
225
225
  - ci/rails-7.0.gemfile
226
226
  - ci/rails-7.1.gemfile
227
+ - ci/rails-7.2.gemfile
228
+ - ci/rails-8.0.gemfile
227
229
  - config.ru
228
230
  - lib/action_dispatch/middleware/session/sequel_store.rb
229
231
  - lib/generators/sequel.rb
@@ -307,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
309
  - !ruby/object:Gem::Version
308
310
  version: 1.8.11
309
311
  requirements: []
310
- rubygems_version: 3.5.16
312
+ rubygems_version: 3.5.22
311
313
  signing_key:
312
314
  specification_version: 4
313
315
  summary: Use Sequel with Rails (3.x and 4.x)