paperclip 2.4.2 → 2.4.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of paperclip might be problematic. Click here for more details.
- data/Rakefile +1 -1
- data/lib/paperclip.rb +5 -2
- data/lib/paperclip/attachment.rb +38 -56
- data/lib/paperclip/geometry.rb +6 -4
- data/lib/paperclip/missing_attachment_styles.rb +2 -1
- data/lib/paperclip/options.rb +78 -0
- data/lib/paperclip/storage/fog.rb +21 -15
- data/lib/paperclip/storage/s3.rb +28 -25
- data/lib/paperclip/style.rb +3 -3
- data/lib/paperclip/version.rb +1 -1
- data/test/attachment_test.rb +16 -29
- data/test/fog_test.rb +4 -4
- data/test/geometry_test.rb +1 -1
- data/test/helper.rb +1 -0
- data/test/options_test.rb +68 -0
- data/test/paperclip_missing_attachment_styles_test.rb +1 -1
- data/test/storage/s3_test.rb +12 -4
- data/test/style_test.rb +22 -28
- metadata +111 -164
metadata
CHANGED
@@ -1,191 +1,144 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.4.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 4
|
9
|
-
- 2
|
10
|
-
version: 2.4.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jon Yurek
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2011-10-05 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activerecord
|
16
|
+
requirement: &70187246781180 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 3
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 3
|
32
|
-
- 0
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 2.3.0
|
34
|
-
version_requirements: *id001
|
35
|
-
name: activerecord
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
22
|
type: :runtime
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: *70187246781180
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
requirement: &70187246780680 !ruby/object:Gem::Requirement
|
40
28
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 7
|
45
|
-
segments:
|
46
|
-
- 2
|
47
|
-
- 3
|
48
|
-
- 2
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
49
32
|
version: 2.3.2
|
50
|
-
version_requirements: *id002
|
51
|
-
name: activesupport
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
33
|
type: :runtime
|
54
34
|
prerelease: false
|
55
|
-
|
35
|
+
version_requirements: *70187246780680
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: cocaine
|
38
|
+
requirement: &70187246780220 !ruby/object:Gem::Requirement
|
56
39
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
hash: 27
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
- 0
|
64
|
-
- 2
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
65
43
|
version: 0.0.2
|
66
|
-
version_requirements: *id003
|
67
|
-
name: cocaine
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
44
|
type: :runtime
|
70
45
|
prerelease: false
|
71
|
-
|
72
|
-
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
hash: 3
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
80
|
-
version_requirements: *id004
|
46
|
+
version_requirements: *70187246780220
|
47
|
+
- !ruby/object:Gem::Dependency
|
81
48
|
name: mime-types
|
82
|
-
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
49
|
+
requirement: &70187246779840 !ruby/object:Gem::Requirement
|
86
50
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70187246779840
|
58
|
+
- !ruby/object:Gem::Dependency
|
95
59
|
name: shoulda
|
96
|
-
|
60
|
+
requirement: &70187246779380 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
97
66
|
type: :development
|
98
67
|
prerelease: false
|
99
|
-
|
100
|
-
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
hash: 3
|
105
|
-
segments:
|
106
|
-
- 0
|
107
|
-
version: "0"
|
108
|
-
version_requirements: *id006
|
68
|
+
version_requirements: *70187246779380
|
69
|
+
- !ruby/object:Gem::Dependency
|
109
70
|
name: appraisal
|
110
|
-
|
71
|
+
requirement: &70187246778960 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
111
77
|
type: :development
|
112
78
|
prerelease: false
|
113
|
-
|
114
|
-
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
hash: 3
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
122
|
-
version_requirements: *id007
|
79
|
+
version_requirements: *70187246778960
|
80
|
+
- !ruby/object:Gem::Dependency
|
123
81
|
name: mocha
|
124
|
-
|
82
|
+
requirement: &70187246778540 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
125
88
|
type: :development
|
126
89
|
prerelease: false
|
127
|
-
|
128
|
-
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
hash: 3
|
133
|
-
segments:
|
134
|
-
- 0
|
135
|
-
version: "0"
|
136
|
-
version_requirements: *id008
|
90
|
+
version_requirements: *70187246778540
|
91
|
+
- !ruby/object:Gem::Dependency
|
137
92
|
name: aws-s3
|
138
|
-
|
93
|
+
requirement: &70187246778120 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
139
99
|
type: :development
|
140
100
|
prerelease: false
|
141
|
-
|
142
|
-
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
hash: 3
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
version: "0"
|
150
|
-
version_requirements: *id009
|
101
|
+
version_requirements: *70187246778120
|
102
|
+
- !ruby/object:Gem::Dependency
|
151
103
|
name: sqlite3
|
152
|
-
|
104
|
+
requirement: &70187246777700 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
153
110
|
type: :development
|
154
111
|
prerelease: false
|
155
|
-
|
156
|
-
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
hash: 3
|
161
|
-
segments:
|
162
|
-
- 0
|
163
|
-
version: "0"
|
164
|
-
version_requirements: *id010
|
112
|
+
version_requirements: *70187246777700
|
113
|
+
- !ruby/object:Gem::Dependency
|
165
114
|
name: cucumber
|
166
|
-
|
115
|
+
requirement: &70187246797740 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
167
121
|
type: :development
|
168
122
|
prerelease: false
|
169
|
-
|
170
|
-
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
hash: 3
|
175
|
-
segments:
|
176
|
-
- 0
|
177
|
-
version: "0"
|
178
|
-
version_requirements: *id011
|
123
|
+
version_requirements: *70187246797740
|
124
|
+
- !ruby/object:Gem::Dependency
|
179
125
|
name: capybara
|
126
|
+
requirement: &70187246797320 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *70187246797320
|
180
135
|
description: Easy upload management for ActiveRecord
|
181
136
|
email: jyurek@thoughtbot.com
|
182
137
|
executables: []
|
183
|
-
|
184
138
|
extensions: []
|
185
|
-
|
186
|
-
extra_rdoc_files:
|
139
|
+
extra_rdoc_files:
|
187
140
|
- README.md
|
188
|
-
files:
|
141
|
+
files:
|
189
142
|
- README.md
|
190
143
|
- LICENSE
|
191
144
|
- Rakefile
|
@@ -204,6 +157,7 @@ files:
|
|
204
157
|
- lib/paperclip/matchers/validate_attachment_size_matcher.rb
|
205
158
|
- lib/paperclip/matchers.rb
|
206
159
|
- lib/paperclip/missing_attachment_styles.rb
|
160
|
+
- lib/paperclip/options.rb
|
207
161
|
- lib/paperclip/processor.rb
|
208
162
|
- lib/paperclip/railtie.rb
|
209
163
|
- lib/paperclip/storage/filesystem.rb
|
@@ -239,6 +193,7 @@ files:
|
|
239
193
|
- test/matchers/validate_attachment_content_type_matcher_test.rb
|
240
194
|
- test/matchers/validate_attachment_presence_matcher_test.rb
|
241
195
|
- test/matchers/validate_attachment_size_matcher_test.rb
|
196
|
+
- test/options_test.rb
|
242
197
|
- test/paperclip_missing_attachment_styles_test.rb
|
243
198
|
- test/paperclip_test.rb
|
244
199
|
- test/processor_test.rb
|
@@ -255,32 +210,25 @@ files:
|
|
255
210
|
- shoulda_macros/paperclip.rb
|
256
211
|
homepage: https://github.com/thoughtbot/paperclip
|
257
212
|
licenses: []
|
258
|
-
|
259
213
|
post_install_message:
|
260
|
-
rdoc_options:
|
214
|
+
rdoc_options:
|
261
215
|
- --line-numbers
|
262
216
|
- --inline-source
|
263
|
-
require_paths:
|
217
|
+
require_paths:
|
264
218
|
- lib
|
265
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
219
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
266
220
|
none: false
|
267
|
-
requirements:
|
268
|
-
- -
|
269
|
-
- !ruby/object:Gem::Version
|
270
|
-
|
271
|
-
|
272
|
-
- 0
|
273
|
-
version: "0"
|
274
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
|
+
requirements:
|
222
|
+
- - ! '>='
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: '0'
|
225
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
226
|
none: false
|
276
|
-
requirements:
|
277
|
-
- -
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
|
280
|
-
|
281
|
-
- 0
|
282
|
-
version: "0"
|
283
|
-
requirements:
|
227
|
+
requirements:
|
228
|
+
- - ! '>='
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
requirements:
|
284
232
|
- ImageMagick
|
285
233
|
rubyforge_project: paperclip
|
286
234
|
rubygems_version: 1.8.10
|
@@ -288,4 +236,3 @@ signing_key:
|
|
288
236
|
specification_version: 3
|
289
237
|
summary: File attachments as attributes for ActiveRecord
|
290
238
|
test_files: []
|
291
|
-
|