paperclip 2.7.0 → 2.7.1

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.

@@ -97,7 +97,7 @@ module Paperclip
97
97
  Paperclip.log("[DEPRECATION] :image_magick_path is deprecated and will be removed. Use :command_path instead")
98
98
  end
99
99
  command_path = options[:command_path] || options[:image_magick_path]
100
- Cocaine::CommandLine.path = ( Cocaine::CommandLine.path ? [Cocaine::CommandLine.path, command_path ].flatten : command_path )
100
+ Cocaine::CommandLine.path = [Cocaine::CommandLine.path, command_path].flatten.compact.uniq
101
101
  local_options = local_options.merge(:logger => logger) if logging? && (options[:log_command] || local_options[:log_command])
102
102
  Cocaine::CommandLine.new(cmd, arguments, local_options).run
103
103
  end
@@ -1,3 +1,3 @@
1
1
  module Paperclip
2
- VERSION = "2.7.0" unless defined? Paperclip::VERSION
2
+ VERSION = "2.7.1" unless defined? Paperclip::VERSION
3
3
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.add_development_dependency('appraisal', '~> 0.4.0')
30
30
  s.add_development_dependency('mocha')
31
31
  s.add_development_dependency('aws-sdk')
32
- s.add_development_dependency('sqlite3', '~> 1.3.4')
32
+ s.add_development_dependency('sqlite3', '~> 1.3.5')
33
33
  s.add_development_dependency('cucumber', '~> 1.1.0')
34
34
  s.add_development_dependency('aruba')
35
35
  s.add_development_dependency('capybara')
@@ -24,6 +24,14 @@ class PaperclipTest < Test::Unit::TestCase
24
24
  end
25
25
  end
26
26
 
27
+ should 'not raise errors when doing a lot of running' do
28
+ Paperclip.options[:command_path] = ["/usr/local/bin"] * 1024
29
+ Cocaine::CommandLine.path = "/something/else"
30
+ 100.times do |x|
31
+ Paperclip.run("echo", x.to_s)
32
+ end
33
+ end
34
+
27
35
  context "Calling Paperclip.run with a logger" do
28
36
  should "pass the defined logger if :log_command is set" do
29
37
  Paperclip.options[:log_command] = true
metadata CHANGED
@@ -1,283 +1,295 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: paperclip
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.7.1
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 7
9
- - 0
10
- version: 2.7.0
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
- date: 2012-02-24 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- type: :runtime
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 2
30
- - 3
31
- - 0
32
- version: 2.3.0
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
33
15
  name: activerecord
34
- version_requirements: *id001
35
- prerelease: false
36
- - !ruby/object:Gem::Dependency
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.0
37
22
  type: :runtime
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 7
44
- segments:
45
- - 2
46
- - 3
47
- - 2
48
- version: 2.3.2
49
- name: activesupport
50
- version_requirements: *id002
51
23
  prerelease: false
52
- - !ruby/object:Gem::Dependency
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.3.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.3.2
53
38
  type: :runtime
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 27
60
- segments:
61
- - 0
62
- - 0
63
- - 2
64
- version: 0.0.2
65
- name: cocaine
66
- version_requirements: *id003
67
39
  prerelease: false
68
- - !ruby/object:Gem::Dependency
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.3.2
46
+ - !ruby/object:Gem::Dependency
47
+ name: cocaine
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 0.0.2
69
54
  type: :runtime
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.2
62
+ - !ruby/object:Gem::Dependency
79
63
  name: mime-types
80
- version_requirements: *id004
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
81
71
  prerelease: false
82
- - !ruby/object:Gem::Dependency
83
- type: :development
84
- requirement: &id005 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
93
79
  name: shoulda
94
- version_requirements: *id005
95
- prerelease: false
96
- - !ruby/object:Gem::Dependency
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
97
86
  type: :development
98
- requirement: &id006 !ruby/object:Gem::Requirement
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
99
89
  none: false
100
- requirements:
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: appraisal
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
101
99
  - - ~>
102
- - !ruby/object:Gem::Version
103
- hash: 15
104
- segments:
105
- - 0
106
- - 4
107
- - 0
100
+ - !ruby/object:Gem::Version
108
101
  version: 0.4.0
109
- name: appraisal
110
- version_requirements: *id006
111
- prerelease: false
112
- - !ruby/object:Gem::Dependency
113
102
  type: :development
114
- requirement: &id007 !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
123
- name: mocha
124
- version_requirements: *id007
125
103
  prerelease: false
126
- - !ruby/object:Gem::Dependency
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 0.4.0
110
+ - !ruby/object:Gem::Dependency
111
+ name: mocha
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
127
118
  type: :development
