rails_sql_prettifier 6.0.2 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.byebug_history +34 -0
- data/.gitignore +1 -2
- data/.ruby-gemset +1 -1
- data/CHANGELOG.md +5 -3
- data/lib/rails_sql_prettifier/version.rb +1 -1
- data/lib/rails_sql_prettifier.rb +1 -1
- data/rails_sql_prettifier.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 459c1f20e82eb14b0130418cb1161272383ae9f9f902164100b2a4d81bbabb9c
|
4
|
+
data.tar.gz: db5ee936e31bd470ac74940b2fa086e4a1aec84004cb05971c6434e8f5cb2ea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a159e5b627abaa4ac80c70092668aad54f11f871c13a57e83585e38851d2f522273653d79871b2b087d1bce83de00c9119b6b2d7c28b60d7b75c8b13b1e3dde1
|
7
|
+
data.tar.gz: 4feabc414ccf282a7462c44527514449735b8bcdf9b2b84afe3b873735176cecbe1dcc40dfa6745b67af114391a1a38808cc3658bae4e45e8b242267932e32ce
|
data/.byebug_history
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
exit
|
2
|
+
ActiveRecord::Base.connection_db_config.adapter
|
3
|
+
ActiveRecord::Base.connection_db_config.adpter
|
4
|
+
ActiveRecord::Base.connection_db_config
|
5
|
+
c
|
6
|
+
exit
|
7
|
+
si.sql
|
8
|
+
si
|
9
|
+
c
|
10
|
+
sql_body
|
11
|
+
n
|
12
|
+
s
|
13
|
+
original_sql_query
|
14
|
+
err
|
15
|
+
s
|
16
|
+
up
|
17
|
+
s
|
18
|
+
up
|
19
|
+
s
|
20
|
+
up
|
21
|
+
s
|
22
|
+
super
|
23
|
+
try(:sql)
|
24
|
+
Niceql.config.prettify_pg_errors
|
25
|
+
c
|
26
|
+
exit
|
27
|
+
err_template
|
28
|
+
si.to_s
|
29
|
+
exit
|
30
|
+
err_caret_line
|
31
|
+
err_quote_caret_offset
|
32
|
+
c
|
33
|
+
err.lines[1].index( '...' ).to_i
|
34
|
+
err_caret_line
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
rails_sql_prettifier_ar_6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
# 6.0
|
1
|
+
# 6.1.0
|
2
2
|
|
3
3
|
* This a active record prior to 7.0 version and >= 6.1 compatible niceql integration
|
4
|
-
ar < 6.0
|
5
|
-
* StatementInvalid initialization
|
4
|
+
ar < 6.0:
|
5
|
+
* StatementInvalid initialization, starting version 6 it has named param sql: for original query )
|
6
6
|
|
7
|
+
ar <= 6.1:
|
8
|
+
* Starting from 6.1 connection_db_config used as standalone object instead of connection_config
|
data/lib/rails_sql_prettifier.rb
CHANGED
@@ -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.
|
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: 6.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseyl
|
@@ -30,20 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6.
|
33
|
+
version: '6.1'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '7'
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '6.
|
43
|
+
version: '6.1'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '7'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,6 +135,7 @@ executables: []
|
|
135
135
|
extensions: []
|
136
136
|
extra_rdoc_files: []
|
137
137
|
files:
|
138
|
+
- ".byebug_history"
|
138
139
|
- ".gitignore"
|
139
140
|
- ".ruby-gemset"
|
140
141
|
- ".ruby-version"
|