pubsub_tie 1.3.0 → 1.3.1

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
  SHA256:
3
- metadata.gz: 5197e991980aaa66203f85ae0578f2c99084be20ed97ab09095a76a7f172d0bf
4
- data.tar.gz: 99a5cf74320f78e410a3cec82fbd71304748b8428f4fb8a56a0ef41e1a2b22e6
3
+ metadata.gz: 6ef728152aba41e47db09ac2844824f7d834653c02cc51b63215ba6cff110a28
4
+ data.tar.gz: a987d8ba54e1b99c41e4fb50f3257d54fcd6ad23f33671aac3fc6fc9334b6773
5
5
  SHA512:
6
- metadata.gz: bd220c7966605d989e9c5f9c71c23cf8680d575726031348037e9fbc33718aa16ac89f807ad46f9cb1027a26e911ecc7dcc157efe5ee6ff70e76dfdf48eac49b
7
- data.tar.gz: 8751592fe85ad07e015591f22f83964e43889d8454bc631efc1f52abdeeb3a2bd42dc2b6047fced3f62cb574c74f647ba5933b7bc563d10232cce35778b43108
6
+ metadata.gz: '0690c249f86173b52ef915397a297e22dc05362ddbcd77f92723512f5537de93f1e54d36df09342cbe120ff63f32b38846b28c7c8b6427aa308fd1ee109fc134'
7
+ data.tar.gz: 20da69280aedd1aea21aad16c2c3483d60a75dd4e529c7262cdad63b4f5aaea9858730961a8d193a03085eeaeaa2db2f6c869a629ba7ee58e83e3108ae4106d2
@@ -92,6 +92,10 @@ module PubSubTie
92
92
  case val
93
93
  when String
94
94
  bad_type(field, data) unless types[field.to_s] == "STRING"
95
+ when TrueClass
96
+ bad_type(field, data) unless types[field.to_s] == "BOOL"
97
+ when FalseClass
98
+ bad_type(field, data) unless types[field.to_s] == "BOOL"
95
99
  when Integer
96
100
  bad_type(field, data) unless ["INT", "FLOAT", "INT64", "SMALLINT", "INTEGER", "BIGINT", "TINYINT", "BYTEINT"].include? types[field.to_s]
97
101
  when Numeric
@@ -100,6 +104,9 @@ module PubSubTie
100
104
  bad_type(field, data) unless types[field.to_s] == "TIMESTAMP"
101
105
  when DateTime
102
106
  bad_type(field, data) unless types[field.to_s] == "DATETIME"
107
+ # since Ruby doesn't have a Boolean
108
+ when(FalseClass || TrueClass)
109
+ bad_type(field, data) unless types[field.to_s] == "BOOL"
103
110
  when Array
104
111
  bad_type(field, data) unless Events.repeated(sym).include? field
105
112
  val.each {|elem| validate_type(field, elem, data, sym) }
@@ -1,3 +1,3 @@
1
1
  module PubSubTie
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubsub_tie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Calderon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-pubsub