jekyll-notion 0.0.0.alpha → 0.0.0.alpha.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: 28969fe017d3182ae86953154bef64b2faf3fea5477eea3b315af7b0c6e99def
4
- data.tar.gz: 4fe4fdeb77eaaafcadd5adce283e2a77e17ea9bfa57c32464e0c45d467038827
3
+ metadata.gz: 15127980ee7214935a0f10923f0fbd9461ece646ddeae13fb59c257ab74fc66c
4
+ data.tar.gz: f2bc8d7396de8b6d4513082fc8aebd7e00841f53fb59b166eb7cfa4a65251010
5
5
  SHA512:
6
- metadata.gz: 30a409cbf940624c5d60556f50c70f19edcdd6d936b969faf375f410cf5ecfaea940eb0441de1ff527717bfdef5f0580a35d7619e41f3e6ff2d75f0851776a55
7
- data.tar.gz: dd5ae8d678bc6f6ebeef2703e2722161a36cecef145a275146818bea6fb0abccdb3cb9427bf1020cdd33271912e1c10c75c395eea86d51d371b6fc2fd548fe49
6
+ metadata.gz: 72fd2efdcd8a815f9047943474e660f50557bdb29267c1691ce00c41223107e7311f5ca0572316db00cdb655998540a0c87715b1b9a34c81a180b80a5912aea9
7
+ data.tar.gz: 51620c78be34bc1d94d1167b31a756cecc6d187b4669266b26e7d0b9864dce4765fbf7e534fcd1ac9ed2c45464a9b0558f4b2d36c5d5ca97c9ed349c4947f312
@@ -1,10 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'active_support/inflector'
4
- require 'notion'
5
- require 'notion_to_md'
6
- require_relative './notion_database'
7
-
8
3
  module JekyllNotion
9
4
  class Generator < Jekyll::Generator
10
5
  attr_reader :current_page
@@ -1,4 +1,4 @@
1
- require_relative './notion_page'
1
+ # frozen_string_literal: true
2
2
 
3
3
  module JekyllNotion
4
4
  class NotionDatabase
@@ -35,4 +35,4 @@ module JekyllNotion
35
35
  { id: id, filter: filter, sort: sort }
36
36
  end
37
37
  end
38
- end
38
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module JekyllNotion
2
4
  class NotionPage
3
5
  attr_reader :page, :layout
@@ -45,4 +47,4 @@ module JekyllNotion
45
47
  page[:url]
46
48
  end
47
49
  end
48
- end
50
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module JekyllNotion
2
- VERSION = '0.0.0.alpha'
3
- end
4
+ VERSION = '0.0.0.alpha.1'
5
+ end
data/lib/jekyll-notion.rb CHANGED
@@ -1,10 +1,20 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'jekyll'
2
4
  require 'notion'
3
- require 'notion_to_md/logger'
5
+ require 'notion_to_md'
4
6
  require 'logger'
7
+ require 'active_support/inflector'
8
+ require 'jekyll/generator'
5
9
 
6
10
  NotionToMd::Logger.level = Logger::ERROR
7
11
 
8
12
  Notion.configure do |config|
9
13
  config.token = ENV['NOTION_TOKEN']
10
- end
14
+ end
15
+
16
+ module JekyllNotion
17
+ autoload :DocumentWithoutAFile, 'jekyll-notion/document_without_a_file'
18
+ autoload :NotionDatabase, 'jekyll-notion/notion_database'
19
+ autoload :NotionPage, 'jekyll-notion/notion_page'
20
+ 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: 0.0.0.alpha
4
+ version: 0.0.0.alpha.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-01-13 00:00:00.000000000 Z
11
+ date: 2022-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport