rails_sql_prettifier 6.0.3 → 7.0.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: f1ee709955e95f1203d8f1e64feb5e51309123c92f7eeeee50fa44d9688511c3
4
- data.tar.gz: b44477d11671c84097e66e2b69393a458f9a57cd2ab0c6aa4507e23105af3f80
3
+ metadata.gz: f0915544aab1e8904934de1a1267a8d40964918a3dfdf7ab167c81a9d8b58b28
4
+ data.tar.gz: c5106dc3115d142d47efeaa17b44c67582d74cb0ff820e4b627b4189025b02d2
5
5
  SHA512:
6
- metadata.gz: 84862ea11984c33d2c198a6c7a0ec340a4f90d35463abe971280580e1f3f4d97db47486c838c13e854898c8c01c4d511fd2f74f5ab57068667159f2218d1cda8
7
- data.tar.gz: 9e72db1724def7dc7fec82a5198281badc9b81fba4bcc01f3a51dfae23fd4ef1700f2369db7312fb97497c1c1caa2dbee0cb4b526466feb5a8887802b33f0f8f
6
+ metadata.gz: 599c98fb30699026e7da016d223a21cc8741f03b1c2dbcd0288f733b652075ec8cffb269d1da4d36fbcb0f04dfce196b4b611c29aa32dc84d88ebac2a2d351b7
7
+ data.tar.gz: ab7080d1422d87aa5d75b59763625b151980f34b6724cb8138ca8065003ec02cc8dd9a139dd3303e33c4524ac4b8cf9557c77e9d04e71148e45548476f3f0d0d
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails_sql_prettifier_ar_6_0
1
+ rails_sql_prettifier
data/CHANGELOG.md CHANGED
@@ -1,9 +1,6 @@
1
- # 6.0.3
2
- * Fixed issue with Niceql.configure not configuring anything + test covered
1
+ #7.0.2
2
+ * active record versioning is properly aligned now
3
3
 
4
- #6.0.2
4
+ #7.0.0
5
5
 
6
- * This a active record prior to 7.0 version and >= 6.1 compatible niceql integration
7
- ar < 6.0 breaking change:
8
- * StatementInvalid initialization has a breaking change: starting version 6 it has named param sql: for original query )
9
-
6
+ * current master branch
data/README.md CHANGED
@@ -2,8 +2,11 @@
2
2
 
3
3
  This is an ActiveRecord integration for a niceql gem ( niceql is a small, nice, simple and zero dependency solution for the SQL prettifying in ruby ).
4
4
 
5
- This gem is an extraction from niceql version 0.4.x. Its separated by different ActiveRecord versions, previous it had some version logic branching e.t.c.
6
- but that is hard to maintain and test, and also breaking the idea of niceql to be dependentless solution, so now niceql is a completely railsfree solution yeay!
5
+ This gem started as a code extraction from niceql version 0.4.x.
6
+
7
+ It has versioning aligned to the ActiveRecord versions, niceql prior to 0.5 version had hardcoded logic branches based on ActiveRecord versioning.
8
+
9
+ That is hard to maintain and hard to test, and also coupling with AR is breaking the original idea of the niceql to be a dependentless solution, so now the niceql is a completely railsfree gem yeay! ( It still has some some checks related to AR implemetations in the error prettifying methods. It will be completely decoupled in the future )
7
10
 
8
11
  Any reasonable suggestions are welcome.
9
12
 
@@ -31,7 +34,7 @@ if whenever you specify versions manually.
31
34
  Add this line to your application's Gemfile:
32
35
 
33
36
  ```ruby
34
- gem 'rails_sql_prettifier'
37
+ gem 'rails_sql_prettifier', '~> X.X.X'
35
38
  ```
36
39
 
37
40
  And then execute:
@@ -1,3 +1,3 @@
1
1
  module RailsSQLPrettifier
2
- VERSION = '6.0.3'
2
+ VERSION = '7.0.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
@@ -32,8 +32,7 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.required_ruby_version = '>= 2.4'
34
34
  spec.add_dependency "niceql", '~> 0.5'
35
-
36
- spec.add_development_dependency "activerecord", '>= 6.0', '< 6.1'
35
+ spec.add_dependency "activerecord", '>= 7'
37
36
 
38
37
  spec.add_development_dependency "bundler", ">= 1"
39
38
  spec.add_development_dependency "rake", ">= 12.3.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sql_prettifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 7.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-08 00:00:00.000000000 Z
11
+ date: 2022-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: niceql
@@ -30,20 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '6.0'
34
- - - "<"
35
- - !ruby/object:Gem::Version
36
- version: '6.1'
37
- type: :development
33
+ version: '7'
34
+ type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - ">="
42
39
  - !ruby/object:Gem::Version
43
- version: '6.0'
44
- - - "<"
45
- - !ruby/object:Gem::Version
46
- version: '6.1'
40
+ version: '7'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement