notion_ruby_mapping 3.0.3 → 3.0.5

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: ece1ac33c211611615d1f0b92226bca51edd194388b27933e26df6571bad0a87
4
- data.tar.gz: 4b6d93d160ef3bd5d816cabe792915400707896ce756bc928c3bef155623f209
3
+ metadata.gz: 129deebb939e145eb0c9adc431cbec81edb0d67cbefca8f38dfb7e2550a221b4
4
+ data.tar.gz: f82b0f5d77b8de97d0e31cd8f2cb583ba8ce80e58c68b9698359600e59b221e4
5
5
  SHA512:
6
- metadata.gz: 233341059b2dda960cd8a9abb71b4e15e8ad792c93e6ba59a1078c25baa66265612d1200081b3d0214b37f6f2feaf3d6a4614de13eb480826ee10e218b018bf8
7
- data.tar.gz: 40984e23f340fa1fd87698c6b3382edd0d22a782844ba6808c3e776ca2fb06b462244377b0608b1f2280bb182924494a7ebefe8628997caba69ffdede60459e7
6
+ metadata.gz: 9bf2499aa0a6f91b97206325534eeb1bafa027727b1bc5a24798ad7c6fc7040aa3e24e84c02179f9916994c2bb59ba60600f3e7d7faaedeb5c61a721fd0e5d33
7
+ data.tar.gz: 624eb4a6364d528ceb413b7dda9dd946d41d72914372545f51c8785df4f654a9ee138615aac56d409b2f781ecc3d3933cbc14fa132943903a7a5841d5669a49a
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/15 [v3.0.5] add AudioBlock
140
+ - 2025/12/9 [v3.0.4] Fix the issue where page.parent could not be executed for pages with a data source as parent
139
141
  - 2025/10/25 [v3.0.3] Add default template option for create_child_page and build_child_page
140
142
  - 2025/10/22 [v3.0.2] Add template_page option for create_child_page and build_child_page
141
143
  - 2025/10/4 [v3.0.1] Add place_property
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NotionRubyMapping
4
+ # Notion block
5
+ class AudioBlock < FileBaseBlock
6
+ # @return [String]
7
+ def type
8
+ "audio"
9
+ end
10
+ end
11
+ end
@@ -279,6 +279,8 @@ module NotionRubyMapping
279
279
 
280
280
  type = parent_json["type"]
281
281
  klass = case type
282
+ when "data_source_id"
283
+ DataSource
282
284
  when "database_id"
283
285
  Database
284
286
  when "page_id"
@@ -17,6 +17,7 @@ module NotionRubyMapping
17
17
  def self.type2class(type, has_children = false)
18
18
  @type2class ||= {
19
19
  false => {
20
+ audio: AudioBlock,
20
21
  bookmark: BookmarkBlock,
21
22
  breadcrumb: BreadcrumbBlock,
22
23
  bulleted_list_item: BulletedListItemBlock,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionRubyMapping
4
- VERSION = "3.0.3"
4
+ VERSION = "3.0.5"
5
5
  NOTION_VERSION = "2025-09-03"
6
6
  end
@@ -11,7 +11,7 @@ require_relative "notion_ruby_mapping/version"
11
11
  image_block toggle_heading1_block toggle_heading2_block toggle_heading3_block url_base_block
12
12
  link_preview_block link_to_page_block numbered_list_item_block paragraph_block pdf_block quote_block
13
13
  synced_block table_block table_row_block table_of_contents_block to_do_block
14
- toggle_block video_block],
14
+ toggle_block video_block audio_block],
15
15
  controllers: %w[notion_cache payload property_cache query rich_text_array discussion_thread search mermaid
16
16
  mermaid_data_source],
17
17
  objects: %w[rich_text_object emoji_object equation_object file_object mention_object text_object user_object
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.3
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki KOBAYASHI
@@ -177,6 +177,7 @@ files:
177
177
  - images/pre_set_icon.png
178
178
  - images/serial_number.png
179
179
  - lib/notion_ruby_mapping.rb
180
+ - lib/notion_ruby_mapping/blocks/audio_block.rb
180
181
  - lib/notion_ruby_mapping/blocks/base.rb
181
182
  - lib/notion_ruby_mapping/blocks/block.rb
182
183
  - lib/notion_ruby_mapping/blocks/bookmark_block.rb
@@ -288,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
289
  - !ruby/object:Gem::Version
289
290
  version: '0'
290
291
  requirements: []
291
- rubygems_version: 3.6.9
292
+ rubygems_version: 4.0.0
292
293
  specification_version: 4
293
294
  summary: Notion Ruby mapping tool
294
295
  test_files: []