notion_to_md 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notion_to_md/page.rb +2 -1
- data/lib/notion_to_md/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: fe4b566f6c03367e56e1ec29712a426c00f148fffbfe581834453987dd776b2a
|
4
|
+
data.tar.gz: 79041b5e3825242bfc320ef1d1b1af2e69c1ef31b438ca2c6d867d02ea6265a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd6296ed1211621923c954c5976065dfca3865d98ccea4f8d6f88654006de1732730b9b01782527d43ce2c602a29d3dcce375f4179e4c2c12d88678601d3e54f
|
7
|
+
data.tar.gz: 335658c17ee969c76b8505f1d0b8f56efebd0b0cd38ef495f494bcd602e741390014b97883562c337978c8309f0145eb540801a76ca7ef3effd18ac771a83707
|
data/lib/notion_to_md/page.rb
CHANGED
@@ -10,7 +10,8 @@ module NotionToMd
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def title
|
13
|
-
page.dig(:properties, :Name, :title).
|
13
|
+
title_list = page.dig(:properties, :Name, :title) || page.dig(:properties, :title, :title)
|
14
|
+
title_list.inject('') do |acc, slug|
|
14
15
|
acc + slug[:plain_text]
|
15
16
|
end
|
16
17
|
end
|
data/lib/notion_to_md/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notion_to_md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrique Arias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|