niceql 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: 5ae74ab563688b94a264e8c45e2a3e5c3dece293
4
- data.tar.gz: 0e5a2483d97b90b1e70b08111c4147a9fb0fd7ac
3
+ metadata.gz: c1abb2f5e4e5f877461b9ffc00fdd4c443be900e
4
+ data.tar.gz: a14bdab780abdb5f9f70b7f3830787a193900d6e
5
5
  SHA512:
6
- metadata.gz: 770ae4357fac9c7e89ac576310ae6ee27fb2253d68b38de97d3c5056b8ca20f1a57c8922e99d3811b0d1bc2175dd19b9334424e3f96a15115b6de35715ec2be3
7
- data.tar.gz: 6120635b333b050f4ea1f4bd2a7942bcb97a3f569ca4d78c3eb9cc016cd50b7f11d91c1c9c6f44b3eee5639c3bf7898365cb476097d9232fda06afbc6e792ae8
6
+ metadata.gz: b15bfd9c83732a44df015a9c04c19698fddc1c4dc8a036b879499de8771c0d2c1991f2ca283e8a001837db005cbf9d81bd3bb08ed7dd3ad12714a397b4a9a162
7
+ data.tar.gz: 9ac6a5b8dbb7d70f9935fc8c6f750178d14371d507179cc59c1ae3f792206cf8e4028593d1a9079f883c1d9cf31dfcba4a5ef1a62561c2dac614bf7cbe0ed729
@@ -52,7 +52,7 @@ module Niceql
52
52
 
53
53
  def self.prettify_pg_err(err)
54
54
  err_line_num = err[/LINE \d+/][5..-1].to_i
55
- start_sql_line = err.lines[3][/HINT|DETAIL/] ? 4 : 3
55
+ start_sql_line = err.lines[3][/(HINT|DETAIL)/] ? 4 : 3
56
56
  err_body = err.lines[start_sql_line..-1]
57
57
  err_line = StringColorize.colorize_err( err_body[err_line_num-1] )
58
58
 
@@ -1,3 +1,3 @@
1
1
  module Niceql
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl