jekyll-feed 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8604112b8ba6da171f042ad8371493aa738abb63
4
- data.tar.gz: e6b6b66be5943fd94efb27d05fbf5ff546fb53d8
3
+ metadata.gz: 6a3e8a5253523aaa7fc4f33ccefc07b349ba0796
4
+ data.tar.gz: 0fee2ead1d6942edb54d2acd319a77eccf626d34
5
5
  SHA512:
6
- metadata.gz: 73765321b5101bdc3e7c182669c59d52aeff3c07bc27fe96f46a11ec6ad710a9d5f0857c76aa031357f070c6e8982eda4f7bdc4c9c7257cd9bb5b2828b272f0e
7
- data.tar.gz: 8f33d48d10de2155bc8a3cf06486b369daba284d7a38499181ec19a13ec5edfd83071bcc6e09815c870d1a2e76ee7298ebc7c908460622b0df37e603624c926a
6
+ metadata.gz: c78bbf8800aa444a6e473fc3e6ef2dab35e9cd535ede01828179d5b0da783ea08825311c87b329eb1f68a426284648ed70d5e74f98490fb750d8c64c12667e23
7
+ data.tar.gz: d2291e9034c8db82aae3ac1b8edef548265f5a92acd0b0b10ad06df90f668f67043672d3473a9159a3d9d4a252ac5b859a2839312a84e5b16fa5daab82572ceb
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "jekyll-feed"
5
- spec.version = "0.1.0"
5
+ spec.version = "0.1.1"
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"
@@ -6,7 +6,7 @@
6
6
  {% endif %}
7
7
  <feed xmlns="http://www.w3.org/2005/Atom">
8
8
  <generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
9
- <link href="{{ url_base }}{{ page.url }}" rel="self" type="application/atom+xml" />
9
+ <link href="{{ page.url | prepend: url_base }}" rel="self" type="application/atom+xml" />
10
10
  <link href="{{ url_base }}/" rel="alternate" type="text/html" />
11
11
  <updated>{{ site.time | date_to_xmlschema }}</updated>
12
12
  <id>{{ url_base }}/</id>
@@ -27,13 +27,13 @@
27
27
 
28
28
  {% for post in site.posts %}
29
29
  <entry>
30
- <title>{{ post.title | xml_escape }}</title>
31
- <link href="{{ url_base }}{{ post.url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
30
+ <title>{{ post.title | markdownify | strip_html | strip_newlines | xml_escape }}</title>
31
+ <link href="{{ post.url | prepend: url_base }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
32
32
  <published>{{ post.date | date_to_xmlschema }}</published>
33
33
  <updated>{{ post.date | date_to_xmlschema }}</updated>
34
34
 
35
- <id>{{ url_base }}{{ post.id }}</id>
36
- <content type="html">{{ post.content | xml_escape }}</content>
35
+ <id>{{ post.id | prepend: url_base }}</id>
36
+ <content type="html">{{ post.content | markdownify | xml_escape }}</content>
37
37
 
38
38
  {% if post.author %}
39
39
  <author>
@@ -50,7 +50,7 @@
50
50
  {% endfor %}
51
51
 
52
52
  {% if post.excerpt %}
53
- <summary>{{ post.excerpt | strip_html | strip_newlines | xml_escape }}</summary>
53
+ <summary>{{ post.excerpt | markdownify | strip_html | strip_newlines | xml_escape }}</summary>
54
54
  {% endif %}
55
55
  </entry>
56
56
  {% endfor %}
@@ -1,4 +1,6 @@
1
1
  #! /bin/bash
2
2
 
3
+ set -e
4
+
3
5
  bundle exec rspec
4
6
  gem build jekyll-feed.gemspec
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  ---
3
3
 
4
- December the twelfth, actually.
4
+ # December the twelfth, actually.
@@ -53,6 +53,10 @@ describe(Jekyll::JekyllFeed) do
53
53
  expect(contents).to match /Line 1\nLine 2\nLine 3/
54
54
  end
55
55
 
56
+ it "converts markdown posts to HTML" do
57
+ expect(contents).to match /&lt;p&gt;March the second!&lt;\/p&gt;/
58
+ end
59
+
56
60
  context "parsing" do
57
61
  let(:feed) { RSS::Parser.parse(contents) }
58
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter