jekyll-octopod 0.7.8 → 0.7.9

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: 4ac0d253b5505030539f591b0c88d5b07869a37a
4
- data.tar.gz: c818a7dd2045899cc4f66ad66ea0ae04dd380c1a
3
+ metadata.gz: f93d294895f219298797b838ce4d8b9866d42844
4
+ data.tar.gz: b26cbfe53b8d3bb911b630bd9758b0c19cbdbce5
5
5
  SHA512:
6
- metadata.gz: 163cfe28813c3fc699026ba14818979c231ce8bcf7d919165450726cd78b2c24fb2ed9d46b3159d76a6c16b045f7f2386d3073dc26f1779c7849d189924cb6dc
7
- data.tar.gz: dc2e310590a51b73e2bc4f700e8602a82f0c2075873defbb43c9d79283d53950ea3ffb4335a69500418a0ec40810c4f06122f5183779c4a8cd796060355acdcf
6
+ metadata.gz: b6c30d936573312abd52438365597fa0737df102a78b0a717cb6bc376cf165ec7589a573281ff79485ebfa25729ea65fd2a0225adf555f0ace3eed0be842b2b1
7
+ data.tar.gz: 1cdf43e92c8f8b61f4bc0bd644e6e9b2ad58f0da69fb9219d907be4d2b31f8b89b71c84594dd5b399926238c204087e0fc881317033c22c195eb33ef131cc120
@@ -1,26 +1,34 @@
1
1
  ---
2
2
  layout: null
3
3
  ---
4
- <?xml version="1.0" encoding="UTF-8"?>
5
- <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
4
+ <?xml version="1.0"
5
+ encoding="UTF-8"?>
6
+ <rss xmlns:atom="http://www.w3.org/2005/Atom"
7
+ xmlns:bitlove="http://bitlove.org"
8
+ xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
9
+ xmlns:content="http://purl.org/rss/1.0/modules/content/"
10
+ xmlns:psc="http://podlove.org/simple-chapters"
11
+ version="2.0">
12
+
6
13
  <channel>
7
14
  <title>{{ site.title }}</title>
8
15
  <link>{{ site.url }}</link>
9
16
  <atom:link href="{{ site.url }}/episodes.{{ page.format }}.rss{{page.myself}}" rel="self" type="application/rss+xml" title="{{ page.format }} Episode RSS-Feed"/>
10
17
  <atom:link href="{{ site.url }}/episodes.{{ page.format }}.rss" rel="first" type="application/rss+xml" />
11
- <atom:link href="{{ site.url }}/episodes.{{ page.format }}.rss{{page.last}}" rel="last" type="application/rss+xml" />
12
- {% if page.next %}<atom:link href="{{ site.url }}/episodes.{{ page.format }}.rss{{page.next}}" rel="next" type="application/rss+xml" />{% endif %}
13
- {% if page.prev %}<atom:link href="{{ site.url }}/episodes.{{ page.format }}.rss{{page.prev}}" rel="prev" type="application/rss+xml" />{% endif %}
18
+ <atom:link href="{{ site.url }}/episodes{{page.last}}.{{ page.format }}.rss" rel="last" type="application/rss+xml" />
19
+ {% if page.next %}<atom:link href="{{ site.url }}/episodes{{page.next}}.{{ page.format }}.rss" rel="next" type="application/rss+xml" />{% endif %}
20
+ {% if page.prev %}<atom:link href="{{ site.url }}/episodes{{page.prev}}.{{ page.format }}.rss" rel="prev" type="application/rss+xml" />{% endif %}
14
21
 
15
22
  {{ site | episode_feeds_rss:page.format }}
16
23
  <description>{{ site.description | markdownify | strip_html }}</description>
17
24
  <lastBuildDate>{{ site.time | time_to_rssschema }}</lastBuildDate>
18
25
  <language>{{ site.language }}</language>
26
+ <generator>Jekyll-Octopod {{ site | version_string }}</generator>
19
27
 
20
28
  <itunes:summary>{{ site.description | markdownify | strip_html }}</itunes:summary>
21
29
  <itunes:author>{{ site.author }}</itunes:author>
22
30
  <itunes:explicit>{{ site.explicit }}</itunes:explicit>
23
- <itunes:image href="{{ site.url | http_only }}/img/logo-itunes.jpg" />
31
+ <itunes:image href="{{ site.url }}/img/logo-itunes.jpg" />
24
32
  <itunes:owner>
25
33
  <itunes:name>{{ site.author }}</itunes:name>
26
34
  <itunes:email>{{ site.email }}</itunes:email>
@@ -53,7 +61,8 @@ layout: null
53
61
  <guid isPermaLink="false">{{ site.url }}{{ post.url }}</guid>
