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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2efe4d2f3574002cd742ec35b92008be1759d00
4
- data.tar.gz: 6d91555bba894180b6f0204be9cff494d5a75747
3
+ metadata.gz: a5270d094e23d8a741261e52ea988e374eebce20
4
+ data.tar.gz: fe1e8d720d9ba38ef2624659604489e80be6d43d
5
5
  SHA512:
6
- metadata.gz: 8c0f34107ae8c103bbfdef1ec6ad5f1c79e66de50c47880e7a0693c18cd6c1ad6f2e4b1800620f65566d82b488dd95fec8d40e604bf9bc2a8bf42051a30e165c
7
- data.tar.gz: 7e85012e105fd64d0b322c6ec99e020c57ec54b3bc5b7f3d625b8cb69eb7cb056b5da9abdd847bd07893b8183a6e8eb3f52af74f23532fd3db3fd23c7cd75d8d
6
+ metadata.gz: 77e35bc50ffd15f6b3be34b0f26324d0459175e885b98be98117ba1d99281115a1c8fb23d45bef9522683dfd0f6e2bc5c7136ee548ee00351182a4fff6759ba0
7
+ data.tar.gz: 59be29865d6a0e133d27724c2a81ad8340e4f839157be9969ab9139f3540fdeefa06881fb735ce417b5985f451014515356242eb2592b42a0b2c8702bf07d60f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-sql (0.2.3)
4
+ simple-sql (0.2.4)
5
5
  pg (~> 0.20)
6
6
  pg_array_parser (~> 0)
7
7
 
@@ -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
- else s # unknown value, we just return the string here.
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
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module SQL
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
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.3
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-29 00:00:00.000000000 Z
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