dragonfly 0.9.12 → 0.9.13

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of dragonfly might be problematic. Click here for more details.

@@ -59,16 +59,25 @@ describe Dragonfly::UrlMapper do
59
59
  end
60
60
 
61
61
  it "should not worry if params aren't given" do
62
- @url_mapper.url_for('job' => 'asdf', 'when' => 'now', 'then' => 'soon').should == '/media/asdf?when=now&then=soon'
62
+ @url_mapper.url_for('job' => 'asdf', 'when' => 'now', 'then' => 'soon').should match_url '/media/asdf?when=now&then=soon'
63
63
  end
64
64
 
65
65
  it "should call to_s on non-string values" do
66
66
  @url_mapper.url_for('job' => 'asdf', 'size' => 500).should == '/media/asdf-500'
67
67
  end
68
68
 
69
- it "should url-escape funny characters" do
69
+ it "should url-escape funny characters in the path" do
70
70
  @url_mapper.url_for('job' => 'a#c').should == '/media/a%23c'
71
71
  end
72
+
73
+ it "should url-escape funny characters in the query string" do
74
+ @url_mapper.url_for('bigjobs' => 'a#c').should == '/media?bigjobs=a%23c'
75
+ end
76
+
77
+ it "should url-escape the / character in a single segment" do
78
+ @url_mapper.url_for('job' => 'a/c').should == '/media/a%2Fc'
79
+ end
80
+
72
81
  end
73
82
 
74
83
  describe "params_for" do
@@ -117,7 +126,7 @@ describe Dragonfly::UrlMapper do
117
126
  '/media/asdf.egg' => {'job' => 'asdf', 'basename' => nil, 'format' => 'egg'},
118
127
  '/media/asdf/stuff/egg' => nil,
119
128
  '/media/asdf/stuff.dog.egg' => {'job' => 'asdf', 'basename' => 'stuff.dog', 'format' => 'egg'},
120
- '/media/asdf/s=2%20-.d.e' => {'job' => 'asdf', 'basename' => 's=2 -.d', 'format' => 'e'},
129
+ '/media/asdf/s%3D2+-.d.e' => {'job' => 'asdf', 'basename' => 's=2 -.d', 'format' => 'e'},
121
130
  '/media/asdf-40x40/stuff.egg' => nil
122
131
  }.each do |path, params|
123
132
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.12
4
+ version: 0.9.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-08 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &70263282010320 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,31 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70263282010320
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: multi_json
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '1.0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
25
46
  - !ruby/object:Gem::Dependency
26
47
  name: capybara
27
- requirement: &70263282008900 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
28
49
  none: false
29
50
  requirements:
30
51
  - - ! '>='
@@ -32,32 +53,47 @@ dependencies:
32
53
  version: '0'
33
54
  type: :development
34
55
  prerelease: false
35
- version_requirements: *70263282008900
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
36
62
  - !ruby/object:Gem::Dependency
37
63
  name: cucumber
38
- requirement: &70263282007600 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
39
65
  none: false
40
66
  requirements:
41
67
  - - ~>
42
68
  - !ruby/object:Gem::Version
43
- version: 0.10.0
69
+ version: 1.2.1
44
70
  type: :development
45
71
  prerelease: false
46
- version_requirements: *70263282007600
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.2.1
47
78
  - !ruby/object:Gem::Dependency
48
79
  name: cucumber-rails
49
- requirement: &70263282005720 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
50
81
  none: false
51
82
  requirements:
52
83
  - - ~>
53
84
  - !ruby/object:Gem::Version
54
- version: 0.5.2
85
+ version: 1.3.0
55
86
  type: :development
56
87
  prerelease: false
57
- version_requirements: *70263282005720
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.3.0
58
94
  - !ruby/object:Gem::Dependency
59
95
  name: database_cleaner
60
- requirement: &70263282019880 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
61
97
  none: false
62
98
  requirements:
63
99
  - - ! '>='
@@ -65,21 +101,31 @@ dependencies:
65
101
  version: '0'
66
102
  type: :development
