notion_ruby_mapping 3.0.2 → 3.0.4
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 -0
- data/lib/notion_ruby_mapping/blocks/base.rb +7 -1
- data/lib/notion_ruby_mapping/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88fa00cfa16a2a50eafa6bd8a079d88c5c1ec10a02d867c650f17510579c61c2
|
|
4
|
+
data.tar.gz: d516979986586ec872d5e75bb024ff2338467f7cbbe9b4ce15415778584a1d03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50c6bfc1b3ba2882a8cf1e2bf67dd0a0484e021c6032ab25bd991df22d4c32a181ded3be2e7ae1373fcb9cde552ed0e7d50d73f35469adb173e43d036851b613
|
|
7
|
+
data.tar.gz: 1c557588b0cd02834e850d4f6f41911a38b6f13eb3cd3d2fc7a52da6d801f51764890fb541f9c2bde0fb7caeec74fdfeeb0c25a4be65d57e8ddddcb9c8166a6c
|
data/README.md
CHANGED
|
@@ -136,6 +136,8 @@ NotionRubyMapping.configuration { |c| c.notion_token = ENV["NOTION_API_TOKEN"] }
|
|
|
136
136
|
|
|
137
137
|
## 3. ChangeLog
|
|
138
138
|
|
|
139
|
+
- 2025/12/9 [v3.0.4] Fix the issue where page.parent could not be executed for pages with a data source as parent
|
|
140
|
+
- 2025/10/25 [v3.0.3] Add default template option for create_child_page and build_child_page
|
|
139
141
|
- 2025/10/22 [v3.0.2] Add template_page option for create_child_page and build_child_page
|
|
140
142
|
- 2025/10/4 [v3.0.1] Add place_property
|
|
141
143
|
- 2025/9/15 [v3.0.0] updates for Notion-Version 2025-09-03 (Add DataSource class)
|
|
@@ -18,7 +18,11 @@ module NotionRubyMapping
|
|
|
18
18
|
|
|
19
19
|
payload_json = {}
|
|
20
20
|
payload_json["parent"] = parent if !is_a?(Block) && parent
|
|
21
|
-
|
|
21
|
+
if template_page == "default"
|
|
22
|
+
payload_json["template"] = {"type" => "default"}
|
|
23
|
+
elsif template_page
|
|
24
|
+
payload_json["template"] = {"type" => "template_id", "template_id" => template_page.id}
|
|
25
|
+
end
|
|
22
26
|
@payload = Payload.new(payload_json)
|
|
23
27
|
@property_cache = nil
|
|
24
28
|
@created_time = nil
|
|
@@ -275,6 +279,8 @@ module NotionRubyMapping
|
|
|
275
279
|
|
|
276
280
|
type = parent_json["type"]
|
|
277
281
|
klass = case type
|
|
282
|
+
when "data_source_id"
|
|
283
|
+
DataSource
|
|
278
284
|
when "database_id"
|
|
279
285
|
Database
|
|
280
286
|
when "page_id"
|
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: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hiroyuki KOBAYASHI
|
|
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
288
288
|
- !ruby/object:Gem::Version
|
|
289
289
|
version: '0'
|
|
290
290
|
requirements: []
|
|
291
|
-
rubygems_version:
|
|
291
|
+
rubygems_version: 4.0.0
|
|
292
292
|
specification_version: 4
|
|
293
293
|
summary: Notion Ruby mapping tool
|
|
294
294
|
test_files: []
|