paperclip-aws 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +17 -0
- data/VERSION +1 -1
- data/paperclip-aws.gemspec +5 -5
- metadata +13 -13
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -112,6 +112,23 @@ Hash of additional options. Available options are:
|
|
112
112
|
* `:storage_class` – `:standard` (default) or `:reduced_redundancy`
|
113
113
|
* `:content_disposition`
|
114
114
|
|
115
|
+
### :path ###
|
116
|
+
Remember to specify a folder in a root of your bucket. If you don't , you'll be able to save without problems,
|
117
|
+
but S3 will respond with Access Denied on read.
|
118
|
+
|
119
|
+
Examples:
|
120
|
+
|
121
|
+
* **Bad** (you will get permission denied error)
|
122
|
+
* `:path => "/:style/:id/:filename"`
|
123
|
+
* `:path => "/images/:id/:filename"`
|
124
|
+
|
125
|
+
* **Good** (there is a root folder specified)
|
126
|
+
* `:path => "images/:style/:id/:filename"`
|
127
|
+
* `:path => ":style/:id/:filename"`
|
128
|
+
|
129
|
+
The main problem of the "Bad" case - it creates nameless folder in a root of a bucket which seems to be an issue when reading,
|
130
|
+
so make sure you don't put '/' in front of the path.
|
131
|
+
|
115
132
|
|
116
133
|
## How `paperclip-aws` creates urls? ##
|
117
134
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.6
|
data/paperclip-aws.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "paperclip-aws"
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Igor Alexandrov"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-03-12"
|
13
13
|
s.description = "'paperclip-aws' is a full featured storage module that supports all S3 locations (US, European and Tokio) without any additional hacking."
|
14
14
|
s.email = "igor.alexandrov@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -42,18 +42,18 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.specification_version = 3
|
43
43
|
|
44
44
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
|
-
s.add_runtime_dependency(%q<paperclip>, ["
|
45
|
+
s.add_runtime_dependency(%q<paperclip>, [">= 2.5.0"])
|
46
46
|
s.add_runtime_dependency(%q<aws-sdk>, [">= 1.2.0"])
|
47
47
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
48
48
|
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
49
49
|
else
|
50
|
-
s.add_dependency(%q<paperclip>, ["
|
50
|
+
s.add_dependency(%q<paperclip>, [">= 2.5.0"])
|
51
51
|
s.add_dependency(%q<aws-sdk>, [">= 1.2.0"])
|
52
52
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
53
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
54
54
|
end
|
55
55
|
else
|
56
|
-
s.add_dependency(%q<paperclip>, ["
|
56
|
+
s.add_dependency(%q<paperclip>, [">= 2.5.0"])
|
57
57
|
s.add_dependency(%q<aws-sdk>, [">= 1.2.0"])
|
58
58
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
59
59
|
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: paperclip
|
16
|
-
requirement: &
|
16
|
+
requirement: &70261288595240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.5.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70261288595240
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aws-sdk
|
27
|
-
requirement: &
|
27
|
+
requirement: &70261288594420 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70261288594420
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70261288593880 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70261288593880
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70261288593180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.6.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70261288593180
|
58
58
|
description: ! '''paperclip-aws'' is a full featured storage module that supports
|
59
59
|
all S3 locations (US, European and Tokio) without any additional hacking.'
|
60
60
|
email: igor.alexandrov@gmail.com
|
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash: -
|
96
|
+
hash: -3911196572892058364
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
none: false
|
99
99
|
requirements:
|