woody 0.2.0 → 0.2.1
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.
- data/lib/woody/episode.rb +4 -5
- data/lib/woody/version.rb +1 -1
- data/templates/woody-config.yml +1 -0
- metadata +3 -2
data/lib/woody/episode.rb
CHANGED
@@ -69,7 +69,6 @@ module Woody
|
|
69
69
|
@explicit ? 'yes' : 'no'
|
70
70
|
end
|
71
71
|
|
72
|
-
# TODO: fix this!
|
73
72
|
# @return [String] the duration of the media file, formatted as minutes:seconds
|
74
73
|
def duration
|
75
74
|
return @duration unless @duration.nil?
|
@@ -77,10 +76,10 @@ module Woody
|
|
77
76
|
Mp3Info.open("content/#{@filename}") do |mp3|
|
78
77
|
length = mp3.length
|
79
78
|
end
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
79
|
+
@duration = Time.at(length).gmtime.strftime('%R:%S') # Should work up to 24 hours
|
80
|
+
if @duration.start_with? "00:"
|
81
|
+
@duration = @duration[3..-1]
|
82
|
+
end
|
84
83
|
end
|
85
84
|
|
86
85
|
end
|
data/lib/woody/version.rb
CHANGED
data/templates/woody-config.yml
CHANGED
@@ -22,6 +22,7 @@ itunes:
|
|
22
22
|
s3:
|
23
23
|
# Set the relevant s3 endpoint here. For eu-west-1 (Ireland), use this default.
|
24
24
|
hostname: s3-eu-west-1.amazonaws.com
|
25
|
+
#prefix: podcast # Uncomment this to upload in a 'subdirectory' of the S3 bucket?
|
25
26
|
accesskey:
|
26
27
|
id: your-aws-access-key-id
|
27
28
|
secret: your-aws-access-key-secret
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: erubis
|
@@ -145,3 +145,4 @@ signing_key:
|
|
145
145
|
specification_version: 3
|
146
146
|
summary: Podcast Static Site Generator
|
147
147
|
test_files: []
|
148
|
+
has_rdoc:
|