ons-firestore 1.2.0 → 1.2.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: b1409410ed2eeda669760d9de820c52475fdc0430dc2ca073830587102d8cb23
4
- data.tar.gz: 956e2ad87753f9a8e13dca996ad3d1f3be3362689e993ac077c7d5865b34e413
3
+ metadata.gz: ffae582656edb80c22028523bd1b307e9878e20450ee25a2bba2924da506eb19
4
+ data.tar.gz: cdbe8832c4f0a5d49fbf340530b8d1f3211ebf6bf50e49814b8e382ec7433224
5
5
  SHA512:
6
- metadata.gz: b9f264f04c6e0f64ef1befda1294236a2153aa64f4862d63c0d4addfca5ac0931a4358c37f707a7786388616849a29e56970523bcd831938087f58add0eb5409
7
- data.tar.gz: 11e1f4f2512587bc54de61647cae2e007f1cbac20b0cbd7f50bddb32a19b265de464ce2e1e90bbd1eddf5dd0d620d406aede404052f2df8b1629deabe6fe9694
6
+ metadata.gz: fcbc120f1016150d54bff96aee74d5d2d772c807a7d17c6bb8da58f9728d899ef1ff543688c2b96229c1a87c63ff9fb5845100383f444a9970b1d71454378ce3
7
+ data.tar.gz: 6f408ae0027ca9fc946acfc006081a5b018f837e0f8a5ada236d4d0f8aa826ef46fb2ed2bcdc712b960e6ea72a9fe22625d581968f95f6da5f4bc7b717609945
@@ -57,7 +57,7 @@ class Firestore
57
57
 
58
58
  document = @client.col(collection_name).doc(document_name)
59
59
  snapshot = document.get
60
- raise FirestoreError('data key is missing') if snapshot.data.nil?
60
+ raise FirestoreError, 'data key is missing' if snapshot.data.nil?
61
61
 
62
62
  snapshot[:data]
63
63
  end
@@ -92,7 +92,7 @@ class Firestore
92
92
  begin
93
93
  document.set({ data: hash_data, updated: Time.now.strftime(DATE_TIME_FORMAT) })
94
94
  rescue StandardError => e
95
- raise FirestoreError("Failed to save Firestore document #{document_name} in collection #{collection_name}: #{e.message}")
95
+ raise FirestoreError, "Failed to save Firestore document #{document_name} in collection #{collection_name}: #{e.message}"
96
96
  end
97
97
  end
98
98
  end
@@ -4,7 +4,7 @@ module ONSFirestore
4
4
  module Version
5
5
  MAJOR = 1
6
6
  MINOR = 2
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ons-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Topley