67
103
  prerelease: false
68
- version_requirements: *70263282019880
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
69
110
  - !ruby/object:Gem::Dependency
70
111
  name: jeweler
71
- requirement: &70263282017980 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
72
113
  none: false
73
114
  requirements:
74
- - - ~>
115
+ - - ! '>='
75
116
  - !ruby/object:Gem::Version
76
117
  version: 1.5.2
77
118
  type: :development
78
119
  prerelease: false
79
- version_requirements: *70263282017980
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 1.5.2
80
126
  - !ruby/object:Gem::Dependency
81
127
  name: fog
82
- requirement: &70263282016740 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
83
129
  none: false
84
130
  requirements:
85
131
  - - ! '>='
@@ -87,10 +133,15 @@ dependencies:
87
133
  version: '0'
88
134
  type: :development
89
135
  prerelease: false
90
- version_requirements: *70263282016740
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
91
142
  - !ruby/object:Gem::Dependency
92
143
  name: github-markup
93
- requirement: &70263282015880 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
94
145
  none: false
95
146
  requirements:
96
147
  - - ! '>='
@@ -98,10 +149,15 @@ dependencies:
98
149
  version: '0'
99
150
  type: :development
100
151
  prerelease: false
101
- version_requirements: *70263282015880
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
102
158
  - !ruby/object:Gem::Dependency
103
159
  name: mongo
104
- requirement: &70263282014860 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
105
161
  none: false
106
162
  requirements:
107
163
  - - ! '>='
@@ -109,10 +165,15 @@ dependencies:
109
165
  version: '0'
110
166
  type: :development
111
167
  prerelease: false
112
- version_requirements: *70263282014860
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
113
174
  - !ruby/object:Gem::Dependency
114
175
  name: couchrest
115
- requirement: &70263282013980 !ruby/object:Gem::Requirement
176
+ requirement: !ruby/object:Gem::Requirement
116
177
  none: false
117
178
  requirements:
118
179
  - - ~>
@@ -120,10 +181,15 @@ dependencies:
120
181
  version: '1.0'
121
182
  type: :development
122
183
  prerelease: false
123
- version_requirements: *70263282013980
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ version: '1.0'
124
190
  - !ruby/object:Gem::Dependency
125
191
  name: rack-cache
126
- requirement: &70263282012540 !ruby/object:Gem::Requirement
192
+ requirement: !ruby/object:Gem::Requirement
127
193
  none: false
128
194
  requirements:
129
195
  - - ! '>='
@@ -131,32 +197,31 @@ dependencies:
131
197
  version: '0'
132
198
  type: :development
133
199
  prerelease: false
134
- version_requirements: *70263282012540
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
135
206
  - !ruby/object:Gem::Dependency
136
207
  name: rails
137
- requirement: &70263282027520 !ruby/object:Gem::Requirement
208
+ requirement: !ruby/object:Gem::Requirement
138
209
  none: false
139
210
  requirements:
140
211
  - - ~>
141
212
  - !ruby/object:Gem::Version
142
- version: 3.1.0
213
+ version: 3.2.0
143
214
  type: :development
144
215
  prerelease: false
145
- version_requirements: *70263282027520
146
- - !ruby/object:Gem::Dependency
147
- name: redcarpet
148
- requirement: &70263282026180 !ruby/object:Gem::Requirement
216
+ version_requirements: !ruby/object:Gem::Requirement
149
217
  none: false
150
218
  requirements:
151
219
  - - ~>
152
220
  - !ruby/object:Gem::Version
153
- version: '1.0'
154
- type: :development
155
- prerelease: false
156
- version_requirements: *70263282026180
221
+ version: 3.2.0
157
222
  - !ruby/object:Gem::Dependency
158
223
  name: rspec
159
- requirement: &70263282025380 !ruby/object:Gem::Requirement
224
+ requirement: !ruby/object:Gem::Requirement
160
225
  none: false
161
226
  requirements:
162
227
  - - ~>
@@ -164,10 +229,15 @@ dependencies:
164
229
  version: '2.5'
165
230
  type: :development
