pg_query 0.11.3 → 0.11.4

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: a239534a583610c96a6a32facaa233733eadecff
4
- data.tar.gz: f1e5a88a394eed863a072fd95c509e03a72c4eda
3
+ metadata.gz: bae030ac70d3ec0dc2d8c4f32e7bf7a3ec364320
4
+ data.tar.gz: bc2e93c78152050701bfa0a962e64ba877593aad
5
5
  SHA512:
6
- metadata.gz: 686011140d6fb957646700cc78f0e22f7786eadc859e588e19aa0abf4271993684abf27cea0125498923046e35c447409b11c112eadbcb6f4404d558f8f35728
7
- data.tar.gz: 4e1ee3b8a8f1f95b852a9966c98bc85278d78812e17c65ddf0391166beb89249e107e83e9377db63ce929f8c80fa7c7971cd1711011d799af5287f58cfbdd512
6
+ metadata.gz: 509cbecec7aa6cd3533656cf260132a75cf1e83f1a9967ed49bf7831271fefb5a5223661d79891192f0435d72c45ac7ccf056970dd5e74ee3d2c7f5dc91ea8d2
7
+ data.tar.gz: 49021c28cafa93f84ff9a9366c510d358f685b710f44845541c3a347976c7313ba8f09bc69fbf20a8737346e9f41fddfae11213a489a3f8a52b69d760e434e6e
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.4 2017-01-18
4
+
5
+ * Compatibility with Ruby 2.4 [#59](https://github.com/lfittl/pg_query/pull/59) [@merqlove](https://github.com/merqlove)
6
+ * Deparse varchar and numeric casts without arguments [#61](https://github.com/lfittl/pg_query/pull/61) [@jcsjcs](https://github.com/jcsjcs)
7
+
8
+
3
9
  ## 0.11.3 2016-12-06
4
10
 
5
11
  * Update to newest libpg_query version (9.5-1.4.2)
@@ -817,10 +817,10 @@ class PgQuery
817
817
  # char(2) or char(9)
818
818
  "char(#{arguments})"
819
819
  when 'varchar'
820
- "varchar(#{arguments})"
820
+ arguments.nil? ? 'varchar' : "varchar(#{arguments})"
821
821
  when 'numeric'
822
822
  # numeric(3, 5)
823
- "numeric(#{arguments})"
823
+ arguments.nil? ? 'numeric' : "numeric(#{arguments})"
824
824
  when 'bool'
825
825
  'boolean'
826
826
  when 'int2'
@@ -1,3 +1,3 @@
1
1
  class PgQuery
2
- VERSION = '0.11.3'
2
+ VERSION = '0.11.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Fittl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-06 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -70,16 +70,22 @@ dependencies:
70
70
  name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.8'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '3'
76
79
  type: :runtime
77
80
  prerelease: false
78
81
  version_requirements: !ruby/object:Gem::Requirement
79
82
  requirements:
80
- - - "~>"
83
+ - - ">="
81
84
  - !ruby/object:Gem::Version
82
85
  version: '1.8'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '3'
83
89
  description: Parses SQL queries using a copy of the PostgreSQL server query parser
84
90
  email: lukas@fittl.com
85
91
  executables: []