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 +1 -1
- data/lib/jammit/s3_uploader.rb +3 -1
- metadata +4 -4
data/jammit-s3.gemspec
CHANGED
data/lib/jammit/s3_uploader.rb
CHANGED
@@ -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:
|
4
|
+
hash: 103
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.5.3.
|
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-
|
19
|
+
date: 2010-10-30 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|