pg_adaptor 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac84ecb0fc5a86062d7fb5734fbc0bf17bf7c668
4
- data.tar.gz: 812550978d01e9e4cf61f0791ca03e5a77ad7b3b
3
+ metadata.gz: e8931d215201a846318a6ba1c18570047c1527bd
4
+ data.tar.gz: a9aa723946d7ab816b55e878d1162a04c6b4b8c6
5
5
  SHA512:
6
- metadata.gz: 69a21bbb5d4c7b5f43e00b77f6a9554c2e70973dc52ab930020728903f8b2278f64d439efc34503dcdcd23b5dda51c110162825d9248338bfaf5a30206e54b87
7
- data.tar.gz: fc59be59aa1de438ce8e086dc1226e04cf004570bbde107825c3493e6d4ba89ada0112ec09ae22c46dec2e28b57ba3153bc94926b7aad335205d78069885801a
6
+ metadata.gz: 628a886a5c6031249158082d564b99c30670876ef9685808ddb0d61fd69c2052b9de72283d5184e25139c84400c39f195af8aa1541e880c7b7a24dea6e7420e0
7
+ data.tar.gz: e5802e47470b88a6359fc0e900dd557d7441b02b97675aced97e2028b0fc4269dd0f62d342288bfddec2ca830d1835fcbcd4bddba6438ffbb3ab0688a0f82701
data/lib/pg_adaptor.rb CHANGED
@@ -66,8 +66,9 @@ private
66
66
  next if field == :id && value.nil?
67
67
  raise "Field not present in schema: #{field}" unless schema[field.to_sym]
68
68
  case schema[field.to_sym][:db_type]
69
- when "jsonb" then fields[field] = Sequel.pg_jsonb value
70
- when /\[\]$/ then fields[field] = Sequel.pg_array value
69
+ when "jsonb" then fields[field] = Sequel.pg_jsonb value
70
+ when "json" then fields[field] = Sequel.pg_json value
71
+ when /\[\]$/ then fields[field] = Sequel.pg_array value
71
72
  else
72
73
  fields[field] = value
73
74
  end
@@ -1,3 +1,3 @@
1
1
  class PGAdaptor
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_adaptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Rowe