woody 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/woody/version.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  module Woody
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
+ VERSION_STRING = "Woody #{VERSION}"
3
4
  end
data/lib/woody.rb CHANGED
@@ -6,6 +6,7 @@ require 'mp3info'
6
6
  require 'aws/s3'
7
7
  require 'digest'
8
8
  require 'fileutils'
9
+ require 'uri'
9
10
 
10
11
 
11
12
  module Woody
@@ -20,10 +21,22 @@ module Woody
20
21
  return
21
22
  end
22
23
 
23
- AWS::S3::Base.establish_connection!(
24
+ options = {
24
25
  :access_key_id => $config['s3']['accesskey']['id'],
25
26
  :secret_access_key => $config['s3']['accesskey']['secret']
26
- )
27
+ }
28
+
29
+ unless ENV['http_proxy'].nil?
30
+ uri = URI(ENV['http_proxy'])
31
+ p = Hash.new
32
+ p[:host] = uri.host
33
+ p[:port] = uri.port
34
+ p[:user] = uri.user unless uri.user.nil?
35
+ p[:password] = uri.password unless uri.password.nil?
36
+ options[:proxy] = p
37
+ end
38
+
39
+ AWS::S3::Base.establish_connection!(options)
27
40
  AWS::S3::DEFAULT_HOST.replace $config['s3']['hostname']
28
41
  $bucketname = $config['s3']['bucket']
29
42
  $itunes_image_url = "FILL IN URL"
@@ -2,7 +2,7 @@ title: Title
2
2
  subtitle: Subtitle
3
3
  author: Author
4
4
 
5
- # Include http://, domain name, and *NO trailing slash*
5
+ # Include http://, domain name, but *NO trailing slash*
6
6
  urlbase: http://example.com
7
7
 
8
8
  mp3:
@@ -24,4 +24,4 @@ s3:
24
24
  accesskey:
25
25
  id: your-aws-access-key-id
26
26
  secret: your-aws-access-key-secret
27
- bucket: bucketname
27
+ bucket: example.com
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.7
4
+ version: 0.0.8
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-08 00:00:00.000000000 Z
12
+ date: 2012-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
@@ -96,8 +96,8 @@ files:
96
96
  - templates/itunes.xml
97
97
  - templates/layout.html
98
98
  - templates/metadata.yml
99
- - templates/podgen-config.yml
100
99
  - templates/stylesheet.css
100
+ - templates/woody-config.yml
101
101
  - woody.gemspec
102
102
  homepage: https://github.com/DavidJRobertson/woody
103
103
  licenses: []