ons-firestore 1.0.1 → 1.0.2

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: bfcc9c616b8d8e3309c90dcd33395a620ccdd4d51a88b0fdfe817df3f5559a9e
4
- data.tar.gz: 25695e1400af224f5ac2e690c1330d55939bdac2bda22bdf37705e8b396e9e83
3
+ metadata.gz: 8f758241e0412f8c0b4c72776352c753dd44cea5bcca617bd80efb90baa12829
4
+ data.tar.gz: ada12ed5b8d5d1d4ece7cf7812d839dba8f6e55fe592e7ac97e6d00a443565ef
5
5
  SHA512:
6
- metadata.gz: 73943d0336742113d2b666b3efcf8e4a2af6690bc4810f4f7e3c11b2cc00c0e79a89db08aae1cf4f61a094a689ab80c31fe6dfe6da1201811c6f69d4e18c4507
7
- data.tar.gz: 86c4ef0555351bd5c86e1621f4eec4024dcb43fd628f6621c376f5bae9aeb2ed3032e650f997f5d758c614e6d8eec67c8f7eadfa9c9213494a8c90178730c46c
6
+ metadata.gz: 0f7c7171137c9bc2c6dc8ddf9b96f2ece25c77c3a7cb17031f9a763ac0fea9b41bc797bc3612f884cb5f30513b8a84b01ec69fbe16f9621e9df557e7c7b854fb
7
+ data.tar.gz: e37cf44ff5a87a260d98f045a04624eaac0cb441ac910472538d2f36716cab74ea3ad0484511901f2ad688a0a2f703a3f068914939334250250ff4aa6e9e9c15
@@ -61,7 +61,8 @@ class Firestore
61
61
  if data.is_a?(Hash)
62
62
  hash_data = {}
63
63
  data.each do |key, value|
64
- hash_data[key] = value.respond_to?(:to_h) ? value.map(&:to_h) : value
64
+ hash_data[key] = value if value.is_a?(Array)
65
+ hash_data[key] = value.map(&:to_h) unless value.is_a?(Array)
65
66
  end
66
67
  end
67
68
 
@@ -4,7 +4,7 @@ module ONSFirestore
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
- TINY = 1
7
+ TINY = 2
8
8
  end
9
9
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ons-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Topley