bridgetown-feed 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +3 -6
  4. data/CHANGELOG.md +21 -0
  5. data/Gemfile +1 -6
  6. data/README.md +32 -15
  7. data/bridgetown-feed.gemspec +4 -4
  8. data/lib/bridgetown-feed.rb +1 -7
  9. data/lib/bridgetown-feed/builder.rb +49 -0
  10. data/lib/bridgetown-feed/feed.xml +16 -11
  11. data/lib/bridgetown-feed/generator.rb +9 -8
  12. data/lib/bridgetown-feed/version.rb +1 -1
  13. metadata +12 -56
  14. data/History.markdown +0 -5
  15. data/lib/bridgetown-feed/meta-tag.rb +0 -37
  16. data/lib/bridgetown-feed/page-without-a-file.rb +0 -9
  17. data/script/bootstrap +0 -3
  18. data/script/cibuild +0 -7
  19. data/script/fmt +0 -10
  20. data/script/release +0 -7
  21. data/script/test +0 -4
  22. data/spec/bridgetown-feed_spec.rb +0 -525
  23. data/spec/fixtures/bridgetown.config.yml +0 -9
  24. data/spec/fixtures/src/_collection/2018-01-01-collection-doc.md +0 -4
  25. data/spec/fixtures/src/_collection/2018-01-02-collection-category-doc.md +0 -5
  26. data/spec/fixtures/src/_data/authors.yml +0 -5
  27. data/spec/fixtures/src/_layouts/some_default.html +0 -11
  28. data/spec/fixtures/src/_posts/2013-12-12-dec-the-second.md +0 -7
  29. data/spec/fixtures/src/_posts/2014-03-02-march-the-second.md +0 -6
  30. data/spec/fixtures/src/_posts/2014-03-04-march-the-fourth.md +0 -9
  31. data/spec/fixtures/src/_posts/2015-01-12-a-draft.md +0 -5
  32. data/spec/fixtures/src/_posts/2015-01-18-jekyll-last-modified-at.md +0 -5
  33. data/spec/fixtures/src/_posts/2015-02-12-strip-newlines.md +0 -6
  34. data/spec/fixtures/src/_posts/2015-05-12-liquid.md +0 -7
  35. data/spec/fixtures/src/_posts/2015-05-12-pre.html +0 -8
  36. data/spec/fixtures/src/_posts/2015-05-18-author-detail.md +0 -9
  37. data/spec/fixtures/src/_posts/2015-08-08-stuck-in-the-middle.html +0 -6
  38. data/spec/fixtures/src/_posts/2016-04-25-author-reference.md +0 -6
  39. data/spec/fixtures/src/feed.xslt.xml +0 -0
  40. data/spec/spec_helper.rb +0 -35
@@ -1,9 +0,0 @@
1
- timezone: UTC
2
-
3
- defaults:
4
- -
5
- scope:
6
- path: ""
7
- type: pages
8
- values:
9
- layout: some_default
@@ -1,4 +0,0 @@
1
- ---
2
- ---
3
-
4
- Look at me! I'm a collection!
@@ -1,5 +0,0 @@
1
- ---
2
- category: news
3
- ---
4
-
5
- Look at me! I'm a collection doc in a category!
@@ -1,5 +0,0 @@
1
- garthdb:
2
- name: Garth
3
- twitter: garthdb
4
- uri: "http://garthdb.com"
5
- email: example@mail.com
@@ -1,11 +0,0 @@
1
- ---
2
- ---
3
- <html>
4
- <head>
5
- {% feed_meta %}
6
- </head>
7
- <body>
8
- THIS IS MY LAYOUT
9
- {{ content }}
10
- </body>
11
- </html>
@@ -1,7 +0,0 @@
1
- ---
2
- excerpt: "Foo"
3
- image: "/image.png"
4
- category: news
5
- ---
6
-
7
- # December the twelfth, actually.
@@ -1,6 +0,0 @@
1
- ---
2
- image: https://cdn.example.org/absolute.png?h=188&w=250
3
- category: news
4
- ---
5
-
6
- March the second!
@@ -1,9 +0,0 @@
1
- ---
2
- tags:
3
- - '"/><VADER>'
4
- image:
5
- path: "/object-image.png"
6
- categories: updates bridgetown
7
- ---
8
-
9
- March the fourth!
@@ -1,5 +0,0 @@
1
- ---
2
- published: false
3
- ---
4
-
5
- This is a draft.
@@ -1,5 +0,0 @@
1
- ---
2
- last_modified_at: 2015-05-12T13:27:59+00:00
3
- ---
4
-
5
- Please don't modify this file. It's modified time is important.
@@ -1,6 +0,0 @@
1
- ---
2
- title:
3
- The plugin
4
- will properly
5
- strip newlines.
6
- ---
@@ -1,7 +0,0 @@
1
- ---
2
- ---
3
-
4
- {% capture liquidstring %}
5
- Liquid is not rendered.
6
- {% endcapture %}
7
- {{ liquidstring | replace:'not ','' }}
@@ -1,8 +0,0 @@
1
- ---
2
- author: Pat
3
- lang: en
4
- ---
5
-
6
- <pre>Line 1
7
- Line 2
8
- Line 3</pre>
@@ -1,9 +0,0 @@
1
- ---
2
- excerpt: ""
3
- author:
4
- name: Ben
5
- uri: "http://ben.balter.com"
6
- email: ben@example.com
7
- ---
8
-
9
- # December the twelfth, actually.
@@ -1,6 +0,0 @@
1
- ---
2
- feed:
3
- excerpt_only: true
4
- ---
5
-
6
- This content should not be in feed.
@@ -1,6 +0,0 @@
1
- ---
2
- excerpt: ""
3
- author: garthdb
4
- ---
5
-
6
- # April the twenty-fifth?
File without changes
data/spec/spec_helper.rb DELETED
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bridgetown"
4
- require "typhoeus" unless Gem.win_platform?
5
- require "nokogiri"
6
- require "rss"
7
- require File.expand_path("../lib/bridgetown-feed", __dir__)
8
-
9
- Bridgetown.logger.log_level = :error
10
-
11
- RSpec.configure do |config|
12
- config.run_all_when_everything_filtered = true
13
- config.filter_run :focus
14
- config.order = "random"
15
-
16
- ROOT_DIR = File.expand_path("fixtures", __dir__)
17
- SOURCE_DIR = File.join(ROOT_DIR, "src")
18
- DEST_DIR = File.expand_path("dest", __dir__)
19
-
20
- def root_dir(*files)
21
- File.join(ROOT_DIR, *files)
22
- end
23
-
24
- def source_dir(*files)
25
- File.join(SOURCE_DIR, *files)
26
- end
27
-
28
- def dest_dir(*files)
29
- File.join(DEST_DIR, *files)
30
- end
31
-
32
- def make_context(registers = {})
33
- Liquid::Context.new({}, {}, { :site => site }.merge(registers))
34
- end
35
- end