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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +3 -6
- data/CHANGELOG.md +21 -0
- data/Gemfile +1 -6
- data/README.md +32 -15
- data/bridgetown-feed.gemspec +4 -4
- data/lib/bridgetown-feed.rb +1 -7
- data/lib/bridgetown-feed/builder.rb +49 -0
- data/lib/bridgetown-feed/feed.xml +16 -11
- data/lib/bridgetown-feed/generator.rb +9 -8
- data/lib/bridgetown-feed/version.rb +1 -1
- metadata +12 -56
- data/History.markdown +0 -5
- data/lib/bridgetown-feed/meta-tag.rb +0 -37
- data/lib/bridgetown-feed/page-without-a-file.rb +0 -9
- data/script/bootstrap +0 -3
- data/script/cibuild +0 -7
- data/script/fmt +0 -10
- data/script/release +0 -7
- data/script/test +0 -4
- data/spec/bridgetown-feed_spec.rb +0 -525
- data/spec/fixtures/bridgetown.config.yml +0 -9
- data/spec/fixtures/src/_collection/2018-01-01-collection-doc.md +0 -4
- data/spec/fixtures/src/_collection/2018-01-02-collection-category-doc.md +0 -5
- data/spec/fixtures/src/_data/authors.yml +0 -5
- data/spec/fixtures/src/_layouts/some_default.html +0 -11
- data/spec/fixtures/src/_posts/2013-12-12-dec-the-second.md +0 -7
- data/spec/fixtures/src/_posts/2014-03-02-march-the-second.md +0 -6
- data/spec/fixtures/src/_posts/2014-03-04-march-the-fourth.md +0 -9
- data/spec/fixtures/src/_posts/2015-01-12-a-draft.md +0 -5
- data/spec/fixtures/src/_posts/2015-01-18-jekyll-last-modified-at.md +0 -5
- data/spec/fixtures/src/_posts/2015-02-12-strip-newlines.md +0 -6
- data/spec/fixtures/src/_posts/2015-05-12-liquid.md +0 -7
- data/spec/fixtures/src/_posts/2015-05-12-pre.html +0 -8
- data/spec/fixtures/src/_posts/2015-05-18-author-detail.md +0 -9
- data/spec/fixtures/src/_posts/2015-08-08-stuck-in-the-middle.html +0 -6
- data/spec/fixtures/src/_posts/2016-04-25-author-reference.md +0 -6
- data/spec/fixtures/src/feed.xslt.xml +0 -0
- data/spec/spec_helper.rb +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a054cdb820ee742185d8cdebee2be24f370d700bcae60a1f7ebcc6876d4fb17
|
4
|
+
data.tar.gz: 6751bba99b04610e7bf54d82cd9945da7edce9c7a981a80947433cdda6216744
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545c964c4927c414c9fe11e9f38e1e5f86930c5dc93a0cc2ea09f78dc008aa8eedb0df6d0c37014132988506984c74b7fc7193226a5a0265a548f6799752066d
|
7
|
+
data.tar.gz: b41d66e8c0dcbd6e9adc14ad4a4db0785ab21980a61f8ac42c595c3faf81142361dd41dd7291e73524286b864c391759e62354791fdbfc1370dbc551bae68768
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require: rubocop-
|
1
|
+
require: rubocop-bridgetown
|
2
2
|
|
3
3
|
inherit_gem:
|
4
|
-
rubocop-
|
4
|
+
rubocop-bridgetown: .rubocop.yml
|
5
5
|
|
6
6
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.
|
7
|
+
TargetRubyVersion: 2.5
|
8
8
|
Include:
|
9
9
|
- lib/**/*.rb
|
10
10
|
|
@@ -22,6 +22,3 @@ AllCops:
|
|
22
22
|
- script/**/*
|
23
23
|
- vendor/**/*
|
24
24
|
|
25
|
-
Naming/MemoizedInstanceVariableName:
|
26
|
-
Exclude:
|
27
|
-
- lib/bridgetown-feed/page-without-a-file.rb
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# master
|
2
|
+
|
3
|
+
## 2.0.0 / 2021-04-17
|
4
|
+
|
5
|
+
* New release with helper to support Ruby templates like ERB
|
6
|
+
|
7
|
+
## 1.1.3 / 2020-11-05
|
8
|
+
|
9
|
+
* Add `template_engine: liquid` to the feed XML so it plays well with Bridgetown 0.18+
|
10
|
+
|
11
|
+
## 1.1.2 / 2020-05-01
|
12
|
+
|
13
|
+
Update to require a minimum Ruby version of 2.5.
|
14
|
+
|
15
|
+
## 1.1.1 / 2020-04-19
|
16
|
+
|
17
|
+
Update to use `_data/site_metadata.yml` in line with the rest of the ecosystem.
|
18
|
+
|
19
|
+
## 1.0.0 / 2020-04-09
|
20
|
+
|
21
|
+
Use Bridgetown gem and rename to bridgetown-feed.
|
data/Gemfile
CHANGED
@@ -3,9 +3,4 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem "
|
7
|
-
|
8
|
-
install_if -> { Gem.win_platform? } do
|
9
|
-
gem "tzinfo", "~> 1.2"
|
10
|
-
gem "tzinfo-data"
|
11
|
-
end
|
6
|
+
gem "bridgetown", ENV["BRIDGETOWN_VERSION"] if ENV["BRIDGETOWN_VERSION"]
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bridgetown Feed plugin
|
2
2
|
|
3
|
-
A Bridgetown plugin to generate an Atom (RSS-like) feed of your Bridgetown posts
|
3
|
+
A Bridgetown plugin to generate an Atom (RSS-like) feed of your Bridgetown posts and other collection documents.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,19 +16,40 @@ Or simply add this line to your Gemfile:
|
|
16
16
|
gem 'bridgetown-feed', group: "bridgetown_plugins"
|
17
17
|
```
|
18
18
|
|
19
|
+
The plugin exposes a helper tag to expose the appropriate meta tags to support automated discovery of your feed.
|
20
|
+
|
21
|
+
Simply place `feed_meta` someplace in your layout's `<head>` section to output the necessary metadata.
|
22
|
+
|
23
|
+
```liquid
|
24
|
+
<!-- layout.liquid -->
|
25
|
+
{% feed_meta %}
|
26
|
+
```
|
27
|
+
|
28
|
+
```erb
|
29
|
+
<!-- layout.erb -->
|
30
|
+
<%= feed_meta %>
|
31
|
+
```
|
32
|
+
|
33
|
+
### Atom is nice and all, but what about JSON Feed?
|
34
|
+
|
35
|
+
[It's on our roadmap.](https://github.com/bridgetownrb/bridgetown-feed/issues/1) 🙂
|
36
|
+
|
19
37
|
## Usage
|
20
38
|
|
21
39
|
The plugin will automatically generate an Atom feed at `/feed.xml`.
|
22
40
|
|
23
41
|
### Optional configuration options
|
24
42
|
|
25
|
-
The plugin will automatically use any of the following
|
43
|
+
The plugin will automatically use any of the following metadata variables if they are present in your site's `_data/site_metadata.yml` file.
|
26
44
|
|
27
45
|
* `title` or `name` - The title of the site, e.g., "My awesome site"
|
28
46
|
* `description` - A longer description of what your site is about, e.g., "Where I blog about Bridgetown and other awesome things"
|
29
|
-
* `url` - The URL to your site, e.g., `https://example.com`. If none is provided, the plugin will try to use `site.github.url`.
|
30
47
|
* `author` - Global author information (see below)
|
31
48
|
|
49
|
+
In addition it looks for these `bridgetown.config.yml` settings:
|
50
|
+
|
51
|
+
* `url` - The URL to your site, e.g., `https://example.com`.
|
52
|
+
|
32
53
|
### Already have a feed path?
|
33
54
|
|
34
55
|
Do you already have an existing feed someplace other than `/feed.xml`, but are on a host like GitHub Pages that doesn't support machine-friendly redirects? If you simply swap out `bridgetown-feed` for your existing template, your existing subscribers won't continue to get updates. Instead, you can specify a non-default path via your site's config.
|
@@ -55,7 +76,7 @@ Additionally, the plugin will use the following values, if present in a post's Y
|
|
55
76
|
|
56
77
|
* `image` - URL of an image that is representative of the post (can also be passed as `image.path`)
|
57
78
|
|
58
|
-
* `author` - The author of the post, e.g., "Dr. Bridgetown". If none is given, feed readers will look to the feed author as defined in `
|
79
|
+
* `author` - The author of the post, e.g., "Dr. Bridgetown". If none is given, feed readers will look to the feed author as defined in `_data/site_metadata.yml`. Like the feed author, this can also be an object or a reference to an author in `_data/authors.yml` (see below).
|
59
80
|
|
60
81
|
### Author information
|
61
82
|
|
@@ -70,7 +91,7 @@ There are several ways to convey author-specific information. Author information
|
|
70
91
|
twitter: MarinaDiamandis
|
71
92
|
```
|
72
93
|
|
73
|
-
2. An `author` object, in the site's `
|
94
|
+
2. An `author` object, in the site's `_data/site_metadata.yml`, e.g.:
|
74
95
|
|
75
96
|
```yml
|
76
97
|
author:
|
@@ -105,19 +126,15 @@ There are several ways to convey author-specific information. Author information
|
|
105
126
|
author: marina
|
106
127
|
```
|
107
128
|
|
108
|
-
5. An author in the site's `
|
129
|
+
5. An author in the site's `_data/site_metadata.yml`, e.g.:
|
109
130
|
|
110
131
|
```yml
|
111
132
|
author: marina
|
112
133
|
```
|
113
134
|
|
114
|
-
### Meta tags
|
115
|
-
|
116
|
-
The plugin exposes a helper tag to expose the appropriate meta tags to support automated discovery of your feed. Simply place `{% feed_meta %}` someplace in your template's `<head>` section, to output the necessary metadata.
|
117
|
-
|
118
135
|
### SmartyPants
|
119
136
|
|
120
|
-
The plugin uses [Bridgetown's `smartify` filter](https://bridgetownrb.com/docs/
|
137
|
+
The plugin uses [Bridgetown's `smartify` filter](https://www.bridgetownrb.com/docs/liquid/filters) for processing the site title and post titles. This will translate plain ASCII punctuation into "smart" typographic punctuation. This will not render or strip any Markdown you may be using in a title.
|
121
138
|
|
122
139
|
Bridgetown's `smartify` filter uses [kramdown](https://kramdown.gettalong.org/options.html) as a processor. Accordingly, if you do not want "smart" typographic punctuation, disabling them in kramdown in your `bridgetown.config.yml` will disable them in your feed. For example:
|
123
140
|
|
@@ -131,10 +148,6 @@ Bridgetown's `smartify` filter uses [kramdown](https://kramdown.gettalong.org/op
|
|
131
148
|
|
132
149
|
Want to style what your feed looks like in the browser? Simply add an XSLT at `/feed.xslt.xml` and Bridgetown Feed will link to the stylesheet.
|
133
150
|
|
134
|
-
## Why Atom, and not RSS?
|
135
|
-
|
136
|
-
Great question. In short, Atom is a better format. Think of it like RSS 3.0. For more information, see [this discussion on why we chose Atom over RSS 2.0](https://github.com/bridgetown/bridgetown-rss-feed/issues/2).
|
137
|
-
|
138
151
|
## Categories
|
139
152
|
|
140
153
|
Bridgetown Feed can generate feeds for each category. Simply define which categories you'd like feeds for in your config:
|
@@ -191,6 +204,10 @@ feed:
|
|
191
204
|
The same flag can be used directly in post file. It will be disable `<content>` tag for selected post.
|
192
205
|
Settings in post file has higher priority than in config file.
|
193
206
|
|
207
|
+
## Testing
|
208
|
+
|
209
|
+
* Run `bundle exec rspec` to run the test suite
|
210
|
+
* Or run `script/cibuild` to validate with Rubocop and test with rspec together
|
194
211
|
|
195
212
|
## Contributing
|
196
213
|
|
data/bridgetown-feed.gemspec
CHANGED
@@ -11,18 +11,18 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.homepage = "https://github.com/bridgetownrb/bridgetown-feed"
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
|
-
spec.files = `git ls-files -z`.split("\x0")
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features)/!) }
|
15
15
|
spec.test_files = spec.files.grep(%r!^spec/!)
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.required_ruby_version = ">= 2.
|
18
|
+
spec.required_ruby_version = ">= 2.5.0"
|
19
19
|
|
20
|
-
spec.add_dependency "bridgetown", ">= 0.
|
20
|
+
spec.add_dependency "bridgetown", ">= 0.20", "< 2.0"
|
21
21
|
|
22
22
|
spec.add_development_dependency "bundler"
|
23
23
|
spec.add_development_dependency "nokogiri", "~> 1.6"
|
24
24
|
spec.add_development_dependency "rake", "~> 12.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
26
|
-
spec.add_development_dependency "rubocop-
|
26
|
+
spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
|
27
27
|
spec.add_development_dependency "typhoeus", ">= 0.7", "< 2.0"
|
28
28
|
end
|
data/lib/bridgetown-feed.rb
CHANGED
@@ -2,11 +2,5 @@
|
|
2
2
|
|
3
3
|
require "bridgetown"
|
4
4
|
require "fileutils"
|
5
|
+
require "bridgetown-feed/builder"
|
5
6
|
require "bridgetown-feed/generator"
|
6
|
-
|
7
|
-
module BridgetownFeed
|
8
|
-
autoload :MetaTag, "bridgetown-feed/meta-tag"
|
9
|
-
autoload :PageWithoutAFile, "bridgetown-feed/page-without-a-file.rb"
|
10
|
-
end
|
11
|
-
|
12
|
-
Liquid::Template.register_tag "feed_meta", BridgetownFeed::MetaTag
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BridgetownFeed
|
4
|
+
class Builder < Bridgetown::Builder
|
5
|
+
include Bridgetown::Filters::URLFilters
|
6
|
+
Context = Struct.new(:registers)
|
7
|
+
|
8
|
+
def build
|
9
|
+
@context = Context.new({ site: site })
|
10
|
+
helper "feed_meta", :generate_link_tag
|
11
|
+
liquid_tag "feed_meta", :generate_link_tag
|
12
|
+
end
|
13
|
+
|
14
|
+
def generate_link_tag(*)
|
15
|
+
attrs = attributes.map { |k, v| %(#{k}="#{v}") }.join(" ")
|
16
|
+
tag_output = "<link #{attrs} />"
|
17
|
+
tag_output.respond_to?(:html_safe) ? tag_output.html_safe : tag_output
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def config
|
23
|
+
@config ||= site.config
|
24
|
+
end
|
25
|
+
|
26
|
+
def metadata
|
27
|
+
@metadata ||= site.data["site_metadata"]
|
28
|
+
end
|
29
|
+
|
30
|
+
def attributes
|
31
|
+
{
|
32
|
+
type: "application/atom+xml",
|
33
|
+
rel: "alternate",
|
34
|
+
href: absolute_url(path),
|
35
|
+
title: title,
|
36
|
+
}.keep_if { |_, v| v }
|
37
|
+
end
|
38
|
+
|
39
|
+
def path
|
40
|
+
config.dig("feed", "path") || "feed.xml"
|
41
|
+
end
|
42
|
+
|
43
|
+
def title
|
44
|
+
metadata["title"] || metadata["name"]
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
BridgetownFeed::Builder.register
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
10
10
|
<id>{{ page.url | absolute_url | xml_escape }}</id>
|
11
11
|
|
12
|
-
{% assign title = site.title | default: site.name %}
|
12
|
+
{% assign title = site.metadata.title | default: site.metadata.name %}
|
13
13
|
{% if page.collection != "posts" %}
|
14
14
|
{% assign collection = page.collection | capitalize %}
|
15
15
|
{% assign title = title | append: " | " | append: collection %}
|
@@ -23,23 +23,28 @@
|
|
23
23
|
<title type="html">{{ title | smartify | xml_escape }}</title>
|
24
24
|
{% endif %}
|
25
25
|
|
26
|
-
{% if site.description %}
|
27
|
-
<subtitle>{{ site.description | xml_escape }}</subtitle>
|
26
|
+
{% if site.metadata.description %}
|
27
|
+
<subtitle>{{ site.metadata.description | xml_escape }}</subtitle>
|
28
28
|
{% endif %}
|
29
29
|
|
30
|
-
{% if site.author %}
|
30
|
+
{% if site.metadata.author %}
|
31
31
|
<author>
|
32
|
-
<name>{{ site.author.name | default: site.author | xml_escape }}</name>
|
33
|
-
{% if site.author.email %}
|
34
|
-
<email>{{ site.author.email | xml_escape }}</email>
|
32
|
+
<name>{{ site.metadata.author.name | default: site.metadata.author | xml_escape }}</name>
|
33
|
+
{% if site.metadata.author.email %}
|
34
|
+
<email>{{ site.metadata.author.email | xml_escape }}</email>
|
35
35
|
{% endif %}
|
36
|
-
{% if site.author.uri %}
|
37
|
-
<uri>{{ site.author.uri | xml_escape }}</uri>
|
36
|
+
{% if site.metadata.author.uri %}
|
37
|
+
<uri>{{ site.metadata.author.uri | xml_escape }}</uri>
|
38
38
|
{% endif %}
|
39
39
|
</author>
|
40
40
|
{% endif %}
|
41
41
|
|
42
|
-
{% assign
|
42
|
+
{% assign feed_collection = collections[page.collection] %}
|
43
|
+
{% if site.uses_resource %}
|
44
|
+
{% find posts where feed_collection.resources, draft != true %}
|
45
|
+
{% else %}
|
46
|
+
{% assign posts = feed_collection.docs | where_exp: "post", "post.draft != true" | sort: "date" | reverse %}
|
47
|
+
{% endif %}
|
43
48
|
{% if page.category %}
|
44
49
|
{% assign posts = posts | where: "category",page.category %}
|
45
50
|
{% endif %}
|
@@ -55,7 +60,7 @@
|
|
55
60
|
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">{{ post.content | strip | xml_escape }}</content>
|
56
61
|
{% endunless %}
|
57
62
|
|
58
|
-
{% assign post_author = post.author | default: post.authors[0] | default: site.author %}
|
63
|
+
{% assign post_author = post.author | default: post.authors[0] | default: site.metadata.author %}
|
59
64
|
{% assign post_author = site.data.authors[post_author] | default: post_author %}
|
60
65
|
{% assign post_author_email = post_author.email | default: nil %}
|
61
66
|
{% assign post_author_uri = post_author.uri | default: nil %}
|
@@ -10,10 +10,10 @@ module BridgetownFeed
|
|
10
10
|
collections.each do |name, meta|
|
11
11
|
Bridgetown.logger.info "Bridgetown Feed:", "Generating feed for #{name}"
|
12
12
|
(meta["categories"] + [nil]).each do |category|
|
13
|
-
path = feed_path(:
|
13
|
+
path = feed_path(collection: name, category: category)
|
14
14
|
next if file_exists?(path)
|
15
15
|
|
16
|
-
@site.pages << make_page(path, :
|
16
|
+
@site.pages << make_page(path, collection: name, category: category)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -85,14 +85,15 @@ module BridgetownFeed
|
|
85
85
|
# Generates contents for a file
|
86
86
|
|
87
87
|
def make_page(file_path, collection: "posts", category: nil)
|
88
|
-
|
88
|
+
Bridgetown::GeneratedPage.new(@site, __dir__, "", file_path, from_plugin: true).tap do |file|
|
89
89
|
file.content = feed_template
|
90
90
|
file.data.merge!(
|
91
|
-
"layout"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
91
|
+
"layout" => "none",
|
92
|
+
"template_engine" => "liquid",
|
93
|
+
"sitemap" => false,
|
94
|
+
"xsl" => file_exists?("feed.xslt.xml"),
|
95
|
+
"collection" => collection,
|
96
|
+
"category" => category
|
96
97
|
)
|
97
98
|
file.output
|
98
99
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-feed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.20'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.20'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
@@ -87,19 +87,19 @@ dependencies:
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '3.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name: rubocop-
|
90
|
+
name: rubocop-bridgetown
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
95
|
+
version: '0.2'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '0.
|
102
|
+
version: '0.2'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: typhoeus
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,42 +129,17 @@ files:
|
|
129
129
|
- ".gitignore"
|
130
130
|
- ".rspec"
|
131
131
|
- ".rubocop.yml"
|
132
|
+
- CHANGELOG.md
|
132
133
|
- Gemfile
|
133
|
-
- History.markdown
|
134
134
|
- LICENSE.txt
|
135
135
|
- README.md
|
136
136
|
- Rakefile
|
137
137
|
- bridgetown-feed.gemspec
|
138
138
|
- lib/bridgetown-feed.rb
|
139
|
+
- lib/bridgetown-feed/builder.rb
|
139
140
|
- lib/bridgetown-feed/feed.xml
|
140
141
|
- lib/bridgetown-feed/generator.rb
|
141
|
-
- lib/bridgetown-feed/meta-tag.rb
|
142
|
-
- lib/bridgetown-feed/page-without-a-file.rb
|
143
142
|
- lib/bridgetown-feed/version.rb
|
144
|
-
- script/bootstrap
|
145
|
-
- script/cibuild
|
146
|
-
- script/fmt
|
147
|
-
- script/release
|
148
|
-
- script/test
|
149
|
-
- spec/bridgetown-feed_spec.rb
|
150
|
-
- spec/fixtures/bridgetown.config.yml
|
151
|
-
- spec/fixtures/src/_collection/2018-01-01-collection-doc.md
|
152
|
-
- spec/fixtures/src/_collection/2018-01-02-collection-category-doc.md
|
153
|
-
- spec/fixtures/src/_data/authors.yml
|
154
|
-
- spec/fixtures/src/_layouts/some_default.html
|
155
|
-
- spec/fixtures/src/_posts/2013-12-12-dec-the-second.md
|
156
|
-
- spec/fixtures/src/_posts/2014-03-02-march-the-second.md
|
157
|
-
- spec/fixtures/src/_posts/2014-03-04-march-the-fourth.md
|
158
|
-
- spec/fixtures/src/_posts/2015-01-12-a-draft.md
|
159
|
-
- spec/fixtures/src/_posts/2015-01-18-jekyll-last-modified-at.md
|
160
|
-
- spec/fixtures/src/_posts/2015-02-12-strip-newlines.md
|
161
|
-
- spec/fixtures/src/_posts/2015-05-12-liquid.md
|
162
|
-
- spec/fixtures/src/_posts/2015-05-12-pre.html
|
163
|
-
- spec/fixtures/src/_posts/2015-05-18-author-detail.md
|
164
|
-
- spec/fixtures/src/_posts/2015-08-08-stuck-in-the-middle.html
|
165
|
-
- spec/fixtures/src/_posts/2016-04-25-author-reference.md
|
166
|
-
- spec/fixtures/src/feed.xslt.xml
|
167
|
-
- spec/spec_helper.rb
|
168
143
|
homepage: https://github.com/bridgetownrb/bridgetown-feed
|
169
144
|
licenses:
|
170
145
|
- MIT
|
@@ -177,34 +152,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
152
|
requirements:
|
178
153
|
- - ">="
|
179
154
|
- !ruby/object:Gem::Version
|
180
|
-
version: 2.
|
155
|
+
version: 2.5.0
|
181
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
157
|
requirements:
|
183
158
|
- - ">="
|
184
159
|
- !ruby/object:Gem::Version
|
185
160
|
version: '0'
|
186
161
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
162
|
+
rubygems_version: 3.1.4
|
188
163
|
signing_key:
|
189
164
|
specification_version: 4
|
190
165
|
summary: A Bridgetown plugin to generate an Atom feed of your Bridgetown posts
|
191
|
-
test_files:
|
192
|
-
- spec/bridgetown-feed_spec.rb
|
193
|
-
- spec/fixtures/bridgetown.config.yml
|
194
|
-
- spec/fixtures/src/_collection/2018-01-01-collection-doc.md
|
195
|
-
- spec/fixtures/src/_collection/2018-01-02-collection-category-doc.md
|
196
|
-
- spec/fixtures/src/_data/authors.yml
|
197
|
-
- spec/fixtures/src/_layouts/some_default.html
|
198
|
-
- spec/fixtures/src/_posts/2013-12-12-dec-the-second.md
|
199
|
-
- spec/fixtures/src/_posts/2014-03-02-march-the-second.md
|
200
|
-
- spec/fixtures/src/_posts/2014-03-04-march-the-fourth.md
|
201
|
-
- spec/fixtures/src/_posts/2015-01-12-a-draft.md
|
202
|
-
- spec/fixtures/src/_posts/2015-01-18-jekyll-last-modified-at.md
|
203
|
-
- spec/fixtures/src/_posts/2015-02-12-strip-newlines.md
|
204
|
-
- spec/fixtures/src/_posts/2015-05-12-liquid.md
|
205
|
-
- spec/fixtures/src/_posts/2015-05-12-pre.html
|
206
|
-
- spec/fixtures/src/_posts/2015-05-18-author-detail.md
|
207
|
-
- spec/fixtures/src/_posts/2015-08-08-stuck-in-the-middle.html
|
208
|
-
- spec/fixtures/src/_posts/2016-04-25-author-reference.md
|
209
|
-
- spec/fixtures/src/feed.xslt.xml
|
210
|
-
- spec/spec_helper.rb
|
166
|
+
test_files: []
|