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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2afa81a1825a9ebf8efaa1759908803baa3e556fabeccd464d75be001016fd05
4
- data.tar.gz: 7d72ae2095612e43e54147d8c23d6d8eb7f4d7c3c4dec0e5ce3e91d311c31347
3
+ metadata.gz: fe4b566f6c03367e56e1ec29712a426c00f148fffbfe581834453987dd776b2a
4
+ data.tar.gz: 79041b5e3825242bfc320ef1d1b1af2e69c1ef31b438ca2c6d867d02ea6265a2
5
5
  SHA512:
6
- metadata.gz: 246785dfc4372f8ac87f1e51c955402f297293ff2092ce19d4fed7a8ba57664d10ad8b87f62d5252ce05842d7a660633aff9593b7b0335271503a2ccc04c748e
7
- data.tar.gz: 52765f8dbcaa3e81064aa29111f2d13957f1eee7ba638f301e44776e21088b4311ed45a2db5e97b6f3c1e7684384b963e45f6d7a2de15575ca0f4639ea5eaa2f
6
+ metadata.gz: cd6296ed1211621923c954c5976065dfca3865d98ccea4f8d6f88654006de1732730b9b01782527d43ce2c602a29d3dcce375f4179e4c2c12d88678601d3e54f
7
+ data.tar.gz: 335658c17ee969c76b8505f1d0b8f56efebd0b0cd38ef495f494bcd602e741390014b97883562c337978c8309f0145eb540801a76ca7ef3effd18ac771a83707
@@ -10,7 +10,8 @@ module NotionToMd
10
10
  end
11
11
 
12
12
  def title
13
- page.dig(:properties, :Name, :title).inject('') do |acc, slug|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NotionToMd
4
- VERSION = '2.2.2'
4
+ VERSION = '2.2.3'
5
5
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport