notion_ruby_mapping 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: 99e5a81d9b01957db14572ca167eff728ed70eb4aa24d8e34182340549f94b21
4
- data.tar.gz: 4c649d84bd51226d5af41d82bd35a3f1eaac59a13ab1dba2c66007adf6793645
3
+ metadata.gz: c5b7a318012d2d18a8c1f1d522c3704b1fd3ddc0061bd2e85757a4cca40ca18b
4
+ data.tar.gz: 56d75c3db55a73139925aaba7239a5a1ac1c782144146e78daa8d52343398be8
5
5
  SHA512:
6
- metadata.gz: d2d8cc889e8bb4d859617abb4ffb53d514958507c001e6106664cc959bfa86cefd8a654fe68d8d49f9704d33d1ce5dc9b36fd90f38deae3331ef78b15cdbfe7b
7
- data.tar.gz: a5a0ff8fd1b9b1cef1e6719d25a915c8f1e0d9c3dea2b5b7c50e4634bcbb12d39379927cc7de5f23d53db6cd34613f18bc5393d3a19e49df272a3201550a7a2c
6
+ metadata.gz: ea1203ec3ae1e7d555ce4e0b0d52f745d0cf605e8393ad270c137fbf0f04ee03ff5ad3eff75082e093e3a019fdb02464e2dd0485e41dc038aa1b6ce23485ba30
7
+ data.tar.gz: 34ce113ef60881ea04ac4636e500e1c542bd1fbdcdde6ceb55fc1080e677ae90cb44ce6bf7bf79a26c50f98c73b086356f607db81d0acc920e91c57057336f76
@@ -18,6 +18,14 @@ module NotionRubyMapping
18
18
  def each
19
19
  return enum_for(:each) unless block_given?
20
20
 
21
+ unless @has_content # re-exec
22
+ @query.start_cursor = nil
23
+ @json = @database.query_database @query
24
+ @index = 0
25
+ @has_more = @json["has_more"]
26
+ @has_content = true
27
+ end
28
+
21
29
  while @has_content
22
30
  if @index < results.length
23
31
  object = Base.create_from_json(results[@index])
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionRubyMapping
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  NOTION_VERSION = "2022-02-22"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion_ruby_mapping
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
  - Hiroyuki KOBAYASHI