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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee26d1f1e83d067b99b2a32b96da02bc3041ee31
4
- data.tar.gz: 95a32f8ac4a7f402178459f71a26789ead92d17f
3
+ metadata.gz: 6112c6627198735b306119ed6065ce019418190f
4
+ data.tar.gz: ca3476ec974aa4206a9df77c33fa5b6354f0f01f
5
5
  SHA512:
6
- metadata.gz: 0b1e344d6e83595d45e4d544862fee9bdf29794476205b81acdea3be84e53a10bbc636e664d27b313fdd73dffbbf18e6a1afeac5d55347a19ec0f7cc2aabd047
7
- data.tar.gz: 75b1127426785233abe8583ae0a55752d058534ec4f5c542f6b6890bd723d1fb7fa545e38edf99e04b296487c54bc8c95bb85f724cf890344e13674f07ba5624
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
- / - - \[(?<date>.*?)\].*?(?<filename>gst\d{3}\..*?) .*?2\d\d (?<size>\d+) / =~ logline
56
+ next unless log_line_match = / - - \[(.*?)\].*?(#{podcast.handle.downcase}\d{3}\..*?) .*?2\d\d (\d+) /.match(logline)
57
57
 
58
- next unless filename
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
 
@@ -91,5 +91,9 @@ class Episode < Struct.new(:number, :name, :length, :media, :auphonic_uuid, :pub
91
91
  def to_s
92
92
  "#{title} (#{duration}) https://auphonic.com/engine/status/#{auphonic_uuid}"
93
93
  end
94
+
95
+ def to_yaml_properties
96
+ super - [:@podcast]
97
+ end
94
98
  end
95
99
 
@@ -1,3 +1,3 @@
1
1
  module GstKitchen
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -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.3
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-07-07 00:00:00.000000000 Z
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: