jekyll-feed 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/jekyll-feed.gemspec +1 -1
- data/lib/feed.xml +3 -3
- data/spec/jekyll-feed_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f368685d55e33c31c084fb74b499d27e39e6dd7a
|
|
4
|
+
data.tar.gz: 0c417ed20113db87fa37f479e913bb430b6d1100
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 758f92df0be4dc0169912547a3776d8ba039c8f2dcfc81f18aada484b716308df451d65ce41c87115c1070a3a2f01d1561fabeb2774e8a218fa0fd6e782a2eac
|
|
7
|
+
data.tar.gz: 47ae187e2d68864fca6a442dd734f635c93dc38a9a709fdbfbe772a0885912d50d7d7adec9ff220a9131ec86942844aa63e55391664d0c71f34975cd4086e911
|
data/jekyll-feed.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "jekyll-feed"
|
|
5
|
-
spec.version = "0.2.
|
|
5
|
+
spec.version = "0.2.2"
|
|
6
6
|
spec.authors = ["Ben Balter"]
|
|
7
7
|
spec.email = ["ben.balter@github.com"]
|
|
8
8
|
spec.summary = "A Jekyll plugin to generate an Atom feed of your Jekyll posts"
|
data/lib/feed.xml
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
</author>
|
|
36
36
|
{% endif %}
|
|
37
37
|
|
|
38
|
-
{% for post in site.posts
|
|
38
|
+
{% for post in site.posts limit: 10 %}
|
|
39
39
|
<entry>
|
|
40
40
|
<title>{{ post.title | markdownify | strip_html | strip_newlines | xml_escape }}</title>
|
|
41
41
|
<link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
{% if post.author.email %}
|
|
60
60
|
<email>{{ post.author.email | xml_escape }}</email>
|
|
61
61
|
{% endif %}
|
|
62
|
-
{% if post.author.
|
|
63
|
-
<uri>{{ post.author.
|
|
62
|
+
{% if post.author.uri %}
|
|
63
|
+
<uri>{{ post.author.uri | xml_escape }}</uri>
|
|
64
64
|
{% endif %}
|
|
65
65
|
</author>
|
|
66
66
|
{% endif %}
|
data/spec/jekyll-feed_spec.rb
CHANGED
|
@@ -54,7 +54,7 @@ describe(Jekyll::JekyllFeed) do
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
it "supports post author name as an object" do
|
|
57
|
-
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<\/author>/
|
|
57
|
+
expect(contents).to match /<author>\s*<name>Ben<\/name>\s*<email>ben@example.com<\/email>\s*<uri>http:\/\/ben.balter.com<\/uri>\s*<\/author>/
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
it "supports post author name as a string" do
|
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.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Balter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|