kagaribi 0.2.0 → 0.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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/kagaribi/collection.rb +2 -2
- data/lib/kagaribi/version.rb +1 -1
- data/sig/kagaribi/collection.rbs +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c77b5683ce1658304c3df23eac700d3334a1a27672dd9ed583bc30d8a6b469
|
4
|
+
data.tar.gz: c523b8d9f619d9a07f81493af393d26e26851e30cdc8d833691a036573c11b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a7f346f5283e0fce8518ed8b259d6a5e6e007ad55eafa3d5c53149319b15111874a984ec6441407c6c3dd35d4cc399ef50e5b18efdea999808df9857b9b8fd2
|
7
|
+
data.tar.gz: c68b7ab59ad6a2e7c480f0d1d111e543cfb0351400d70e7f7b8060f950f9f72e5e448746655abbac1808f5edb70d52554c6227b7d09cddf5028ebf272a4bcf64
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
|
-
[full changelog](http://github.com/sue445/kagaribi/compare/v0.2.
|
2
|
+
[full changelog](http://github.com/sue445/kagaribi/compare/v0.2.1...main)
|
3
|
+
|
4
|
+
## [0.2.1](https://github.com/sue445/kagaribi/releases/tag/v0.2.1) - 2025-06-01
|
5
|
+
[full changelog](http://github.com/sue445/kagaribi/compare/v0.2.0...v0.2.1)
|
6
|
+
|
7
|
+
- Tweak `Kagaribi::Collection#exists?` return type
|
8
|
+
- https://github.com/sue445/kagaribi/pull/46
|
3
9
|
|
4
10
|
## [0.2.0](https://github.com/sue445/kagaribi/releases/tag/v0.2.0) - 2025-06-01
|
5
11
|
[full changelog](http://github.com/sue445/kagaribi/compare/v0.1.2...v0.2.0)
|
data/lib/kagaribi/collection.rb
CHANGED
@@ -85,9 +85,9 @@ module Kagaribi
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
# Whether document
|
88
|
+
# Whether document exists in collection
|
89
89
|
# @param doc_key [String]
|
90
|
-
# @return [Boolean]
|
90
|
+
# @return [Boolean,nil]
|
91
91
|
def exists?(doc_key)
|
92
92
|
with_retry("Kagaribi::Collection#exists?") do
|
93
93
|
ref = firestore.doc(full_doc_key(doc_key))
|
data/lib/kagaribi/version.rb
CHANGED
data/sig/kagaribi/collection.rbs
CHANGED
@@ -15,7 +15,7 @@ module Kagaribi
|
|
15
15
|
def set: (String doc_key, Hash[untyped, untyped] data) -> void
|
16
16
|
def update: (String doc_key, Hash[untyped, untyped] data) -> void
|
17
17
|
def get: (String doc_key) -> Hash[Symbol, untyped]
|
18
|
-
def exists?: (String doc_key) -> bool
|
18
|
+
def exists?: (String doc_key) -> bool?
|
19
19
|
def delete: (String doc_key) -> void
|
20
20
|
def self.sanitize_key: (String key) -> String
|
21
21
|
|
@@ -25,7 +25,7 @@ module Kagaribi
|
|
25
25
|
def sanitized_collection_name: -> String
|
26
26
|
def sanitize_key: (String key) -> String
|
27
27
|
def full_doc_key: (String doc_key) -> String
|
28
|
-
def with_retry: (String label) { ->
|
28
|
+
def with_retry: [T] (String label) { () -> T } -> T
|
29
29
|
def retryable_error?: (StandardError error) -> bool
|
30
30
|
end
|
31
31
|
end
|