166
231
  prerelease: false
167
- version_requirements: *70263282025380
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - ~>
236
+ - !ruby/object:Gem::Version
237
+ version: '2.5'
168
238
  - !ruby/object:Gem::Dependency
169
239
  name: webmock
170
- requirement: &70263282024260 !ruby/object:Gem::Requirement
240
+ requirement: !ruby/object:Gem::Requirement
171
241
  none: false
172
242
  requirements:
173
243
  - - ! '>='
@@ -175,10 +245,15 @@ dependencies:
175
245
  version: '0'
176
246
  type: :development
177
247
  prerelease: false
178
- version_requirements: *70263282024260
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
179
254
  - !ruby/object:Gem::Dependency
180
255
  name: yard
181
- requirement: &70263282023460 !ruby/object:Gem::Requirement
256
+ requirement: !ruby/object:Gem::Requirement
182
257
  none: false
183
258
  requirements:
184
259
  - - ! '>='
@@ -186,10 +261,31 @@ dependencies:
186
261
  version: '0'
187
262
  type: :development
188
263
  prerelease: false
189
- version_requirements: *70263282023460
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
271
+ name: redcarpet
272
+ requirement: !ruby/object:Gem::Requirement
273
+ none: false
274
+ requirements:
275
+ - - ~>
276
+ - !ruby/object:Gem::Version
277
+ version: '1.0'
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ~>
284
+ - !ruby/object:Gem::Version
285
+ version: '1.0'
190
286
  - !ruby/object:Gem::Dependency
191
287
  name: bluecloth
192
- requirement: &70263282022780 !ruby/object:Gem::Requirement
288
+ requirement: !ruby/object:Gem::Requirement
193
289
  none: false
194
290
  requirements:
195
291
  - - ! '>='
@@ -197,10 +293,15 @@ dependencies:
197
293
  version: '0'
198
294
  type: :development
199
295
  prerelease: false
200
- version_requirements: *70263282022780
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ! '>='
300
+ - !ruby/object:Gem::Version
301
+ version: '0'
201
302
  - !ruby/object:Gem::Dependency
202
303
  name: bson_ext
203
- requirement: &70263282021920 !ruby/object:Gem::Requirement
304
+ requirement: !ruby/object:Gem::Requirement
204
305
  none: false
205
306
  requirements:
206
307
  - - ! '>='
@@ -208,10 +309,15 @@ dependencies:
208
309
  version: '0'
209
310
  type: :development
210
311
  prerelease: false
211
- version_requirements: *70263282021920
312
+ version_requirements: !ruby/object:Gem::Requirement
313
+ none: false
314
+ requirements:
315
+ - - ! '>='
316
+ - !ruby/object:Gem::Version
317
+ version: '0'
212
318
  - !ruby/object:Gem::Dependency
213
- name: sqlite3-ruby
214
- requirement: &70263282020720 !ruby/object:Gem::Requirement
319
+ name: sqlite3
320
+ requirement: !ruby/object:Gem::Requirement
215
321
  none: false
216
322
  requirements:
217
323
  - - ! '>='
@@ -219,7 +325,12 @@ dependencies:
219
325
  version: '0'
220
326
  type: :development
221
327
  prerelease: false
222
- version_requirements: *70263282020720
328
+ version_requirements: !ruby/object:Gem::Requirement
329
+ none: false
330
+ requirements:
331
+ - - ! '>='
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
223
334
  description: ! "Dragonfly is a framework that enables on-the-fly processing for any
224
335
  content type.\n It is especially suited to image handling. Its uses range from
225
336
  image thumbnails to standard attachments to on-demand text generation."
@@ -278,6 +389,7 @@ files:
278
389
  - fixtures/rails/files/features/manage_album_images.feature
279
390
  - fixtures/rails/files/features/step_definitions/helper_steps.rb
280
391
  - fixtures/rails/files/features/step_definitions/image_steps.rb
392
+ - fixtures/rails/files/features/step_definitions/web_steps.rb
281
393
  - fixtures/rails/files/features/support/paths.rb
