ons-firestore 1.0.0 → 1.0.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: 86211db8e2182585d84762f6195444c9558cf20c880cd032dce29184ea166f47
4
- data.tar.gz: 26bd51c53071774bba55547accaba38ab32f38dabafb6796949d96a1348c6321
3
+ metadata.gz: bfcc9c616b8d8e3309c90dcd33395a620ccdd4d51a88b0fdfe817df3f5559a9e
4
+ data.tar.gz: 25695e1400af224f5ac2e690c1330d55939bdac2bda22bdf37705e8b396e9e83
5
5
  SHA512:
6
- metadata.gz: f3ad8ca48f1f7273285f88e7cbdb1655a25dc999148aadca18552cb510d9058bb7021975ff5da1877ec552c1abbcaaf56b692a41dd21245df780824e9da74179
7
- data.tar.gz: ca74cb6ba7a354ba7c0e2808891b75e8ee310fc7d10d96fa3888b5364392a5a710c9512fcae7bd689f39f5a9f2a9fe3a4718dfccce0497adbe867c7f7fd2aabb
6
+ metadata.gz: 73943d0336742113d2b666b3efcf8e4a2af6690bc4810f4f7e3c11b2cc00c0e79a89db08aae1cf4f61a094a689ab80c31fe6dfe6da1201811c6f69d4e18c4507
7
+ data.tar.gz: 86c4ef0555351bd5c86e1621f4eec4024dcb43fd628f6621c376f5bae9aeb2ed3032e650f997f5d758c614e6d8eec67c8f7eadfa9c9213494a8c90178730c46c
@@ -61,7 +61,7 @@ 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.map(&:to_h)
64
+ hash_data[key] = value.respond_to?(:to_h) ? value.map(&:to_h) : value
65
65
  end
66
66
  end
67
67
 
@@ -4,7 +4,7 @@ module ONSFirestore
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
- TINY = 0
7
+ TINY = 1
8
8
  end
9
9
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ons-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Topley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-firestore