sequel-rails 1.2.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e4de4baed682df5845e262210a1f43c9725fca1d9ae42a6bf8be0d44f4f3bf4
4
- data.tar.gz: 5b538275507eb1e89b0ff234bbc0af531ed4c27842272332c0c0a6c4c2ac6205
3
+ metadata.gz: 37ac0c145b51b35609a915883a48ecdb9ae674f19957d207afcc7b4cc2aae940
4
+ data.tar.gz: 7cd0b568d5dec00df8765f93ad4f3fbb78dd95bc011ac6c32c426af21817324d
5
5
  SHA512:
6
- metadata.gz: d912dc8bfc827717f6fe86c02db19e8a91e88ab1d9c2d2dfe20a9214844c191ace257bd1e519ef1967d64041feae5eea28eaeeb8c02a3982556a21546c055ddf
7
- data.tar.gz: acb42d9b693c2361b42ef1d29e5ebeb780288f039b5554a2fa491233617892b117b2020fe0a6bea676914beb1e9ddd9909bb8838ca9ec7a05e904288c782f70f
6
+ metadata.gz: e480c41227765090b3e7a3a658a423150f1396568eac643eafb515d7359f33541d88f2a30dd3fb59c5e43f0d3407bdcbacb06ff8dfa0cb79622dde4e602621c1
7
+ data.tar.gz: 9014c2201df4e0a829c3a86d7d81e50209a3b3b20a794ff78b86707b6698bac8e5635c4b9bb4eebc3876fcedc0da74187c333e4fe413511d86a7c371ddf0c0af
data/History.md CHANGED
@@ -1,3 +1,15 @@
1
+ 1.2.1 (2023-10-18)
2
+ ==================
3
+
4
+ * Fix Rails 7.1 beta1 deprecation warning in log subscriber (@rwojnarowski)
5
+ [#196](https://github.com/TalentBox/sequel-rails/pull/196)
6
+ * Improve documentation about loading `Sequel` extensions (@elbouillon)
7
+ [#192](https://github.com/TalentBox/sequel-rails/pull/192)
8
+ * Fix `rails db:create`/`rails db:create:all` (@tycooon)
9
+ [#190](https://github.com/TalentBox/sequel-rails/pull/190)
10
+ * Update github pages (Stefan Vermaas)
11
+ [#189](https://github.com/TalentBox/sequel-rails/pull/189)
12
+
1
13
  1.2.0 (2022-04-15)
2
14
  ==================
3
15
 
data/README.md CHANGED
@@ -197,6 +197,8 @@ You can configure some options with the usual rails mechanism, in
197
197
  # Configure what should happend after SequelRails will create new connection with Sequel (applicable only for the first new connection)
198
198
  # config.sequel.after_connect = proc do
199
199
  # Sequel::Model.plugin :timestamps, update_on_create: true
200
+ # Sequel::Model.db.extension :pg_array, :pg_hstore # database specific extension
201
+ # Sequel.extension :pg_hstore_ops # sequel specific extension
200
202
  # end
201
203
 
202
204
  # Configure what should happend after new connection in connection pool is created (applicable only for all connections)
@@ -278,6 +280,8 @@ There are 2 options how to set after_connect hooks in `config/application.rb`
278
280
  ```ruby
279
281
  config.sequel.after_connect = proc do
280
282
  Sequel::Model.plugin :timestamps, update_on_create: true
283
+ Sequel::Model.db.extension :pg_array, :pg_hstore # database specific extension
284
+ Sequel.extension :pg_hstore_ops # sequel specific extension
281
285
  end
282
286
  ```
283
287
 
@@ -450,6 +454,10 @@ Improvements have been made by those awesome contributors:
450
454
  * Adrián Mugnolo (@xymbol)
451
455
  * Ivan (@AnotherRegularDude)
452
456
  * kamilpavlicko (@kamilpavlicko)
457
+ * Stefan Vermaas (@stefanvermaas)
458
+ * Yuri Smirnov (@tycooon)
459
+ * Mickael Kurmann (@elbouillon)
460
+ * Radoslaw Wojnarowski (@rwojnarowski)
453
461
 
454
462
  Credits
455
463
  =======
@@ -459,4 +467,4 @@ The [dm-rails](http://github.com/datamapper/dm-rails) team wrote most of the ori
459
467
  Copyright
460
468
  =========
461
469
 
462
- Copyright (c) 2010-2022 The sequel-rails team. See [LICENSE](http://github.com/brasten/sequel-rails/blob/master/LICENSE) for details.
470
+ Copyright (c) 2010-2022 The sequel-rails team. See [LICENSE](http://github.com/TalentBox/sequel-rails/blob/master/LICENSE) for details.
@@ -116,7 +116,7 @@ module SequelRails
116
116
  end
117
117
 
118
118
  def database_create_command?
119
- ['db:create', 'db:create:all'].any? { |c| ARGV.include?(c) }
119
+ ['db:create', 'db:create:all'].any? { |c| Rake.application.top_level_tasks.include?(c) }
120
120
  end
121
121
  end
122
122
  end
@@ -47,10 +47,10 @@ module SequelRails
47
47
  end
48
48
 
49
49
  if odd?
50
- name = color(name, :cyan, true)
51
- sql = color(sql, nil, true)
50
+ name = color(name, :cyan, :bold => true)
51
+ sql = color(sql, nil, :bold => true)
52
52
  else
53
- name = color(name, :magenta, true)
53
+ name = color(name, :magenta, :bold => true)
54
54
  end
55
55
 
56
56
  debug " #{name} #{sql}#{binds}"
@@ -1,3 +1,3 @@
1
1
  module SequelRails
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.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.0
4
+ version: 1.2.1
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: 2022-04-15 00:00:00.000000000 Z
12
+ date: 2023-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  - !ruby/object:Gem::Version
305
305
  version: 1.8.11
306
306
  requirements: []
307
- rubygems_version: 3.3.7
307
+ rubygems_version: 3.4.10
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Use Sequel with Rails (3.x and 4.x)