jekyll-feed 0.13.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.markdown +52 -0
- data/README.md +53 -4
- data/lib/jekyll-feed/feed.xml +24 -8
- data/lib/jekyll-feed/generator.rb +33 -4
- data/lib/jekyll-feed/meta-tag.rb +12 -22
- data/lib/jekyll-feed/version.rb +1 -1
- metadata +11 -59
- data/.gitignore +0 -21
- data/.rspec +0 -2
- data/.rubocop.yml +0 -27
- data/.travis.yml +0 -32
- data/Gemfile +0 -11
- data/Rakefile +0 -8
- data/appveyor.yml +0 -29
- data/jekyll-feed.gemspec +0 -30
- 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/fixtures/_collection/2018-01-01-collection-doc.md +0 -4
- data/spec/fixtures/_collection/2018-01-02-collection-category-doc.md +0 -5
- data/spec/fixtures/_config.yml +0 -9
- data/spec/fixtures/_data/authors.yml +0 -5
- data/spec/fixtures/_drafts/2015-01-12-a-draft.md +0 -4
- data/spec/fixtures/_layouts/some_default.html +0 -11
- data/spec/fixtures/_posts/2013-12-12-dec-the-second.md +0 -7
- data/spec/fixtures/_posts/2014-03-02-march-the-second.md +0 -6
- data/spec/fixtures/_posts/2014-03-04-march-the-fourth.md +0 -9
- data/spec/fixtures/_posts/2015-01-18-jekyll-last-modified-at.md +0 -5
- data/spec/fixtures/_posts/2015-02-12-strip-newlines.md +0 -6
- data/spec/fixtures/_posts/2015-05-12-liquid.md +0 -7
- data/spec/fixtures/_posts/2015-05-12-pre.html +0 -8
- data/spec/fixtures/_posts/2015-05-18-author-detail.md +0 -9
- data/spec/fixtures/_posts/2015-08-08-stuck-in-the-middle.html +0 -6
- data/spec/fixtures/_posts/2016-04-25-author-reference.md +0 -6
- data/spec/fixtures/feed.xslt.xml +0 -0
- data/spec/jekyll-feed_spec.rb +0 -524
- data/spec/spec_helper.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72a8ff146b022b2a1ee373375cc87b7c178a289f1ed1c893abbf4013aa4f0827
|
4
|
+
data.tar.gz: 96c50216c2247289a3bded53e6e09afd03bdf3da4a5feaaa595677e510d8d630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 362f2a9a0700e4efd215918169d8b7258a3d2f3aa53eaf5c355c6bc1c906c315f678204bc9ee633c34df63d87be58780e886584e15fbae19cc3ec0c34a86c80a
|
7
|
+
data.tar.gz: ffae565f488e7434fbe0c5634e9745e60b36267ca6eed2b7815bd3a9beefe8cc037a68f652ab12e173c4dc5756f4385d716009434ee9b414239135691967a5b1
|
data/History.markdown
CHANGED
@@ -1,3 +1,55 @@
|
|
1
|
+
## 0.16.0 / 2022-01-03
|
2
|
+
|
3
|
+
### Minor Enhancements
|
4
|
+
|
5
|
+
* Add support for `page.description` in front matter to become entry `<summary>` (#297)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* Fold private methods into the `:render` method as local variables (#327)
|
10
|
+
* Check `post.categories` instead of `post.category` (#357)
|
11
|
+
* Switched xml_escape for `<![CDATA[]]>` for post content (#332)
|
12
|
+
|
13
|
+
### Development Fixes
|
14
|
+
|
15
|
+
* Add Ruby 3.0 to CI (#337)
|
16
|
+
* Lock RuboCop to v1.18.x (#348)
|
17
|
+
* Add workflow to release gem via GH Action (#355)
|
18
|
+
|
19
|
+
### Documentation
|
20
|
+
|
21
|
+
* Use `.atom` extension in documented examples since we write an Atom feed (#359)
|
22
|
+
|
23
|
+
## 0.15.1 / 2020-10-04
|
24
|
+
|
25
|
+
### Bug Fixes
|
26
|
+
|
27
|
+
* MetaTag: when encoding for XML special characters, handle non-string objects (#326)
|
28
|
+
|
29
|
+
## 0.15.0 / 2020-07-10
|
30
|
+
|
31
|
+
### Minor Enhancements
|
32
|
+
|
33
|
+
* Add support for drafts (#316)
|
34
|
+
|
35
|
+
## 0.14.0 / 2020-06-24
|
36
|
+
|
37
|
+
### Minor Enhancements
|
38
|
+
|
39
|
+
* add support for categories (#153) (#233)
|
40
|
+
* add support for tags (#264)
|
41
|
+
* Make posts limit configurable (#314)
|
42
|
+
* XML escape the title field of feed_meta (#306)
|
43
|
+
|
44
|
+
### Bug Fixes
|
45
|
+
|
46
|
+
* Fix feed link when post title contains HTML (#305)
|
47
|
+
|
48
|
+
### Development Fixes
|
49
|
+
|
50
|
+
* Use Dir to list source files (#309)
|
51
|
+
* Require Ruby >=2.4.0 (#307)
|
52
|
+
|
1
53
|
## 0.13.0 / 2019-11-13
|
2
54
|
|
3
55
|
### Minor Enhancements
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ Do you already have an existing feed someplace other than `/feed.xml`, but are o
|
|
40
40
|
|
41
41
|
```yml
|
42
42
|
feed:
|
43
|
-
path: atom
|
43
|
+
path: /blog/feed.atom
|
44
44
|
```
|
45
45
|
|
46
46
|
To note, you shouldn't have to do this unless you already have a feed you're using, and you can't or wish not to redirect existing subscribers.
|
@@ -62,6 +62,8 @@ Additionally, the plugin will use the following values, if present in a post's Y
|
|
62
62
|
|
63
63
|
* `author` - The author of the post, e.g., "Dr. Jekyll". If none is given, feed readers will look to the feed author as defined in `_config.yml`. Like the feed author, this can also be an object or a reference to an author in `_data/authors.yml` (see below).
|
64
64
|
|
65
|
+
* `description` - A short description of the post.
|
66
|
+
|
65
67
|
### Author information
|
66
68
|
|
67
69
|
*TL;DR: In most cases, put `author: [your name]` in the document's front matter, for sites with multiple authors. If you need something more complicated, read on.*
|
@@ -134,7 +136,7 @@ Jekyll's `smartify` filter uses [kramdown](https://kramdown.gettalong.org/option
|
|
134
136
|
|
135
137
|
### Custom styling
|
136
138
|
|
137
|
-
Want to style what your feed looks like in the browser?
|
139
|
+
Want to style what your feed looks like in the browser? When a XSLT Styleheet file named `feed.xslt.xml` exists at the root of your repository, a link to this stylesheet is added to the generated feed.
|
138
140
|
|
139
141
|
## Why Atom, and not RSS?
|
140
142
|
|
@@ -151,6 +153,15 @@ feed:
|
|
151
153
|
- updates
|
152
154
|
```
|
153
155
|
|
156
|
+
## Posts limit
|
157
|
+
|
158
|
+
By default the plugin limits the number of posts in the feed to 10. Simply define a new limit in your config:
|
159
|
+
|
160
|
+
```yml
|
161
|
+
feed:
|
162
|
+
posts_limit: 20
|
163
|
+
```
|
164
|
+
|
154
165
|
## Collections
|
155
166
|
|
156
167
|
Jekyll Feed can generate feeds for collections other than the Posts collection. This works best for chronological collections (e.g., collections with dates in the filenames). Simply define which collections you'd like feeds for in your config:
|
@@ -167,7 +178,7 @@ By default, collection feeds will be outputted to `/feed/<COLLECTION>.xml`. If y
|
|
167
178
|
feed:
|
168
179
|
collections:
|
169
180
|
changes:
|
170
|
-
path: "/changes.
|
181
|
+
path: "/changes.atom"
|
171
182
|
```
|
172
183
|
|
173
184
|
Finally, collections can also have category feeds which are outputted as `/feed/<COLLECTION>/<CATEGORY>.xml`. Specify categories like so:
|
@@ -176,7 +187,7 @@ Finally, collections can also have category feeds which are outputted as `/feed/
|
|
176
187
|
feed:
|
177
188
|
collections:
|
178
189
|
changes:
|
179
|
-
path: "/changes.
|
190
|
+
path: "/changes.atom"
|
180
191
|
categories:
|
181
192
|
- news
|
182
193
|
- updates
|
@@ -196,6 +207,44 @@ feed:
|
|
196
207
|
The same flag can be used directly in post file. It will be disable `<content>` tag for selected post.
|
197
208
|
Settings in post file has higher priority than in config file.
|
198
209
|
|
210
|
+
## Tags
|
211
|
+
|
212
|
+
To automatically generate feeds for each tag you apply to your posts you can add a tags setting to your config:
|
213
|
+
|
214
|
+
```yml
|
215
|
+
feed:
|
216
|
+
tags: true
|
217
|
+
```
|
218
|
+
|
219
|
+
If there are tags you don't want included in this auto generation you can exclude them
|
220
|
+
|
221
|
+
```yml
|
222
|
+
feed:
|
223
|
+
tags:
|
224
|
+
except:
|
225
|
+
- tag-to-exclude
|
226
|
+
- another-tag
|
227
|
+
```
|
228
|
+
|
229
|
+
If you wish to change the location of these auto generated feeds (`/feed/by_tag/<TAG>.xml` by default) you can provide an alternative folder for them to live in.
|
230
|
+
|
231
|
+
```yml
|
232
|
+
feed:
|
233
|
+
tags:
|
234
|
+
path: "alternative/path/for/tags/feeds/"
|
235
|
+
```
|
236
|
+
|
237
|
+
If you only want to generate feeds for a few tags you can also set this.
|
238
|
+
|
239
|
+
```yml
|
240
|
+
feed:
|
241
|
+
tags:
|
242
|
+
only:
|
243
|
+
- tag-to-include
|
244
|
+
- another-tag
|
245
|
+
```
|
246
|
+
|
247
|
+
Note that if you include a tag that is excluded a feed will not be generated for it.
|
199
248
|
|
200
249
|
## Contributing
|
201
250
|
|
data/lib/jekyll-feed/feed.xml
CHANGED
@@ -39,20 +39,31 @@
|
|
39
39
|
</author>
|
40
40
|
{% endif %}
|
41
41
|
|
42
|
-
{%
|
42
|
+
{% if page.tags %}
|
43
|
+
{% assign posts = site.tags[page.tags] %}
|
44
|
+
{% else %}
|
45
|
+
{% assign posts = site[page.collection] %}
|
46
|
+
{% endif %}
|
43
47
|
{% if page.category %}
|
44
|
-
{% assign posts = posts | where: "
|
48
|
+
{% assign posts = posts | where: "categories", page.category %}
|
45
49
|
{% endif %}
|
46
|
-
{%
|
50
|
+
{% unless site.show_drafts %}
|
51
|
+
{% assign posts = posts | where_exp: "post", "post.draft != true" %}
|
52
|
+
{% endunless %}
|
53
|
+
{% assign posts = posts | sort: "date" | reverse %}
|
54
|
+
{% assign posts_limit = site.feed.posts_limit | default: 10 %}
|
55
|
+
{% for post in posts limit: posts_limit %}
|
47
56
|
<entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
|
48
|
-
|
49
|
-
|
57
|
+
{% assign post_title = post.title | smartify | strip_html | normalize_whitespace | xml_escape %}
|
58
|
+
|
59
|
+
<title type="html">{{ post_title }}</title>
|
60
|
+
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post_title }}" />
|
50
61
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
51
62
|
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
|
52
63
|
<id>{{ post.id | absolute_url | xml_escape }}</id>
|
53
64
|
{% assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only %}
|
54
65
|
{% unless excerpt_only %}
|
55
|
-
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"
|
66
|
+
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | strip }}]]></content>
|
56
67
|
{% endunless %}
|
57
68
|
|
58
69
|
{% assign post_author = post.author | default: post.authors[0] | default: site.author %}
|
@@ -73,14 +84,19 @@
|
|
73
84
|
|
74
85
|
{% if post.category %}
|
75
86
|
<category term="{{ post.category | xml_escape }}" />
|
87
|
+
{% elsif post.categories %}
|
88
|
+
{% for category in post.categories %}
|
89
|
+
<category term="{{ category | xml_escape }}" />
|
90
|
+
{% endfor %}
|
76
91
|
{% endif %}
|
77
92
|
|
78
93
|
{% for tag in post.tags %}
|
79
94
|
<category term="{{ tag | xml_escape }}" />
|
80
95
|
{% endfor %}
|
81
96
|
|
82
|
-
{%
|
83
|
-
|
97
|
+
{% assign post_summary = post.description | default: post.excerpt %}
|
98
|
+
{% if post_summary and post_summary != empty %}
|
99
|
+
<summary type="html"><![CDATA[{{ post_summary | strip_html | normalize_whitespace }}]]></summary>
|
84
100
|
{% endif %}
|
85
101
|
|
86
102
|
{% assign post_image = post.image.path | default: post.image %}
|
@@ -17,6 +17,7 @@ module JekyllFeed
|
|
17
17
|
@site.pages << make_page(path, :collection => name, :category => category)
|
18
18
|
end
|
19
19
|
end
|
20
|
+
generate_feed_by_tag if config["tags"] && !@site.tags.empty?
|
20
21
|
end
|
21
22
|
|
22
23
|
private
|
@@ -53,9 +54,10 @@ module JekyllFeed
|
|
53
54
|
def collections
|
54
55
|
return @collections if defined?(@collections)
|
55
56
|
|
56
|
-
@collections =
|
57
|
+
@collections = case config["collections"]
|
58
|
+
when Array
|
57
59
|
config["collections"].map { |c| [c, {}] }.to_h
|
58
|
-
|
60
|
+
when Hash
|
59
61
|
config["collections"]
|
60
62
|
else
|
61
63
|
{}
|
@@ -69,6 +71,32 @@ module JekyllFeed
|
|
69
71
|
@collections
|
70
72
|
end
|
71
73
|
|
74
|
+
def generate_feed_by_tag
|
75
|
+
tags_config = config["tags"]
|
76
|
+
tags_config = {} unless tags_config.is_a?(Hash)
|
77
|
+
|
78
|
+
except = tags_config["except"] || []
|
79
|
+
only = tags_config["only"] || @site.tags.keys
|
80
|
+
tags_pool = only - except
|
81
|
+
tags_path = tags_config["path"] || "/feed/by_tag/"
|
82
|
+
|
83
|
+
generate_tag_feed(tags_pool, tags_path)
|
84
|
+
end
|
85
|
+
|
86
|
+
def generate_tag_feed(tags_pool, tags_path)
|
87
|
+
tags_pool.each do |tag|
|
88
|
+
# allow only tags with basic alphanumeric characters and underscore to keep
|
89
|
+
# feed path simple.
|
90
|
+
next if %r![^a-zA-Z0-9_]!.match?(tag)
|
91
|
+
|
92
|
+
Jekyll.logger.info "Jekyll Feed:", "Generating feed for posts tagged #{tag}"
|
93
|
+
path = "#{tags_path}#{tag}.xml"
|
94
|
+
next if file_exists?(path)
|
95
|
+
|
96
|
+
@site.pages << make_page(path, :tags => tag)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
72
100
|
# Path to feed.xml template file
|
73
101
|
def feed_source_path
|
74
102
|
@feed_source_path ||= File.expand_path "feed.xml", __dir__
|
@@ -85,7 +113,7 @@ module JekyllFeed
|
|
85
113
|
|
86
114
|
# Generates contents for a file
|
87
115
|
|
88
|
-
def make_page(file_path, collection: "posts", category: nil)
|
116
|
+
def make_page(file_path, collection: "posts", category: nil, tags: nil)
|
89
117
|
PageWithoutAFile.new(@site, __dir__, "", file_path).tap do |file|
|
90
118
|
file.content = feed_template
|
91
119
|
file.data.merge!(
|
@@ -93,7 +121,8 @@ module JekyllFeed
|
|
93
121
|
"sitemap" => false,
|
94
122
|
"xsl" => file_exists?("feed.xslt.xml"),
|
95
123
|
"collection" => collection,
|
96
|
-
"category" => category
|
124
|
+
"category" => category,
|
125
|
+
"tags" => tags
|
97
126
|
)
|
98
127
|
file.output
|
99
128
|
end
|
data/lib/jekyll-feed/meta-tag.rb
CHANGED
@@ -6,32 +6,22 @@ module JekyllFeed
|
|
6
6
|
include Jekyll::Filters::URLFilters
|
7
7
|
|
8
8
|
def render(context)
|
9
|
+
# Jekyll::Filters::URLFilters requires `@context` to be set in the environment.
|
9
10
|
@context = context
|
10
|
-
attrs = attributes.map { |k, v| %(#{k}="#{v}") }.join(" ")
|
11
|
-
"<link #{attrs} />"
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
def config
|
17
|
-
@config ||= @context.registers[:site].config
|
18
|
-
end
|
19
11
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
:rel => "alternate",
|
24
|
-
:href => absolute_url(path),
|
25
|
-
:title => title,
|
26
|
-
}.keep_if { |_, v| v }
|
27
|
-
end
|
12
|
+
config = context.registers[:site].config
|
13
|
+
path = config.dig("feed", "path") || "feed.xml"
|
14
|
+
title = config["title"] || config["name"]
|
28
15
|
|
29
|
-
|
30
|
-
|
31
|
-
|
16
|
+
attributes = {
|
17
|
+
:type => "application/atom+xml",
|
18
|
+
:rel => "alternate",
|
19
|
+
:href => absolute_url(path),
|
20
|
+
}
|
21
|
+
attributes[:title] = title if title
|
32
22
|
|
33
|
-
|
34
|
-
|
23
|
+
attrs = attributes.map { |k, v| "#{k}=#{v.to_s.encode(:xml => :attr)}" }.join(" ")
|
24
|
+
"<link #{attrs} />"
|
35
25
|
end
|
36
26
|
end
|
37
27
|
end
|
data/lib/jekyll-feed/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-feed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Balter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 0.12.0
|
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:
|
102
|
+
version: 0.12.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: typhoeus
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,49 +125,20 @@ email:
|
|
125
125
|
- ben.balter@github.com
|
126
126
|
executables: []
|
127
127
|
extensions: []
|
128
|
-
extra_rdoc_files:
|
128
|
+
extra_rdoc_files:
|
129
|
+
- README.md
|
130
|
+
- History.markdown
|
131
|
+
- LICENSE.txt
|
129
132
|
files:
|
130
|
-
- ".gitignore"
|
131
|
-
- ".rspec"
|
132
|
-
- ".rubocop.yml"
|
133
|
-
- ".travis.yml"
|
134
|
-
- Gemfile
|
135
133
|
- History.markdown
|
136
134
|
- LICENSE.txt
|
137
135
|
- README.md
|
138
|
-
- Rakefile
|
139
|
-
- appveyor.yml
|
140
|
-
- jekyll-feed.gemspec
|
141
136
|
- lib/jekyll-feed.rb
|
142
137
|
- lib/jekyll-feed/feed.xml
|
143
138
|
- lib/jekyll-feed/generator.rb
|
144
139
|
- lib/jekyll-feed/meta-tag.rb
|
145
140
|
- lib/jekyll-feed/page-without-a-file.rb
|
146
141
|
- lib/jekyll-feed/version.rb
|
147
|
-
- script/bootstrap
|
148
|
-
- script/cibuild
|
149
|
-
- script/fmt
|
150
|
-
- script/release
|
151
|
-
- script/test
|
152
|
-
- spec/fixtures/_collection/2018-01-01-collection-doc.md
|
153
|
-
- spec/fixtures/_collection/2018-01-02-collection-category-doc.md
|
154
|
-
- spec/fixtures/_config.yml
|
155
|
-
- spec/fixtures/_data/authors.yml
|
156
|
-
- spec/fixtures/_drafts/2015-01-12-a-draft.md
|
157
|
-
- spec/fixtures/_layouts/some_default.html
|
158
|
-
- spec/fixtures/_posts/2013-12-12-dec-the-second.md
|
159
|
-
- spec/fixtures/_posts/2014-03-02-march-the-second.md
|
160
|
-
- spec/fixtures/_posts/2014-03-04-march-the-fourth.md
|
161
|
-
- spec/fixtures/_posts/2015-01-18-jekyll-last-modified-at.md
|
162
|
-
- spec/fixtures/_posts/2015-02-12-strip-newlines.md
|
163
|
-
- spec/fixtures/_posts/2015-05-12-liquid.md
|
164
|
-
- spec/fixtures/_posts/2015-05-12-pre.html
|
165
|
-
- spec/fixtures/_posts/2015-05-18-author-detail.md
|
166
|
-
- spec/fixtures/_posts/2015-08-08-stuck-in-the-middle.html
|
167
|
-
- spec/fixtures/_posts/2016-04-25-author-reference.md
|
168
|
-
- spec/fixtures/feed.xslt.xml
|
169
|
-
- spec/jekyll-feed_spec.rb
|
170
|
-
- spec/spec_helper.rb
|
171
142
|
homepage: https://github.com/jekyll/jekyll-feed
|
172
143
|
licenses:
|
173
144
|
- MIT
|
@@ -180,34 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
151
|
requirements:
|
181
152
|
- - ">="
|
182
153
|
- !ruby/object:Gem::Version
|
183
|
-
version: 2.
|
154
|
+
version: 2.5.0
|
184
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
156
|
requirements:
|
186
157
|
- - ">="
|
187
158
|
- !ruby/object:Gem::Version
|
188
159
|
version: '0'
|
189
160
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.1.6
|
191
162
|
signing_key:
|
192
163
|
specification_version: 4
|
193
164
|
summary: A Jekyll plugin to generate an Atom feed of your Jekyll posts
|
194
|
-
test_files:
|
195
|
-
- spec/fixtures/_collection/2018-01-01-collection-doc.md
|
196
|
-
- spec/fixtures/_collection/2018-01-02-collection-category-doc.md
|
197
|
-
- spec/fixtures/_config.yml
|
198
|
-
- spec/fixtures/_data/authors.yml
|
199
|
-
- spec/fixtures/_drafts/2015-01-12-a-draft.md
|
200
|
-
- spec/fixtures/_layouts/some_default.html
|
201
|
-
- spec/fixtures/_posts/2013-12-12-dec-the-second.md
|
202
|
-
- spec/fixtures/_posts/2014-03-02-march-the-second.md
|
203
|
-
- spec/fixtures/_posts/2014-03-04-march-the-fourth.md
|
204
|
-
- spec/fixtures/_posts/2015-01-18-jekyll-last-modified-at.md
|
205
|
-
- spec/fixtures/_posts/2015-02-12-strip-newlines.md
|
206
|
-
- spec/fixtures/_posts/2015-05-12-liquid.md
|
207
|
-
- spec/fixtures/_posts/2015-05-12-pre.html
|
208
|
-
- spec/fixtures/_posts/2015-05-18-author-detail.md
|
209
|
-
- spec/fixtures/_posts/2015-08-08-stuck-in-the-middle.html
|
210
|
-
- spec/fixtures/_posts/2016-04-25-author-reference.md
|
211
|
-
- spec/fixtures/feed.xslt.xml
|
212
|
-
- spec/jekyll-feed_spec.rb
|
213
|
-
- spec/spec_helper.rb
|
165
|
+
test_files: []
|
data/.gitignore
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
/vendor
|
2
|
-
/.bundle/
|
3
|
-
/.yardoc
|
4
|
-
/Gemfile.lock
|
5
|
-
/_yardoc/
|
6
|
-
/coverage/
|
7
|
-
/doc/
|
8
|
-
/pkg/
|
9
|
-
/spec/reports/
|
10
|
-
/tmp/
|
11
|
-
*.bundle
|
12
|
-
*.so
|
13
|
-
*.o
|
14
|
-
*.a
|
15
|
-
mkmf.log
|
16
|
-
*.gem
|
17
|
-
Gemfile.lock
|
18
|
-
spec/dest
|
19
|
-
.bundle
|
20
|
-
spec/fixtures/.jekyll-metadata
|
21
|
-
spec/fixtures/.jekyll-cache
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require: rubocop-jekyll
|
2
|
-
|
3
|
-
inherit_gem:
|
4
|
-
rubocop-jekyll: .rubocop.yml
|
5
|
-
|
6
|
-
AllCops:
|
7
|
-
TargetRubyVersion: 2.3
|
8
|
-
Include:
|
9
|
-
- lib/**/*.rb
|
10
|
-
|
11
|
-
Exclude:
|
12
|
-
- .gitignore
|
13
|
-
- .rspec
|
14
|
-
- .rubocop.yml
|
15
|
-
- .travis.yml
|
16
|
-
|
17
|
-
- Gemfile.lock
|
18
|
-
- History.markdown
|
19
|
-
- LICENSE.txt
|
20
|
-
- README.md
|
21
|
-
|
22
|
-
- script/**/*
|
23
|
-
- vendor/**/*
|
24
|
-
|
25
|
-
Naming/MemoizedInstanceVariableName:
|
26
|
-
Exclude:
|
27
|
-
- lib/jekyll-feed/page-without-a-file.rb
|
data/.travis.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
rvm:
|
4
|
-
- &latest_ruby 2.6
|
5
|
-
- 2.4
|
6
|
-
- 2.3
|
7
|
-
env:
|
8
|
-
global:
|
9
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
10
|
-
matrix:
|
11
|
-
- JEKYLL_VERSION="~> 3.8"
|
12
|
-
matrix:
|
13
|
-
include:
|
14
|
-
- rvm: *latest_ruby
|
15
|
-
env: JEKYLL_VERSION="~> 3.7.4"
|
16
|
-
- rvm: *latest_ruby
|
17
|
-
env: JEKYLL_VERSION=">= 4.0.0.pre.alpha1"
|
18
|
-
before_install:
|
19
|
-
- gem update --system
|
20
|
-
- gem install bundler
|
21
|
-
before_script: bundle update
|
22
|
-
script: script/cibuild
|
23
|
-
notifications:
|
24
|
-
email: false
|
25
|
-
deploy:
|
26
|
-
provider: rubygems
|
27
|
-
api_key:
|
28
|
-
secure: qz0q6ur0kGo03jjLdoAak6WcEAwxX2r9LG3DVrhOrcfoFipkuW+uwR0et4tpK8uFrz0P9y7eTIKOb0XCXeIsIXWj6R5benpRGr2U8m9A+tE/jxviBFUaxaokte0lqWiX1fEyhRmW3zvcdLQ47Vd2EwTNaq6ZmPulmEe9gS0rBQghyclakGlZ17LI7oGgiNL9SQ335Yqa1qJklTHYHbodWQ3Z07v7VN2jxqi3WH6NacT5gUGp5iCNCLLa8+jpKr4uONNIoy6/geAWdqtvgGUE8oTjIWDoJarrknJpqfx9Rd0KLDzkyneAigHDYPW60QtrE6GGpK/+TF1pF4DzdK2EgTWqGFnZf8ehfnxmtHVl2Xq/DPr6hS8Q/f+ut4ioMzBQxPD0hfh8/EOMYKsO8mOuOlYTiZXC7iuGyvFUOl2hnBgWA99t+I0NNB06qFp3ZxIjolEc3zjzc9f1a5HUXlEut5V8nqvCwbctNiTVpT8ZEWlsQlyRUnr9cIMUTEfLgQ+v6DnvAJBMO1EILq6liB5qfutjNhzhlREt7P/ZdppGsAzWpgt0q2PafqVoPe62WR3+/8Lj2ErMr034xSSqZVNcBS0mbdvW6k3jaABo1VJ4XuHm6/yDuemWzWb7kdG9/14+IIJMW1VuaWcmnCnB6gxjkCW3Dm2ftYiN7Rfn3AUz/nU=
|
29
|
-
gem: jekyll-feed
|
30
|
-
on:
|
31
|
-
tags: true
|
32
|
-
repo: jekyll/jekyll-feed
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/appveyor.yml
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
version: "{build}"
|
2
|
-
clone_depth: 5
|
3
|
-
build: off
|
4
|
-
|
5
|
-
environment:
|
6
|
-
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
|
7
|
-
JEKYLL_VERSION: "~> 3.8"
|
8
|
-
matrix:
|
9
|
-
- RUBY_FOLDER_VER: "26"
|
10
|
-
JEKYLL_VERSION : "~> 3.7.4"
|
11
|
-
- RUBY_FOLDER_VER: "26"
|
12
|
-
JEKYLL_VERSION : ">= 4.0.0.pre.alpha1"
|
13
|
-
- RUBY_FOLDER_VER: "26"
|
14
|
-
- RUBY_FOLDER_VER: "24"
|
15
|
-
- RUBY_FOLDER_VER: "23"
|
16
|
-
|
17
|
-
install:
|
18
|
-
- SET PATH=C:\Ruby%RUBY_FOLDER_VER%-x64\bin;%PATH%
|
19
|
-
- bundle install --retry 5 --jobs=%NUMBER_OF_PROCESSORS% --clean --path vendor\bundle
|
20
|
-
|
21
|
-
test_script:
|
22
|
-
- ruby --version
|
23
|
-
- gem --version
|
24
|
-
- bundler --version
|
25
|
-
- bash ./script/test
|
26
|
-
|
27
|
-
cache:
|
28
|
-
# If one of the files after the right arrow changes, cache will be invalidated
|
29
|
-
- 'vendor\bundle -> appveyor.yml, Gemfile, jekyll-feed.gemspec'
|
data/jekyll-feed.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
lib = File.expand_path("lib", __dir__)
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require "jekyll-feed/version"
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = "jekyll-feed"
|
9
|
-
spec.version = Jekyll::Feed::VERSION
|
10
|
-
spec.authors = ["Ben Balter"]
|
11
|
-
spec.email = ["ben.balter@github.com"]
|
12
|
-
spec.summary = "A Jekyll plugin to generate an Atom feed of your Jekyll posts"
|
13
|
-
spec.homepage = "https://github.com/jekyll/jekyll-feed"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files -z`.split("\x0")
|
17
|
-
spec.test_files = spec.files.grep(%r!^spec/!)
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.required_ruby_version = ">= 2.3.0"
|
21
|
-
|
22
|
-
spec.add_dependency "jekyll", ">= 3.7", "< 5.0"
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "nokogiri", "~> 1.6"
|
26
|
-
spec.add_development_dependency "rake", "~> 12.0"
|
27
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
-
spec.add_development_dependency "rubocop-jekyll", "~> 0.5"
|
29
|
-
spec.add_development_dependency "typhoeus", ">= 0.7", "< 2.0"
|
30
|
-
end
|
data/script/bootstrap
DELETED