282
394
  - fixtures/rails/files/features/text_images.feature
283
395
  - fixtures/rails/template.rb
@@ -339,6 +451,7 @@ files:
339
451
  - lib/dragonfly/temp_object.rb
340
452
  - lib/dragonfly/url_attributes.rb
341
453
  - lib/dragonfly/url_mapper.rb
454
+ - lib/dragonfly/utils.rb
342
455
  - samples/DSC02119.JPG
343
456
  - samples/a.jp2
344
457
  - samples/beach.jpg
@@ -416,7 +529,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
416
529
  version: '0'
417
530
  segments:
418
531
  - 0
419
- hash: 4546368991893979595
532
+ hash: -2307100787498819433
420
533
  required_rubygems_version: !ruby/object:Gem::Requirement
421
534
  none: false
422
535
  requirements:
@@ -425,53 +538,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
425
538
  version: '0'
426
539
  requirements: []
427
540
  rubyforge_project:
428
- rubygems_version: 1.8.11
541
+ rubygems_version: 1.8.24
429
542
  signing_key:
430
543
  specification_version: 3
431
544
  summary: Ideal gem for handling attachments in Rails, Sinatra and Rack applications.
432
- test_files:
433
- - spec/dragonfly/active_model_extensions/model_spec.rb
434
- - spec/dragonfly/active_model_extensions/spec_helper.rb
435
- - spec/dragonfly/analyser_spec.rb
436
- - spec/dragonfly/analysis/file_command_analyser_spec.rb
437
- - spec/dragonfly/app_spec.rb
438
- - spec/dragonfly/configurable_spec.rb
439
- - spec/dragonfly/cookie_monster_spec.rb
440
- - spec/dragonfly/core_ext/array_spec.rb
441
- - spec/dragonfly/core_ext/hash_spec.rb
442
- - spec/dragonfly/data_storage/couch_data_store_spec.rb
443
- - spec/dragonfly/data_storage/file_data_store_spec.rb
444
- - spec/dragonfly/data_storage/mongo_data_store_spec.rb
445
- - spec/dragonfly/data_storage/s3_data_store_spec.rb
446
- - spec/dragonfly/data_storage/shared_data_store_examples.rb
447
- - spec/dragonfly/function_manager_spec.rb
448
- - spec/dragonfly/has_filename_spec.rb
449
- - spec/dragonfly/hash_with_css_style_keys_spec.rb
450
- - spec/dragonfly/image_magick/analyser_spec.rb
451
- - spec/dragonfly/image_magick/encoder_spec.rb
452
- - spec/dragonfly/image_magick/generator_spec.rb
453
- - spec/dragonfly/image_magick/processor_spec.rb
454
- - spec/dragonfly/job_builder_spec.rb
455
- - spec/dragonfly/job_definitions_spec.rb
456
- - spec/dragonfly/job_endpoint_spec.rb
457
- - spec/dragonfly/job_spec.rb
458
- - spec/dragonfly/loggable_spec.rb
459
- - spec/dragonfly/middleware_spec.rb
460
- - spec/dragonfly/routed_endpoint_spec.rb
461
- - spec/dragonfly/serializer_spec.rb
462
- - spec/dragonfly/server_spec.rb
463
- - spec/dragonfly/shell_spec.rb
464
- - spec/dragonfly/simple_cache_spec.rb
465
- - spec/dragonfly/temp_object_spec.rb
466
- - spec/dragonfly/url_attributes.rb
467
- - spec/dragonfly/url_mapper_spec.rb
468
- - spec/functional/deprecations_spec.rb
469
- - spec/functional/image_magick_app_spec.rb
470
- - spec/functional/model_urls_spec.rb
471
- - spec/functional/remote_on_the_fly_spec.rb
472
- - spec/functional/shell_commands_spec.rb
473
- - spec/functional/to_response_spec.rb
474
- - spec/spec_helper.rb
475
- - spec/support/argument_matchers.rb
476
- - spec/support/image_matchers.rb
477
- - spec/support/simple_matchers.rb
545
+ test_files: []