sequel-activerecord_connection 0.2.4 → 0.2.5

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: a46fc2de408ac66a48628919f4030c847118c12fb7db1fc4060436fb05ce8976
4
- data.tar.gz: 4aa867bb6b6a18de97fdf69f213987d0d94aed960539a70ae12fa50e348609fa
3
+ metadata.gz: 2f7d0993543eb478053e24dbbde84de0aaefdb13eb03a8852dd7d8f7facd2532
4
+ data.tar.gz: 104318c5d02c0731e945dd3022b109902cdf2f97176b71511d06e68b4bbf8a10
5
5
  SHA512:
6
- metadata.gz: 3403df36d5e6741f4a7c2236ee479645aa580b0841f799fe1f0ad8b6ce0421344330857ff8afa52aafd4232f9cc1ba3e497c16b9e85615c7119be4bb19ef219c
7
- data.tar.gz: e5c12006fce490bf8500e575d45c5046f368c6904386dcd5503ce7f9bd2c7b75a172d331aadc81d99259776fbae6e07d3074f6d554dcbe3171add28ebd27b952
6
+ metadata.gz: d70812ee57dc9225683adfe196a2bc0f72de24e38cbd2d9492317073ed50a97ed58294a718d799655d953f9b80fc37dd27af78566d9f2bfaf9b95c454faa7a6d
7
+ data.tar.gz: b7ec97e1c602bd544df1fba4c0a554846100ac1daed3e866d8ba837ca20b68f9b44f0f89db3a97d6c5e166a80e8276d1c30159453626af5692c8f78401cd2e54
@@ -1,7 +1,13 @@
1
+ ## 0.2.5 (2020-06-04)
2
+
3
+ * Use `#current_timestamp_utc` for the JDBC SQLite adapter as well (@HoneyryderChuck)
4
+
1
5
  ## 0.2.4 (2020-06-03)
2
6
 
3
7
  * Add JRuby support for ActiveRecord 6.0 and 5.2 (@HoneyryderChuck)
4
8
 
9
+ * Use `#current_timestamp_utc` setting for SQLite adapter on Sequel >= 5.33 (@HoneyryderChuck)
10
+
5
11
  ## 0.2.3 (2020-05-25)
6
12
 
7
13
  * Fix Ruby 2.7 kwargs warnings in `#transaction` (@HoneyryderChuck)
@@ -1,6 +1,12 @@
1
1
  module Sequel
2
2
  module ActiveRecordConnection
3
3
  module Jdbc
4
+ def self.extended(db)
5
+ if db.timezone == :utc && db.respond_to?(:current_timestamp_utc)
6
+ db.current_timestamp_utc = true
7
+ end
8
+ end
9
+
4
10
  def statement(conn)
5
11
  stmt = activerecord_raw_connection.connection.createStatement
6
12
  yield stmt
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "sequel-activerecord_connection"
3
- spec.version = "0.2.4"
3
+ spec.version = "0.2.5"
4
4
  spec.authors = ["Janko Marohnić"]
5
5
  spec.email = ["janko.marohnic@gmail.com"]
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-activerecord_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel