notion_ruby_mapping 3.0.2 → 3.0.3

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: 0bd25791d37f43bba61d634c605af7bb8e5afd178d3166135d40231f96820912
4
- data.tar.gz: 7aae9ec026d6acce1ad3ea4b542a5cd7db67caa2158c74835526f5699bc0cd90
3
+ metadata.gz: ece1ac33c211611615d1f0b92226bca51edd194388b27933e26df6571bad0a87
4
+ data.tar.gz: 4b6d93d160ef3bd5d816cabe792915400707896ce756bc928c3bef155623f209
5
5
  SHA512:
6
- metadata.gz: 5b3db4c23fb05797ecbfea12b6bad3fdc7b5701c3abeaff964dd4fb86e1b91742d1986ba387e56c6ef2978d40a1a6f4df6017a059bdf993a424a246336d11e17
7
- data.tar.gz: c76f986868915a57e973d109738e1ae7abbfcb8f861f956f68c9ea2914d3f88a95f3dd64809d4c24e504c77de8b8c55af3554ea4bd5643a5b3b104df8c0ac161
6
+ metadata.gz: 233341059b2dda960cd8a9abb71b4e15e8ad792c93e6ba59a1078c25baa66265612d1200081b3d0214b37f6f2feaf3d6a4614de13eb480826ee10e218b018bf8
7
+ data.tar.gz: 40984e23f340fa1fd87698c6b3382edd0d22a782844ba6808c3e776ca2fb06b462244377b0608b1f2280bb182924494a7ebefe8628997caba69ffdede60459e7
data/README.md CHANGED
@@ -136,6 +136,7 @@ NotionRubyMapping.configuration { |c| c.notion_token = ENV["NOTION_API_TOKEN"] }
136
136
 
137
137
  ## 3. ChangeLog
138
138
 
139
+ - 2025/10/25 [v3.0.3] Add default template option for create_child_page and build_child_page
139
140
  - 2025/10/22 [v3.0.2] Add template_page option for create_child_page and build_child_page
140
141
  - 2025/10/4 [v3.0.1] Add place_property
141
142
  - 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
- payload_json["template"] = {"type" => "template_id", "template_id" => template_page.id} if template_page
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionRubyMapping
4
- VERSION = "3.0.2"
4
+ VERSION = "3.0.3"
5
5
  NOTION_VERSION = "2025-09-03"
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: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki KOBAYASHI