128
- requirement: &id008 !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- hash: 3
134
- segments:
135
- - 0
136
- version: "0"
137
- name: aws-sdk
138
- version_requirements: *id008
139
119
  prerelease: false
140
- - !ruby/object:Gem::Dependency
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: aws-sdk
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
141
134
  type: :development
142
- requirement: &id009 !ruby/object:Gem::Requirement
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
143
137
  none: false
144
- requirements:
145
- - - ~>
146
- - !ruby/object:Gem::Version
147
- hash: 19
148
- segments:
149
- - 1
150
- - 3
151
- - 4
152
- version: 1.3.4
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
153
143
  name: sqlite3
154
- version_requirements: *id009
155
- prerelease: false
156
- - !ruby/object:Gem::Dependency
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 1.3.5
157
150
  type: :development
158
- requirement: &id010 !ruby/object:Gem::Requirement
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
159
153
  none: false
160
- requirements:
154
+ requirements:
161
155
  - - ~>
162
- - !ruby/object:Gem::Version
163
- hash: 19
164
- segments:
165
- - 1
166
- - 1
167
- - 0
168
- version: 1.1.0
156
+ - !ruby/object:Gem::Version
157
+ version: 1.3.5
158
+ - !ruby/object:Gem::Dependency
169
159
  name: cucumber
170
- version_requirements: *id010
171
- prerelease: false
172
- - !ruby/object:Gem::Dependency
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: 1.1.0
173
166
  type: :development
174
- requirement: &id011 !ruby/object:Gem::Requirement
175
- none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- hash: 3
180
- segments:
181
- - 0
182
- version: "0"
183
- name: aruba
184
- version_requirements: *id011
185
167
  prerelease: false
186
- - !ruby/object:Gem::Dependency
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 1.1.0
174
+ - !ruby/object:Gem::Dependency
175
+ name: aruba
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
187
182
  type: :development
188
- requirement: &id012 !ruby/object:Gem::Requirement
189
- none: false
190
- requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- hash: 3
194
- segments:
195
- - 0
196
- version: "0"
197
- name: capybara
198
- version_requirements: *id012
199
183
  prerelease: false
200
- - !ruby/object:Gem::Dependency
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: capybara
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
201
198
  type: :development
202
- requirement: &id013 !ruby/object:Gem::Requirement
203
- none: false
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- hash: 3
208
- segments:
209
- - 0
210
- version: "0"
211
- name: bundler
212
- version_requirements: *id013
213
199
  prerelease: false
214
- - !ruby/object:Gem::Dependency
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ - !ruby/object:Gem::Dependency
207
+ name: bundler
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
215
214
  type: :development
216
- requirement: &id014 !ruby/object:Gem::Requirement
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
217
  none: false
218
- requirements:
219
- - - ~>
220
- - !ruby/object:Gem::Version
221
- hash: 15
222
- segments:
223
- - 0
224
- - 2
225
- version: "0.2"
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
226
223
  name: cocaine
227
- version_requirements: *id014
228
- prerelease: false
229
- - !ruby/object:Gem::Dependency
224
+ requirement: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ~>
228
+ - !ruby/object:Gem::Version
229
+ version: '0.2'
230
230
  type: :development
231
- requirement: &id015 !ruby/object:Gem::Requirement
232
- none: false
233
- requirements:
234
- - - ">="
235
- - !ruby/object:Gem::Version
236
- hash: 3
237
- segments:
238
- - 0
239
- version: "0"
240
- name: fog
241
- version_requirements: *id015
242
231
  prerelease: false
243
- - !ruby/object:Gem::Dependency
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: '0.2'
238
+ - !ruby/object:Gem::Dependency
239
+ name: fog
240
+ requirement: !ruby/object:Gem::Requirement
241
+ none: false
242
+ requirements:
243
+ - - ! '>='
244
+ - !ruby/object:Gem::Version
245
+ version: '0'
244
246
  type: :development
245
- requirement: &id016 !ruby/object:Gem::Requirement
246
- none: false
247
- requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- hash: 3
251
- segments:
252
- - 0
253
- version: "0"
254
- name: rake
255
- version_requirements: *id016
256
247
  prerelease: false
257
- - !ruby/object:Gem::Dependency
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ - !ruby/object:Gem::Dependency
255
+ name: rake
256
+ requirement: !ruby/object:Gem::Requirement
257
+ none: false
258
+ requirements:
259
+ - - ! '>='
260
+ - !ruby/object:Gem::Version
261
+ version: '0'
258
262
  type: :development
259
- requirement: &id017 !ruby/object:Gem::Requirement
260
- none: false
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- hash: 3
265
- segments:
266
- - 0
267
- version: "0"
263
+ prerelease: false
264
+ version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ - !ruby/object:Gem::Dependency
268
271
  name: fakeweb
