jekyll-feed 0.7.1 → 0.7.2

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: 9c7fa8bb99889312c18568b4572749d4666c6660
4
- data.tar.gz: 4603d4c8a3c7ad3720c9447a4437defdb5b2268d
3
+ metadata.gz: 29260f36998522e4c79581e9db32ab1da5beacbe
4
+ data.tar.gz: 8f471054cec8cadb271288e79b84e90604ab667a
5
5
  SHA512:
6
- metadata.gz: a5bd06ef010eae5a9dcacdcde98e153d8cab9c98ceaae4ec878f0807ddb62a0636986c154bd44a9c3f35c39dc01138a47451f9b377f5875d213836f229883142
7
- data.tar.gz: a7785d89c4bde3b8e21cc67b1a1b2a97fa4ac520727d868692c1c605d1c52ba041de79259a852ff665218e70ce715cf2d5e5197ebdb86f47adaf898d8b56d0db
6
+ metadata.gz: bd31985f2ffb8f3d10de9025ebd3a333b4d9bb4344953f633fe0fc94d458e2130b3a7c758f6c206a37075b1d2884f6a21c60bd59781359c542856936dd9e88c4
7
+ data.tar.gz: 6f4ca44cab5047f5910c0e2b2b6c0c14baa7c8484d734d9b349ad2cd033a5fc6368005187000590a822654ba247f547dbef0d2199e77b4c4e794475f785f74cb
data/History.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.2 / 2016-10-06
2
+
3
+ * Support `image.path` when `post.image` is an object (#137)
4
+
1
5
  ## 0.7.1 / 2016-09-26
2
6
 
3
7
  * Assign `url_base` before first usage (#133)
data/README.md CHANGED
@@ -56,6 +56,8 @@ The plugin will use the following post metadata, automatically generated by Jeky
56
56
 
57
57
  Additionally, the plugin will use the following values, if present in a post's YAML front matter:
58
58
 
59
+ * `image` - URL of an image that is representative of the post (can also be passed as `image.path`)
60
+
59
61
  * `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).
60
62
 
61
63
  ### Author information
@@ -112,8 +114,6 @@ There are several ways to convey author-specific information. Author information
112
114
  author: benbalter
113
115
  ```
114
116
 
115
- * `image` - URL of an image that is representative of the post.
116
-
117
117
  ### Meta tags
118
118
 
119
119
  The plugin exposes a helper tag to expose the appropriate meta tags to support automated discovery of your feed. Simply place `{% feed_meta %}` someplace in your template's `<head>` section, to output the necessary metadata.
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.7.1"
5
+ spec.version = "0.7.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
@@ -83,7 +83,7 @@
83
83
  <summary type="html">{{ post.excerpt | strip_html | replace: '\n', ' ' | strip | xml_escape }}</summary>
84
84
  {% endif %}
85
85
 
86
- {% assign post_image = post.image %}
86
+ {% assign post_image = post.image.path | default: post.image %}
87
87
  {% if post_image %}
88
88
  {% unless post_image contains "://" %}
89
89
  {% assign post_image = post_image | prepend: url_base | xml_escape %}
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  tags:
3
3
  - '"/><VADER>'
4
+ image:
5
+ path: "/object-image.png"
4
6
  ---
5
7
 
6
8
  March the fourth!
@@ -96,6 +96,7 @@ describe(Jekyll::JekyllFeed) do
96
96
  it "includes the item image" do
97
97
  expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://example.org/image.png" />')
98
98
  expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://cdn.example.org/absolute.png" />')
99
+ expect(contents).to include('<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://example.org/object-image.png" />')
99
100
  end
100
101
 
101
102
  context "parsing" 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.7.1
4
+ version: 0.7.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: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.4.8
179
+ rubygems_version: 2.6.7
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: A Jekyll plugin to generate an Atom feed of your Jekyll posts