gst-kitchen 0.6.3 → 0.6.4
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 +4 -4
- data/bin/gst-kitchen +4 -2
- data/lib/gst-kitchen/episode.rb +4 -0
- data/lib/gst-kitchen/version.rb +1 -1
- data/templates/episodes.rss.erb +2 -2
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6112c6627198735b306119ed6065ce019418190f
|
|
4
|
+
data.tar.gz: ca3476ec974aa4206a9df77c33fa5b6354f0f01f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14422c735be2ed979165fb7a452e36e8e81ddb5192d6754c954fbb31190185df737f6bcf893a27cce21f3ded571588d5bb9920617b0de2246b45029bb6f0a541
|
|
7
|
+
data.tar.gz: d5dcc2cd3e7467971bc82a0465a86d76a8fd36272007236ca8a0b5454ad94f6062ab84b672c9d49fa5c812dd76383da7cf5a3266e56a8023389ae1c7510cd42a
|
data/bin/gst-kitchen
CHANGED
|
@@ -53,9 +53,11 @@ when "stats"
|
|
|
53
53
|
while (logline = STDIN.gets)
|
|
54
54
|
# 93.194.154.91 - - [13/Dec/2012:16:22:38 +0100] "GET /episodes/gst000.m4a HTTP/1.1" 200 18676513 "-" "iTunes/11.0 (Macintosh; OS X 10.8.2) AppleWebKit/536.26.14"
|
|
55
55
|
|
|
56
|
-
/ - - \[(
|
|
56
|
+
next unless log_line_match = / - - \[(.*?)\].*?(#{podcast.handle.downcase}\d{3}\..*?) .*?2\d\d (\d+) /.match(logline)
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
_date = log_line_match[1]
|
|
59
|
+
filename = log_line_match[2]
|
|
60
|
+
size = log_line_match[3]
|
|
59
61
|
|
|
60
62
|
handle, format = filename.split(".")
|
|
61
63
|
|
data/lib/gst-kitchen/episode.rb
CHANGED
data/lib/gst-kitchen/version.rb
CHANGED
data/templates/episodes.rss.erb
CHANGED
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
|
|
34
34
|
<% @podcast.episodes.each do |episode| %>
|
|
35
35
|
<item>
|
|
36
|
-
<title><%= episode.title %></title>
|
|
36
|
+
<title><%= CGI.escape_html episode.title %></title>
|
|
37
37
|
<itunes:explicit><%= @podcast.explicit ? "yes" : "no" %></itunes:explicit>
|
|
38
38
|
<itunes:author><%= @podcast.author %></itunes:author>
|
|
39
|
-
<itunes:subtitle><%= episode.title %></itunes:subtitle>
|
|
39
|
+
<itunes:subtitle><%= CGI.escape_html episode.title %></itunes:subtitle>
|
|
40
40
|
<enclosure url="<%= @podcast.episode_media_url(episode, @format) %>" length="<%= episode.media[@format.format]["size"] %>" type="<%= @format.mime_type %>"/>
|
|
41
41
|
<guid isPermaLink="false"><%= episode.handle %></guid>
|
|
42
42
|
<pubDate><%= episode.rfc_2822_date %></pubDate>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gst-kitchen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastian Cohnen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-08-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yajl-ruby
|
|
@@ -150,4 +150,3 @@ summary: gst-kitchen is a gem to publish podcasts like a nerd with auphonic!
|
|
|
150
150
|
test_files:
|
|
151
151
|
- spec/episode_spec.rb
|
|
152
152
|
- spec/spec_helper.rb
|
|
153
|
-
has_rdoc:
|