jammit-s3 0.5.3.5 → 0.5.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/jammit-s3.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit-s3'
3
- s.version = '0.5.3.5'
3
+ s.version = '0.5.3.6'
4
4
 
5
5
  s.homepage = "http://documentcloud.github.com/jammit/"
6
6
  s.summary = "Asset Packaging for Rails with Deployment to S3/Cloudfront"
@@ -10,7 +10,8 @@ module Jammit
10
10
  @secret_access_key = options[:secret_access_key] || Jammit.configuration[:s3_secret_access_key]
11
11
  @bucket_location = options[:bucket_location] || Jammit.configuration[:s3_bucket_location]
12
12
  @cache_control = options[:cache_control] || Jammit.configuration[:s3_cache_control]
13
-
13
+ @acl = options[:acl] || Jammit.configuration[:s3_permission]
14
+
14
15
  @bucket = find_or_create_bucket
15
16
  end
16
17
  end
@@ -64,6 +65,7 @@ module Jammit
64
65
  new_object.content_type = MimeMagic.by_path(remote_path)
65
66
  new_object.content = open(local_path)
66
67
  new_object.content_encoding = "gzip" if use_gzip
68
+ new_object.acl = @acl if @acl
67
69
  new_object.save
68
70
  end
69
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit-s3
3
3
  version: !ruby/object:Gem::Version
4
- hash: 97
4
+ hash: 103
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
9
  - 3
10
- - 5
11
- version: 0.5.3.5
10
+ - 6
11
+ version: 0.5.3.6
12
12
  platform: ruby
13
13
  authors:
14
14
  - Jacques Crocker
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-29 00:00:00 -07:00
19
+ date: 2010-10-30 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency