rails_sql_prettifier 5.0.2 → 6.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f8842037718631f257e8e3c15d07abcb6f745887704bc075e09848c6aeb549b
4
- data.tar.gz: d84ac4beb2eee2af5f0f2def3c6d2634c9b1da0250333772070f1ca98683c549
3
+ metadata.gz: 1f24b775719e8b291b04f98e5250f142cf2eea713bd52bb70a61e507482973ff
4
+ data.tar.gz: d00ab131a78b10c28cdcd5c9a569f04825076b9c2073f0388e2b27a21016332a
5
5
  SHA512:
6
- metadata.gz: 1e88b6463876d5faabd76b84436815dc8266860c2176d18878c2d1b17dec4f096937ca686225be75373fd6d975ade38a60059dce7825c9ddd0f072bb8ce876a4
7
- data.tar.gz: 5efaae946cd2e6859640cbf400400b2ba209085decaa82b60634eb3be622e99dadff2c4b4fbe0a914caf5b90f259158cde0102df9a92f082c84d0368caf1b602
6
+ metadata.gz: 43aae20d26a1a826b1811eb48a665e6c7e2031e694dd7a15172d4f422264a4ea668d17e9406fbce2cd2935e291010ff4894ce7e1f92d67461a6c0be106aa3df7
7
+ data.tar.gz: 3866f5f935657553421215fe5a1bfde3f70c2b96ed40041850245d0124aa469bdb613aa13b856923667e55963aff5579d795ebe3b07b55f5b3ceeadd30e9e621
data/.byebug_history CHANGED
@@ -1,13 +1,7 @@
1
1
  exit
2
- ActiveRecord::Base.connection_config[:adapter]
3
- ActiveRecord::Base.connection_config.adapter
4
- ActiveRecord::Base.connection_config
5
- c
6
- ActiveRecord.version <= Gem::Version.new(5)
7
- c
8
- ActiveRecord.version
9
- exit
10
- ActiveRecord.version
2
+ ActiveRecord::Base.connection_db_config.adapter
3
+ ActiveRecord::Base.connection_db_config.adpter
4
+ ActiveRecord::Base.connection_db_config
11
5
  c
12
6
  exit
13
7
  si.sql
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails_sql_prettifier_ar_5
1
+ rails_sql_prettifier_ar_6
data/CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
- # 5.0.1
2
- * Fixed issue with Niceql.configure not configuring anything + test covered
1
+ # 6.1.0
3
2
 
4
- # 5.0.0
5
-
6
- * This a active record prior to 6.0 version compatible niceql integration
7
- ( main difference is StatementInvalid initialization, starting version 6 it has named param sql: for original query )
3
+ * This a active record prior to 7.0 version and >= 6.1 compatible niceql integration
4
+ ar < 6.0 breaking change:
5
+ * StatementInvalid initialization ahs a breaking change: starting version 6 it has named param sql: for original query )
6
+
7
+ ar <= 6.1:
8
+ * Starting from 6.1 connection_db_config method replaced connection_config which was a hash
@@ -1,3 +1,3 @@
1
1
  module RailsSQLPrettifier
2
- VERSION = '5.0.2'
2
+ VERSION = '6.1.2'
3
3
  end
@@ -55,7 +55,7 @@ module RailsSQLPrettifier
55
55
 
56
56
 
57
57
  def ar_using_pg_adapter?
58
- ActiveRecord::Base.try(:connection_config)&.with_indifferent_access&.dig(:adapter) == 'postgresql'
58
+ ActiveRecord::Base.connection_db_config.adapter == 'postgresql'
59
59
  end
60
60
 
61
61
  def initialize
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.required_ruby_version = '>= 2.4'
34
34
  spec.add_dependency "niceql", '~> 0.5'
35
35
 
36
- spec.add_development_dependency "activerecord", "< 6.0"
36
+ spec.add_development_dependency "activerecord", '>= 6.1', '< 7'
37
37
 
38
38
  spec.add_development_dependency "bundler", ">= 1"
39
39
  spec.add_development_dependency "rake", ">= 12.3.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sql_prettifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6.1'
31
34
  - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: '6.0'
36
+ version: '7'
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '6.1'
38
44
  - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: '6.0'
46
+ version: '7'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: bundler
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -202,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
208
  - !ruby/object:Gem::Version
203
209
  version: '0'
204
210
  requirements: []
205
- rubygems_version: 3.2.15
211
+ rubygems_version: 3.1.4
206
212
  signing_key:
207
213
  specification_version: 4
208
214
  summary: This is an ActiveRecord integration for the SQL prettifier gem niceql.