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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c118a3defeaf46cead6a66583f8ce80b93e84af69ca7de7988cfc23eef93359
4
- data.tar.gz: 2383c3a82a27a44434e5ddbcc199f094b5827916f24180605bafe62030b296a6
3
+ metadata.gz: 92c77b5683ce1658304c3df23eac700d3334a1a27672dd9ed583bc30d8a6b469
4
+ data.tar.gz: c523b8d9f619d9a07f81493af393d26e26851e30cdc8d833691a036573c11b21
5
5
  SHA512:
6
- metadata.gz: 404642bdd2074683ce7a68103dc0f71c66e14393f67bb4ed6238e4f785bffefa8d369503aed606afc8d3a412eb5fa8356a221e0d3c729b0c88ff274f1c5177c8
7
- data.tar.gz: 76d2755dc10e89e631147885b6dcbbe9fa22d045b90a3ff5dfe80a67192421b7bd54b0f70e09fa39fe2073c995a48b7bdf6a7e3e514596211b6d4d6d23386841
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.0...main)
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)
@@ -85,9 +85,9 @@ module Kagaribi
85
85
  end
86
86
  end
87
87
 
88
- # Whether document is exists in collection
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))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kagaribi
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
@@ -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) { -> untyped } -> untyped
28
+ def with_retry: [T] (String label) { () -> T } -> T
29
29
  def retryable_error?: (StandardError error) -> bool
30
30
  end
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kagaribi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445