269
- version_requirements: *id017
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ! '>='
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
278
+ type: :development
270
279
  prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ! '>='
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
271
286
  description: Easy upload management for ActiveRecord
272
- email:
287
+ email:
273
288
  - jyurek@thoughtbot.com
274
289
  executables: []
275
-
276
290
  extensions: []
277
-
278
291
  extra_rdoc_files: []
279
-
280
- files:
292
+ files:
281
293
  - .gitignore
282
294
  - .travis.yml
283
295
  - Appraisals
@@ -386,36 +398,83 @@ files:
386
398
  - test/url_generator_test.rb
387
399
  homepage: https://github.com/thoughtbot/paperclip
388
400
  licenses: []
389
-
390
401
  post_install_message:
391
402
  rdoc_options: []
392
-
393
- require_paths:
403
+ require_paths:
394
404
  - lib
395
- required_ruby_version: !ruby/object:Gem::Requirement
405
+ required_ruby_version: !ruby/object:Gem::Requirement
396
406
  none: false
397
- requirements:
398
- - - ">="
399
- - !ruby/object:Gem::Version
400
- hash: 3
401
- segments:
402
- - 0
403
- version: "0"
404
- required_rubygems_version: !ruby/object:Gem::Requirement
407
+ requirements:
408
+ - - ! '>='
409
+ - !ruby/object:Gem::Version
410
+ version: '0'
411
+ required_rubygems_version: !ruby/object:Gem::Requirement
405
412
  none: false
406
- requirements:
407
- - - ">="
408
- - !ruby/object:Gem::Version
409
- hash: 3
410
- segments:
411
- - 0
412
- version: "0"
413
- requirements:
413
+ requirements:
414
+ - - ! '>='
415
+ - !ruby/object:Gem::Version
416
+ version: '0'
417
+ requirements:
414
418
  - ImageMagick
415
419
  rubyforge_project: paperclip
416
- rubygems_version: 1.8.17
420
+ rubygems_version: 1.8.24
417
421
  signing_key:
418
422
  specification_version: 3
419
423
  summary: File attachments as attributes for ActiveRecord
420
- test_files: []
421
-
424
+ test_files:
425
+ - features/basic_integration.feature
426
+ - features/rake_tasks.feature
427
+ - features/step_definitions/attachment_steps.rb
428
+ - features/step_definitions/html_steps.rb
429
+ - features/step_definitions/rails_steps.rb
430
+ - features/step_definitions/s3_steps.rb
431
+ - features/step_definitions/web_steps.rb
432
+ - features/support/env.rb
433
+ - features/support/fakeweb.rb
434
+ - features/support/fixtures/.boot_config.rb.swo
435
+ - features/support/fixtures/boot_config.txt
436
+ - features/support/fixtures/gemfile.txt
437
+ - features/support/fixtures/preinitializer.txt
438
+ - features/support/paths.rb
439
+ - features/support/rails.rb
440
+ - features/support/selectors.rb
441
+ - test/attachment_options_test.rb
442
+ - test/attachment_test.rb
443
+ - test/database.yml
444
+ - test/fixtures/12k.png
445
+ - test/fixtures/50x50.png
446
+ - test/fixtures/5k.png
447
+ - test/fixtures/animated.gif
448
+ - test/fixtures/bad.png
449
+ - test/fixtures/fog.yml
450
+ - test/fixtures/s3.yml
451
+ - test/fixtures/spaced file.png
452
+ - test/fixtures/text.txt
453
+ - test/fixtures/twopage.pdf
454
+ - test/fixtures/uppercase.PNG
455
+ - test/geometry_test.rb
456
+ - test/helper.rb
457
+ - test/integration_test.rb
458
+ - test/interpolations_test.rb
459
+ - test/iostream_test.rb
460
+ - test/matchers/have_attached_file_matcher_test.rb
461
+ - test/matchers/validate_attachment_content_type_matcher_test.rb
462
+ - test/matchers/validate_attachment_presence_matcher_test.rb
463
+ - test/matchers/validate_attachment_size_matcher_test.rb
464
+ - test/paperclip_missing_attachment_styles_test.rb
465
+ - test/paperclip_test.rb
466
+ - test/processor_test.rb
467
+ - test/schema_test.rb
468
+ - test/storage/filesystem_test.rb
469
+ - test/storage/fog_test.rb
470
+ - test/storage/s3_live_test.rb
471
+ - test/storage/s3_test.rb
472
+ - test/style_test.rb
473
+ - test/support/mock_attachment.rb
474
+ - test/support/mock_interpolator.rb
475
+ - test/support/mock_model.rb
476
+ - test/support/mock_url_generator_builder.rb
477
+ - test/thumbnail_test.rb
478
+ - test/upfile_test.rb
479
+ - test/url_generator_test.rb
480
+ has_rdoc: