notion_ruby_mapping 0.8.6 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af59bd2479de7561fd1efaa32d674e7b1efdd61a05bb78cc3b0bbb274f993271
4
- data.tar.gz: faabdae795d4aab9649b183696f52b2ce33d0c73607756af4d0662f2b1eef6f1
3
+ metadata.gz: 7f4deda844566952230a1678eb452af33668d6f9a86645529dc6b3905d67c290
4
+ data.tar.gz: 3f13b7bf7548ac32997a06f540e399cda77cbb241a9ab784b4650eedbb0135c6
5
5
  SHA512:
6
- metadata.gz: 3ad87f94c559cb77e4c444cf47289cc877700c1c7ef52046312b9fd242cb6c1513e067a324b50bed98c02e0c1943f0169b8e278dba123a37d4971113f21f52dc
7
- data.tar.gz: 78bd0ff5b913e31b83c2bc59c086ca88130e6a5182c70b21e35477a863feb7a5f44c9931322151d1e0cd1ee61ae356f85c0b9bb7bd83fec185c022322e22e488
6
+ metadata.gz: 99b1e13a8a51227e00b54159e54b6461ff50d4bd78faa89afb03aad0c64845278d942b8d4006d2d9c4dfa0cd06eb7d5f8204f1a846e9baa382f2d6a9a7727dd8
7
+ data.tar.gz: '08128e2a0fbaf6c68eaa2c89be63ba2217dbd6b6b9ce90170b0a8e5dee347e9963babcfdfe4086b415c8a50913ea7df1fe3df000291cf85e76e227f3fbeab27c'
data/README.md CHANGED
@@ -119,7 +119,7 @@ NotionRubyMapping.configuration { |c| c.notion_token = ENV["NOTION_API_TOKEN"] }
119
119
  4. [Create ER Diagram from Notion database / Notion データベースの ER 図を作成](https://hkob.notion.site/notionErDiagram-Sample-1720c2199c534ca08138cde38f31f710)
120
120
  5. [Create Sitemap from Notion pages / Notion page からサイトマップを作成](https://hkob.notion.site/notionSitemap-sample-14e195c83d024c5382aab09210916c87)
121
121
  6. [Create Notion databases from ER Diagram / ER 図から Notion データベースを作成](https://hkob.notion.site/erdToNotionDb-sample-87e5e52a6b9f46abbdeebcb3c902a516)
122
- 6. [NotionTimeRecorder & GTD template](https://hkob.notion.site/NotionTimeRecorder-GTD-template-8c4b5813dbbe4774a517314c9b20bafa)
122
+ 7. [NotionTimeRecorder & GTD template](https://hkob.notion.site/NotionTimeRecorder-GTD-template-8c4b5813dbbe4774a517314c9b20bafa)
123
123
 
124
124
  ### 2.5 API reference / API リファレンス
125
125
 
@@ -127,6 +127,12 @@ NotionRubyMapping.configuration { |c| c.notion_token = ENV["NOTION_API_TOKEN"] }
127
127
 
128
128
  ## 3. ChangeLog
129
129
 
130
+ - 2024/9/15 [v0.8.8] Add link_mention support
131
+ - 2024/5/29 [v0.8.7] Change file attribute for button_property
132
+ - 2024/5/29 [v0.8.6] Change Query.page_size to writable
133
+ - 2024/4/26 [v0.8.5] change permission of button_property.rb
134
+ - 2024/4/1 [v0.8.4] fix payload for update database
135
+ - 2024/2/5 [v0.8.3] Add Button Property
130
136
  - 2023/7/13 [v0.8.2] add 'after' option to append_block_chidren, 'append_after' method to block, and 'public_url' method to page
131
137
  - 2023/7/10 [v0.8.1] Automatically change type to external when file object is updated
132
138
  - 2023/6/4 [v0.8.0] add unique_id properties, filter_properties
@@ -82,6 +82,11 @@ module NotionRubyMapping
82
82
  "url" => @options["link_preview"],
83
83
  },
84
84
  }
85
+ elsif @options.key? "href"
86
+ {
87
+ "type" => "link_mention",
88
+ "link_mention" => @options.slice("href", "icon_url", "link_provider", "thumbnail_url", "title"),
89
+ }
85
90
  else
86
91
  raise StandardError, "Irregular mention type: #{@options.keys}"
87
92
  end
@@ -45,6 +45,9 @@ module NotionRubyMapping
45
45
  end
46
46
  when "link_preview"
47
47
  MentionObject.new options.merge({"link_preview" => mention["link_preview"]["url"]})
48
+ when "link_mention"
49
+ lm_keys = %w[href icon_url link_provider thumbnail_url title]
50
+ MentionObject.new options.merge(mention["link_mention"].slice(*lm_keys))
48
51
  else
49
52
  raise StandardError, "Unknown mention type: #{mention["type"]}"
50
53
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionRubyMapping
4
- VERSION = "0.8.6"
4
+ VERSION = "0.8.8"
5
5
  NOTION_VERSION = "2022-06-28"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notion_ruby_mapping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki KOBAYASHI
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-29 00:00:00.000000000 Z
11
+ date: 2024-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday