s3-publisher 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/lib/s3-publisher.rb CHANGED
@@ -62,7 +62,7 @@ class S3Publisher
62
62
  end
63
63
 
64
64
  headers['x-amz-storage-class'] = opts[:redundancy] == :reduced ? 'REDUCED_REDUNDANCY' : 'STANDARD'
65
- headers['Content-Type'] = parse_content_type(opts[:content_type]) if opts[:content_type]
65
+ headers['content-type'] = parse_content_type(opts[:content_type]) if opts[:content_type]
66
66
 
67
67
  if opts.has_key?(:cache_control)
68
68
  headers['Cache-Control'] = opts[:cache_control]
@@ -122,7 +122,7 @@ class S3Publisher
122
122
  retry
123
123
  end
124
124
 
125
- logger << "Wrote http://#{bucket_name}.s3.amazonaws.com/#{item[:key_name]}"
125
+ logger << "Wrote http://#{bucket_name}.s3.amazonaws.com/#{item[:key_name]} with #{item[:headers].inspect}\n"
126
126
  end
127
127
  rescue ThreadError # ThreadError hit when queue is empty. Simply jump out of loop and return to join().
128
128
  end
data/s3-publisher.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "s3-publisher"
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Koski"]
12
- s.date = "2011-12-12"
12
+ s.date = "2012-07-04"
13
13
  s.description = "Publish data to S3 for the world to see"
14
14
  s.email = "gems@benkoski.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3-publisher
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Koski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-12 00:00:00 Z
18
+ date: 2012-07-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thoughtbot-shoulda