notion_ruby_mapping 0.6.5 → 0.6.6
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/README.md +2 -1
- data/exe/notionSitemap.rb +2 -1
- data/lib/notion_ruby_mapping/version.rb +1 -1
- 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: c1a2aa2a4c8880559f3a314967335cfd4f008b9884890111b6d5edfcb0f6251c
|
4
|
+
data.tar.gz: 52ece830f67e3373f653f60dcee81b1076c5ab095eb9d53bb4d0e3340c76bc7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b70e9092468ef61744ec120e499402daf214e35d5c86158d4b44fc3fb9d7262e6d5b82e6763b20554f843996a9d614bd181b09baad66f2533fa1a076b15555b
|
7
|
+
data.tar.gz: e618b6066d6d17e4564cdfbadda3b3f0d7b598740f5b3ed1c2a9c2b640d28284cfa8ecfc1676fb0de6be0d604cd24670856ce112e049fbe5a91ac44b4404b05b
|
data/README.md
CHANGED
@@ -92,7 +92,8 @@ NotionCache.instance.create_client ENV["NOTION_API_TOKEN"] # from environment
|
|
92
92
|
|
93
93
|
## 3. ChangeLog
|
94
94
|
|
95
|
-
- 2022/8/10 [v0.6.
|
95
|
+
- 2022/8/10 [v0.6.6] Bug fix(notionSitemap.rb): Skip if child page is empty.
|
96
|
+
- 2022/8/10 [v0.6.5] add notionSitemap.rb, rename createErDiagram to notionErDiagram, and move them to exe directory
|
96
97
|
- 2022/8/9 [v0.6.4] url can be entered instead of page_id, block_id and database_id
|
97
98
|
- 2022/8/9 [v0.6.3] update createErDiagram.rb (Fixed a bug with non-ASCII database titles)
|
98
99
|
- 2022/8/7 [v0.6.2] add comment_object support
|
data/exe/notionSitemap.rb
CHANGED
@@ -48,7 +48,8 @@ class Sitemap
|
|
48
48
|
def search_block(page, block)
|
49
49
|
case block
|
50
50
|
when ChildPageBlock
|
51
|
-
|
51
|
+
child_block = block.children.first
|
52
|
+
add_child child_block.parent if child_block
|
52
53
|
when LinkToPageBlock
|
53
54
|
add_link page, block.page_id unless @nolink
|
54
55
|
else
|