niceql 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/niceql.rb +2 -2
- data/lib/niceql/version.rb +1 -1
- data/niceql.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab752505547eb622f82e1b54431ad1e7c0a87958
|
4
|
+
data.tar.gz: 80a0ec84ebaccb4f7487990ffab3445249e30ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0aaf330cb1442079b7e4add9571607b5b7407839ecf86376519339c274caf0fff4dde5dfe15ba58f43b1f0b6a98e290202c52a336136964178a58a4ccf539b5
|
7
|
+
data.tar.gz: 8b42f8113b508080131f0c9dfba623461b13b122573fd242b0fdffa6fc3d1a7f93eadbf9b618a90074e809557170e8bbf15f20e96efa692d057bdc38434096b4
|
data/CHANGELOG.md
CHANGED
data/lib/niceql.rb
CHANGED
@@ -33,10 +33,10 @@ module Niceql
|
|
33
33
|
end
|
34
34
|
|
35
35
|
module Prettifier
|
36
|
-
INLINE_VERBS = %w(WITH ASC IN COALESCE AS WHEN THEN ELSE END AND UNION ALL WITH ON DISTINCT INTERSECT EXCEPT EXISTS NOT COUNT ROUND CAST).join('| ')
|
36
|
+
INLINE_VERBS = %w(WITH ASC (IN\s) COALESCE AS WHEN THEN ELSE END AND UNION ALL WITH ON DISTINCT INTERSECT EXCEPT EXISTS NOT COUNT ROUND CAST).join('| ')
|
37
37
|
NEW_LINE_VERBS = 'SELECT|FROM|WHERE|CASE|ORDER BY|LIMIT|GROUP BY|(RIGHT |LEFT )*(INNER |OUTER )*JOIN|HAVING|OFFSET|UPDATE'
|
38
38
|
POSSIBLE_INLINER = /(ORDER BY|CASE)/
|
39
|
-
VERBS = "#{
|
39
|
+
VERBS = "#{NEW_LINE_VERBS}|#{INLINE_VERBS}"
|
40
40
|
STRINGS = /("[^"]+")|('[^']+')/
|
41
41
|
BRACKETS = '[\(\)]'
|
42
42
|
|
data/lib/niceql/version.rb
CHANGED
data/niceql.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: niceql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alekseyl
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: differ
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: 'This is simple and nice sql prettifier, it splits, indent and colorize
|
56
70
|
SQL query and PG error if any '
|
57
71
|
email:
|