simple-sql 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/simple/sql/decoder.rb +5 -1
- data/lib/simple/sql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5270d094e23d8a741261e52ea988e374eebce20
|
4
|
+
data.tar.gz: fe1e8d720d9ba38ef2624659604489e80be6d43d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77e35bc50ffd15f6b3be34b0f26324d0459175e885b98be98117ba1d99281115a1c8fb23d45bef9522683dfd0f6e2bc5c7136ee548ee00351182a4fff6759ba0
|
7
|
+
data.tar.gz: 59be29865d6a0e133d27724c2a81ad8340e4f839157be9969ab9139f3540fdeefa06881fb735ce417b5985f451014515356242eb2592b42a0b2c8702bf07d60f
|
data/Gemfile.lock
CHANGED
data/lib/simple/sql/decoder.rb
CHANGED
@@ -32,7 +32,11 @@ module Simple::SQL::Decoder
|
|
32
32
|
when :hstore then HStore.parse(s)
|
33
33
|
when :json then ::JSON.parse(s)
|
34
34
|
when :jsonb then ::JSON.parse(s)
|
35
|
-
|
35
|
+
when :boolean then s == "t"
|
36
|
+
else
|
37
|
+
# unknown value, we just return the string here.
|
38
|
+
# STDERR.puts "unknown type: #{type.inspect}"
|
39
|
+
s
|
36
40
|
end
|
37
41
|
end
|
38
42
|
# rubocop:enable Metrics/AbcSize
|
data/lib/simple/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- radiospiel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pg_array_parser
|