jekyll-feed 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42b66d68627e46afebafbc2c4ad469c7004f7de1
4
- data.tar.gz: 25c6ae75817b2b04df23be3b96784e315e1a96e6
3
+ metadata.gz: d8d429015b555b748fbc4709b99618aac8d865c5
4
+ data.tar.gz: 64827b8d2f14a2efaf0af13183635350196fa7a1
5
5
  SHA512:
6
- metadata.gz: 2c670c4f552516f4001f948b13a9335202662994f053e8b22f5b8304c0566c18302dc06387574b2713c320eb5cbf122ba5379233eff24b0fa5a8b8abdd811be3
7
- data.tar.gz: 685e0605447eb2b4e0b02afad01a419bbdfbffbd68c063ae239b87721352c109115201878538963bab0d1e4aaeeb2239f4980ccca6603c4eaef498d6e01cd5b0
6
+ metadata.gz: 0ede9ea6477191da60ab82cc1e0e4c39ea5e44de76a28d63983a245aeb0f01038988586090caa580a66422cb80a1fd0052cb8f6a96a87ff9e9c0eab045f212bf
7
+ data.tar.gz: ba23fe1cb3e3d2302a3a38fa4e67ed39a78e03ca090ce23acfd283c77f30d6b6b2c1e39ea09ae4b500958892fb3af654b69b3646e9759e13572cf22d1e1e7200
@@ -1,3 +1,7 @@
1
+ ## 0.7.0 / 2016-09-06
2
+
3
+ * Use type="html" to skirt around double escaping problem (#127)
4
+
1
5
  ## 0.6.0 / 2016-07-08
2
6
 
3
7
  * Cleanup `post_author` logic (#113)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-feed"
5
- spec.version = "0.6.0"
5
+ spec.version = "0.7.0"
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"
@@ -13,9 +13,9 @@
13
13
  <id>{{ url_base | xml_escape }}/</id>
14
14
 
15
15
  {% if site.title %}
16
- <title>{{ site.title | smartify | xml_escape }}</title>
16
+ <title type="html">{{ site.title | smartify | xml_escape }}</title>
17
17
  {% elsif site.name %}
18
- <title>{{ site.name | smartify | xml_escape }}</title>
18
+ <title type="html">{{ site.name | smartify | xml_escape }}</title>
19
19
  {% endif %}
20
20
 
21
21
  {% if site.description %}
@@ -41,7 +41,7 @@
41
41
  {% for post in site.posts limit: 10 %}
42
42
  {% unless post.draft %}
43
43
  <entry{% if post.lang %} xml:lang="{{ post.lang }}"{% endif %}>
44
- <title>{{ post.title | smartify | strip_html | replace: '\n', ' ' | strip | xml_escape }}</title>
44
+ <title type="html">{{ post.title | smartify | strip_html | replace: '\n', ' ' | strip | xml_escape }}</title>
45
45
  <link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
46
46
  <published>{{ post.date | date_to_xmlschema }}</published>
47
47
  {% if post.last_modified_at %}
@@ -80,7 +80,7 @@
80
80
  {% endfor %}
81
81
 
82
82
  {% if post.excerpt and post.excerpt != empty %}
83
- <summary>{{ post.excerpt | strip_html | replace: '\n', ' ' | strip | xml_escape }}</summary>
83
+ <summary type="html">{{ post.excerpt | strip_html | replace: '\n', ' ' | strip | xml_escape }}</summary>
84
84
  {% endif %}
85
85
 
86
86
  {% assign post_image = post.image %}
@@ -85,7 +85,7 @@ describe(Jekyll::JekyllFeed) do
85
85
  end
86
86
 
87
87
  it "replaces newlines in posts to spaces" do
88
- expect(contents).to match /<title>The plugin will properly strip newlines.<\/title>/
88
+ expect(contents).to match %r!<title type="html">The plugin will properly strip newlines.</title>!
89
89
  end
90
90
 
91
91
  it "renders Liquid inside posts" 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.6.0
4
+ version: 0.7.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: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll