jekyll-notion 2.3.0 → 2.3.1

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: ddda8e393e7ade4bf8e4ae38fd751750596bd988846071eac9626be7ac5f7e6c
4
- data.tar.gz: a98cfe15172a91f360d846a6cb1f2f6761046f9abe883a2a3a2cba96f261c3ed
3
+ metadata.gz: f3aff6ed807b63d6bf877a8a81fcc955df0da1821be8f4ff8fd49e1a29f210bb
4
+ data.tar.gz: 7fa24cc4fcdea23b8111198ea11d3901903884639570e6b92cb20a96ea7bdc0c
5
5
  SHA512:
6
- metadata.gz: a184bcf01c6e03f71d237c9bb055330344ecfba45d288228bfb29f2960860fc22228aafecc9d3d234d2b9bbebacc54ab89fc7f9ba8c187978d65bf44044243c8
7
- data.tar.gz: d4df4563e41dca9765cf681c10d095792b33d95afdb95b5dbfc35f569c3ff78a15a22620db60cce3e0485e7f4d115952d57db921d960fed5365d2c74f289025f
6
+ metadata.gz: 0fc8085e674ad5df90028af1e73d550d5c814e215fc592db2cc8653bc1a57dbd3df9d29597ced5a068247f9da53516e942d227b96c70e385565abab3a84d78c3
7
+ data.tar.gz: cec2caa262ee9b029e9ad04ed4775f84fb0ba892d25ed99584fef8ffee002ee2293a367a77624d93655e8e3f42a78cfc5bd5f3017287e97b3dc37340d1494087
@@ -38,8 +38,8 @@ module JekyllNotion
38
38
  true
39
39
  end
40
40
 
41
- def build_blocks
42
- NotionToMd::Blocks.build(block_id: id) do |nested_id|
41
+ def build_blocks(block_id)
42
+ NotionToMd::Blocks.build(block_id: block_id) do |nested_id|
43
43
  @notion.block_children({ :block_id => nested_id })
44
44
  end
45
45
  end
@@ -7,7 +7,7 @@ module JekyllNotion
7
7
  return [] unless id?
8
8
 
9
9
  @fetch ||= @notion.database_query(query)[:results].map do |page|
10
- NotionToMd::Page.new(:page => page, :blocks => build_blocks)
10
+ NotionToMd::Page.new(:page => page, :blocks => build_blocks(page.id))
11
11
  end
12
12
  end
13
13
 
@@ -7,7 +7,7 @@ module JekyllNotion
7
7
  return nil unless id?
8
8
 
9
9
  @fetch ||= NotionToMd::Page.new(:page => @notion.page({ :page_id => id }),
10
- :blocks => build_blocks)
10
+ :blocks => build_blocks(id))
11
11
  end
12
12
 
13
13
  def data_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllNotion
4
- VERSION = "2.3.0"
4
+ VERSION = "2.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-notion
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Arias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-10 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll