jekyll-feed 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.markdown +10 -0
- data/README.md +1 -1
- data/jekyll-feed.gemspec +1 -1
- data/lib/jekyll-feed/feed.xml +2 -2
- data/spec/fixtures/_posts/2015-05-12-pre.html +1 -0
- data/spec/jekyll-feed_spec.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fff077f51b1b4b3b1e983bf5c211944916274d26
|
4
|
+
data.tar.gz: f260cd7fbca8361948de81c0724147a846843d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ba9ce96ae0d11b7fe7d65c15100d2bb0eab713c9f0a0d6519068771ba063d733078870445000eb80700e68bf9cd0b4ee1cb01f0d6fd11417914a0555c9d686
|
7
|
+
data.tar.gz: '0491a6e21f94f30906678bde1449c8a63a961499c78f01311555687eebd25f1232c494e0500c71ac51c0d848e6d7c8d259efb7feb22af9fce80c15863138ab78'
|
data/History.markdown
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
A Jekyll plugin to generate an Atom (RSS-like) feed of your Jekyll posts
|
4
4
|
|
5
|
-
[![Build Status](https://travis-ci.org/jekyll/jekyll-feed.svg)](https://travis-ci.org/jekyll/jekyll-feed) [![Gem Version](https://badge.fury.io/rb/jekyll-feed.svg)](
|
5
|
+
[![Build Status](https://travis-ci.org/jekyll/jekyll-feed.svg)](https://travis-ci.org/jekyll/jekyll-feed) [![Gem Version](https://badge.fury.io/rb/jekyll-feed.svg)](https://badge.fury.io/rb/jekyll-feed)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
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.9.
|
5
|
+
spec.version = "0.9.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/jekyll-feed/feed.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<?xml-stylesheet type="text/xml" href="{{ '/feed.xslt.xml' | absolute_url }}"?>
|
4
4
|
{% endif %}
|
5
5
|
<feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>
|
6
|
-
<generator uri="
|
6
|
+
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
|
7
7
|
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
|
8
8
|
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
|
9
9
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
@@ -33,7 +33,7 @@
|
|
33
33
|
|
34
34
|
{% assign posts = site.posts | where_exp: "post", "post.draft != true" %}
|
35
35
|
{% for post in posts limit: 10 %}
|
36
|
-
<entry{% if post.lang %} xml:lang="{{ post.lang }}"{% endif %}>
|
36
|
+
<entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
|
37
37
|
<title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
|
38
38
|
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
|
39
39
|
<published>{{ post.date | date_to_xmlschema }}</published>
|
data/spec/jekyll-feed_spec.rb
CHANGED
@@ -275,4 +275,11 @@ describe(JekyllFeed) do
|
|
275
275
|
expect(contents).to match %r{type="text/html" hreflang="en-US" />}
|
276
276
|
end
|
277
277
|
end
|
278
|
+
|
279
|
+
context "with post.lang set"do
|
280
|
+
it "should set the language for that entry" do
|
281
|
+
expect(contents).to match %r{<entry xml:lang="en">}
|
282
|
+
expect(contents).to match %r{<entry>}
|
283
|
+
end
|
284
|
+
end
|
278
285
|
end
|
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.9.
|
4
|
+
version: 0.9.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: 2017-
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.6.11
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: A Jekyll plugin to generate an Atom feed of your Jekyll posts
|