rails_sql_prettifier 5.0.0 → 5.0.1

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: fd1acaf8f6f82312ccb1422330645c2365b3e4f93c9874da2645c62866310836
4
- data.tar.gz: bad3c23c4af4d0d3d3d8200f2ae38309df6cc332e92ab6466713f1956ee91739
3
+ metadata.gz: e054a55678b35786fd255abe2842a3b4b795e5ffbb5e0ea570888c05c6abaea6
4
+ data.tar.gz: ba6cba10e835b079e364347eba883c63106164f20ebf7dfb7406270f657b1edd
5
5
  SHA512:
6
- metadata.gz: 3b16a4ee0ba376dc3f7ae3e3d2eaec46bd08cdda2e525b4a59be827e82ae5c161d90fd236e418bb226a8cca54aaebf6e5e590161fa529f52c25e0f025db27e42
7
- data.tar.gz: ab755ea34ed0bc3c910ee02895a94a35c7a1f4de4d123188f66985a9cd68950f8d708cdc3ba8d5cf7a590403b8e77c4186ebae44ecc31d5e1fcc8cc0dca63836
6
+ metadata.gz: d01423c703f5425635c41f3bed89622b17e9860eb8322ded8de75c1bf348fd305382f0d7ae98b8d201f7494f6cac92fab959fe6475367bd782e4248889875135
7
+ data.tar.gz: 51695da6649ff7907d152f6a0a3105536def401640b4d2f076a0da8758a5bdccc6aa01fd1395c44777b1eef73a860eeae53d93bb32ffa54dd58e12f63e1443b3
data/.byebug_history CHANGED
@@ -1,3 +1,7 @@
1
+ exit
2
+ ActiveRecord::Base.connection_config[:adapter]
3
+ ActiveRecord::Base.connection_config.adapter
4
+ ActiveRecord::Base.connection_config
1
5
  c
2
6
  ActiveRecord.version <= Gem::Version.new(5)
3
7
  c
data/CHANGELOG.md CHANGED
@@ -0,0 +1,4 @@
1
+ # 5.0.0
2
+
3
+ * This a activer record prior to 6.0 version compatible niceql integration
4
+ ( main difference is StatementInvalid initialization, starting version 6 it has named param sql: for original query )
@@ -1,3 +1,3 @@
1
1
  module RailsSQLPrettifier
2
- VERSION = '5.0.0'
2
+ VERSION = '5.0.1'
3
3
  end
@@ -55,10 +55,7 @@ module RailsSQLPrettifier
55
55
 
56
56
 
57
57
  def ar_using_pg_adapter?
58
- adapter = ActiveRecord::Base.try(:connection_db_config).try(:adapter) ||
59
- ActiveRecord::Base.try(:connection_config)&.with_indifferent_access&.dig(:adapter)
60
-
61
- adapter == 'postgresql'
58
+ ActiveRecord::Base.try(:connection_config)&.with_indifferent_access&.dig(:adapter) == 'postgresql'
62
59
  end
63
60
 
64
61
  def initialize
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.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl