niceql 0.1.11 → 0.1.12

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: df1e798367ac9ec1feb35b6d27034450ca6c77a5
4
- data.tar.gz: 46d00cf4b8ea9595a8a333dcbfda7fa93b2cc53b
3
+ metadata.gz: fb3174c95215e20c862b83ac0ac99b93088b2383
4
+ data.tar.gz: b7e83170aceb2776d501175a8a25e9a89317767e
5
5
  SHA512:
6
- metadata.gz: '0868a847be7c42830aa4e1e19a2e5a87e3553e7ade5d3ee601f85f69f9e376c3e2f13c8e99b44c9fab8dfd23abf6524c082a66337e5827ecc6267e8a9b5c6590'
7
- data.tar.gz: 397a2978359ee17c98345087d3c51273228c8e43d2b90c85271290be954cbe6a448aaed26edfe9aa813d69245e8aac25e85b01bf7bfb844032ab3caba22e42ba
6
+ metadata.gz: c0b960909a6ff0db248ccf934ed158185d94d332c7716a1f49c4f64394fc15196c4d83f53f09570f8bbd58899f303fd0b1b59d4b86c64f1da707b3a7833326db
7
+ data.tar.gz: 5b2fccafcd22476fa6e767738a4524b0f56f758f19b46cd4e38a6f715bc69fa116c6fc04882e9443340a0fc6a743c84144dd3cbf5ee9eb25b45c0dd2616ea17a
data/lib/niceql.rb CHANGED
@@ -52,6 +52,7 @@ module Niceql
52
52
 
53
53
 
54
54
  def self.prettify_pg_err(err)
55
+ return err if err[/LINE \d+/].nil?
55
56
  err_line_num = err[/LINE \d+/][5..-1].to_i
56
57
 
57
58
  start_sql_line = err.lines[3][/(HINT|DETAIL)/] ? 4 : 3
@@ -1,3 +1,3 @@
1
1
  module Niceql
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseyl