woody 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/woody/version.rb +1 -1
- data/lib/woody.rb +11 -4
- data/templates/iTunes.png +0 -0
- data/templates/itunes.xml +5 -2
- metadata +2 -1
data/lib/woody/version.rb
CHANGED
data/lib/woody.rb
CHANGED
@@ -7,9 +7,9 @@ require 'digest'
|
|
7
7
|
require 'fileutils'
|
8
8
|
require 'uri'
|
9
9
|
|
10
|
-
|
10
|
+
oldverbosity = $VERBOSE; $VERBOSE = nil # Silence depreciation notice
|
11
11
|
require 'mp3info'
|
12
|
-
$VERBOSE =
|
12
|
+
$VERBOSE = oldverbosity
|
13
13
|
|
14
14
|
|
15
15
|
module Woody
|
@@ -42,7 +42,6 @@ module Woody
|
|
42
42
|
AWS::S3::Base.establish_connection!(options)
|
43
43
|
AWS::S3::DEFAULT_HOST.replace $config['s3']['hostname']
|
44
44
|
$bucketname = $config['s3']['bucket']
|
45
|
-
$itunes_image_url = "FILL IN URL"
|
46
45
|
end
|
47
46
|
|
48
47
|
def self.new_site(name)
|
@@ -65,7 +64,7 @@ module Woody
|
|
65
64
|
|
66
65
|
cdir_p("#{name}/content")
|
67
66
|
cpy_t("metadata.yml", "#{name}/content/metadata.yml")
|
68
|
-
|
67
|
+
cpy_t("iTunes.png", "#{name}/content/iTunes.png")
|
69
68
|
|
70
69
|
cdir_p("#{name}/output")
|
71
70
|
cdir_p("#{name}/output/assets")
|
@@ -223,6 +222,14 @@ module Woody
|
|
223
222
|
touchedfiles << episode.path(false)
|
224
223
|
end
|
225
224
|
|
225
|
+
# Copy over iTunes.png
|
226
|
+
if File.exist? "content/iTunes.png"
|
227
|
+
FileUtils.copy "content/iTunes.png", "output/assets/iTunes.png"
|
228
|
+
touchedfiles << "assets/iTunes.png"
|
229
|
+
else
|
230
|
+
puts "Warning: content/iTunes.png missing!"
|
231
|
+
end
|
232
|
+
|
226
233
|
# Update iTunes RSS
|
227
234
|
itunes = File.read "#{$source_root}/itunes.xml" # Use itunes.xml template in gem, not in site's template folder.
|
228
235
|
itunes = Erubis::Eruby.new(itunes)
|
Binary file
|
data/templates/itunes.xml
CHANGED
@@ -8,14 +8,16 @@
|
|
8
8
|
<itunes:subtitle><%= config['subtitle'] %></itunes:subtitle>
|
9
9
|
<itunes:author><%= config['author'] %></itunes:author>
|
10
10
|
<itunes:summary><%= config['itunes']['summary'] %></itunes:summary>
|
11
|
+
<description><%= config['itunes']['summary'] %></description>
|
11
12
|
|
12
13
|
<itunes:owner>
|
13
14
|
<itunes:name><%= config['itunes']['owner']['name'] %></itunes:name>
|
14
15
|
<itunes:email><%= config['itunes']['owner']['email'] %></itunes:email>
|
15
16
|
</itunes:owner>
|
16
17
|
|
17
|
-
<itunes:image href="<%= $
|
18
|
-
<itunes:category text="<%= config['itunes']['category'] %>"/>
|
18
|
+
<itunes:image href="<%= $config['urlbase'] + "/assets/iTunes.png" %>"/>
|
19
|
+
<itunes:category text="<%= $config['itunes']['category'] %>"/>
|
20
|
+
|
19
21
|
|
20
22
|
<%- episodes.each do |episode| %>
|
21
23
|
<item>
|
@@ -26,6 +28,7 @@
|
|
26
28
|
<pubDate><%= episode.date.rfc2822 %></pubDate>
|
27
29
|
<itunes:duration><%= episode.duration %></itunes:duration>
|
28
30
|
<itunes:keywords><%= episode.keywords %></itunes:keywords>
|
31
|
+
<guid><%= episode.url %></guid>
|
29
32
|
</item>
|
30
33
|
<% end %>
|
31
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woody
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/woody.rb
|
93
93
|
- lib/woody/version.rb
|
94
94
|
- templates/episode.html
|
95
|
+
- templates/iTunes.png
|
95
96
|
- templates/index.html
|
96
97
|
- templates/itunes.xml
|
97
98
|
- templates/layout.html
|