notion_ruby_mapping 3.0.4 → 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: 88fa00cfa16a2a50eafa6bd8a079d88c5c1ec10a02d867c650f17510579c61c2
4
- data.tar.gz: d516979986586ec872d5e75bb024ff2338467f7cbbe9b4ce15415778584a1d03
3
+ metadata.gz: 129deebb939e145eb0c9adc431cbec81edb0d67cbefca8f38dfb7e2550a221b4
4
+ data.tar.gz: f82b0f5d77b8de97d0e31cd8f2cb583ba8ce80e58c68b9698359600e59b221e4
5
5
  SHA512:
6
- metadata.gz: 50c6bfc1b3ba2882a8cf1e2bf67dd0a0484e021c6032ab25bd991df22d4c32a181ded3be2e7ae1373fcb9cde552ed0e7d50d73f35469adb173e43d036851b613
7
- data.tar.gz: 1c557588b0cd02834e850d4f6f41911a38b6f13eb3cd3d2fc7a52da6d801f51764890fb541f9c2bde0fb7caeec74fdfeeb0c25a4be65d57e8ddddcb9c8166a6c
6
+ metadata.gz: 9bf2499aa0a6f91b97206325534eeb1bafa027727b1bc5a24798ad7c6fc7040aa3e24e84c02179f9916994c2bb59ba60600f3e7d7faaedeb5c61a721fd0e5d33
7
+ data.tar.gz: 624eb4a6364d528ceb413b7dda9dd946d41d72914372545f51c8785df4f654a9ee138615aac56d409b2f781ecc3d3933cbc14fa132943903a7a5841d5669a49a
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/12/15 [v3.0.5] add AudioBlock
139
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
140
141
  - 2025/10/25 [v3.0.3] Add default template option for create_child_page and build_child_page
141
142
  - 2025/10/22 [v3.0.2] Add template_page option for create_child_page and build_child_page
@@ -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
@@ -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.4"
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.4
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