54
62
  <description><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></description>
55
63
  <content:encoded><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape | remove_script_and_audio }}]]></content:encoded>
56
- <enclosure url="{{ site.url | http_only }}/episodes/{{ post.audio | audio:page.format }}" length="{{ post.audio | audio:page.format | file_size }}" type="{{ page.format | mime_type }}" />
64
+ {% assign url = site.url | append: '/episodes/' | append: post.audio[page.format] %}
65
+ <enclosure url="{{ url }}" length="{{ post.audio | audio:page.format | file_size }}" type="{{ page.format | mime_type }}" guid="{{ url | sha1:32}}" />
57
66
  <itunes:keywords>{{ post.tags }}</itunes:keywords>
58
67
  <itunes:subtitle>{{ post.subtitle }}</itunes:subtitle>
59
68
  <itunes:summary>{{ post.summary }}</itunes:summary>
@@ -68,6 +77,23 @@ layout: null
68
77
  {% endfor %}
69
78
  </psc:chapters>
70
79
  {% endif %}
80
+ {% if post.contributors %}
81
+ {% for contributor in post.contributors %}
82
+ <atom:contributor>
83
+ <atom:name>{{ contributor.name}}</atom:name>
84
+ <atom:uri>{{ contributor.uri}}</atom:uri>
85
+ <atom:email>{{ contributor.email}}</atom:email>
86
+ <atom:contributor>
87
+ {% endfor %}
88
+ {% endif %}
89
+ {% if post.image %}
90
+ <itunes:image href="{{ site.url }}/img/{{post.image}}" />
91
+ <image>
92
+ <title>{{ post.image_title }}</title>
93
+ <url>{{ site.url }}/img/{{post.image}}</url>
94
+ <link>{{ site.url }}</link>
95
+ </image>
96
+ {% endif %}
71
97
  </item>
72
98
  {% endif %}
73
99
  {% endif %}
@@ -1,6 +1,7 @@
1
1
  require "jekyll/flattr_filters"
2
2
  require "jekyll/octopod_filters"
3
3
  require "jekyll/paged_feed_page"
4
+ require "jekyll/paged_feed_page_generator"
4
5
  require "jekyll/podcast_player_page"
5
6
  require "jekyll/podcast_player_page_generator"
6
7
  require "jekyll/update_config"
@@ -33,10 +33,6 @@ module Jekyll
33
33
  input.gsub(/<audio.*audio>/m, '').gsub(/<script.*script>/m, '')
34
34
  end
35
35
 
36
- def http_only(input)
37
- input.gsub(/https/,"http")
38
- end
39
-
40
36
  # Formats a Time to be RSS compatible like "Wed, 15 Jun 2005 19:00:00 GMT"
41
37
  #
42
38
  # {{ site.time | time_to_rssschema }}
@@ -298,6 +294,10 @@ module Jekyll
298
294
  }.join("\n")
299
295
  end
300
296
 
297
+ # Prints out current version
298
+ def version_string(site)
299
+ Jekyll::Octopod::VERSION::STRING
300
+ end
301
301
  end
302
302
  end
303
303
 
@@ -0,0 +1,20 @@
1
+ module Jekyll
2
+ class PagedFeedPageGenerator < Generator
3
+ safe true
4
+
5
+ def generate(site)
6
+ pages_total = (site.posts.docs.count.to_f / site.config["episodes_per_feed_page"]).ceil
7
+
8
+ site.config["episode_feed_formats"].each do |page_format|
9
+ name = "episodes." + page_format + ".rss"
10
+ page = PagedFeedPage.new(site, site.source, ".", name, 1, pages_total, page_format)
11
+ site.pages << page
12
+ (1..pages_total).each do |page_number|
13
+ name = "episodes" + page_number.to_s + "." + page_format + ".rss"
14
+ page = PagedFeedPage.new(site, site.source, ".", name, page_number, pages_total, page_format)
15
+ site.pages << page
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -3,7 +3,7 @@ module Jekyll
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 7
6
- TINY = 8
6
+ TINY = 9
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-octopod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Eilermann
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-17 00:00:00.000000000 Z
12
+ date: 2017-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -133,6 +133,7 @@ files:
133
133
  - lib/jekyll/flattr_filters.rb
134
134
  - lib/jekyll/octopod_filters.rb
135
135
  - lib/jekyll/paged_feed_page.rb
136
+ - lib/jekyll/paged_feed_page_generator.rb
136
137
  - lib/jekyll/podcast_player_page.rb
137
138
  - lib/jekyll/podcast_player_page_generator.rb
138
139
  - lib/jekyll/podigee_player_tag.rb