niceql 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74fac1f8e6213748766ad42774bf8709b5acff43
4
- data.tar.gz: 5ed4e1400203de4cd5b049beda67a6a535c528f6
3
+ metadata.gz: ab752505547eb622f82e1b54431ad1e7c0a87958
4
+ data.tar.gz: 80a0ec84ebaccb4f7487990ffab3445249e30ecc
5
5
  SHA512:
6
- metadata.gz: ec87b1f2aca25e59a17dd687febe0bf83e9f5e238a98f628ce2a4e9958dbfb725f3dc3c4da56c497af2ebdfc578806df9cf511397a19f160ed4c6036d8028655
7
- data.tar.gz: 19631eaab9bedf8ffbad5ee86e217f9e7da50e662d12114aef165d0953d1977b8474253e1b2f3c508fcb71075dc2c068a477ecad4c5980f498992b7a5ff0b323
6
+ metadata.gz: f0aaf330cb1442079b7e4add9571607b5b7407839ecf86376519339c274caf0fff4dde5dfe15ba58f43b1f0b6a98e290202c52a336136964178a58a4ccf539b5
7
+ data.tar.gz: 8b42f8113b508080131f0c9dfba623461b13b122573fd242b0fdffa6fc3d1a7f93eadbf9b618a90074e809557170e8bbf15f20e96efa692d057bdc38434096b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.17
2
+ * add test
3
+ * fix issue 1 fore real
4
+
1
5
  # 0.1.16
2
6
  * Add prettify_active_record_log_output to rails config generator
3
7
 
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 = "#{INLINE_VERBS}|#{NEW_LINE_VERBS}"
39
+ VERBS = "#{NEW_LINE_VERBS}|#{INLINE_VERBS}"
40
40
  STRINGS = /("[^"]+")|('[^']+')/
41
41
  BRACKETS = '[\(\)]'
42
42
 
@@ -1,3 +1,3 @@
1
1
  module Niceql
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
data/niceql.gemspec CHANGED
@@ -34,4 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "rake", "~> 10.0"
35
35
  spec.add_development_dependency "minitest", "~> 5.0"
36
36
 
37
+ spec.add_development_dependency 'differ'
37
38
  end
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.16
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: