dragonfly 1.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +1 -4
- data/History.md +17 -0
- data/README.md +6 -2
- data/Rakefile +1 -0
- data/dragonfly.gemspec +17 -1
- data/lib/dragonfly/app.rb +10 -1
- data/lib/dragonfly/file_data_store.rb +1 -1
- data/lib/dragonfly/image_magick/plugin.rb +3 -2
- data/lib/dragonfly/job.rb +5 -178
- data/lib/dragonfly/job/fetch.rb +19 -0
- data/lib/dragonfly/job/fetch_file.rb +27 -0
- data/lib/dragonfly/job/fetch_url.rb +75 -0
- data/lib/dragonfly/job/generate.rb +27 -0
- data/lib/dragonfly/job/process.rb +27 -0
- data/lib/dragonfly/job/step.rb +44 -0
- data/lib/dragonfly/model/attachment.rb +0 -2
- data/lib/dragonfly/model/class_methods.rb +5 -0
- data/lib/dragonfly/rails/images.rb +1 -0
- data/lib/dragonfly/response.rb +11 -2
- data/lib/dragonfly/routed_endpoint.rb +15 -5
- data/lib/dragonfly/serializer.rb +2 -2
- data/lib/dragonfly/shell.rb +28 -5
- data/lib/dragonfly/version.rb +1 -1
- data/spec/dragonfly/file_data_store_spec.rb +29 -32
- data/spec/dragonfly/job/fetch_file_spec.rb +26 -0
- data/spec/dragonfly/job/fetch_spec.rb +26 -0
- data/spec/dragonfly/job/fetch_url_spec.rb +123 -0
- data/spec/dragonfly/job/generate_spec.rb +28 -0
- data/spec/dragonfly/job/process_spec.rb +28 -0
- data/spec/dragonfly/job_endpoint_spec.rb +17 -0
- data/spec/dragonfly/job_spec.rb +0 -187
- data/spec/dragonfly/model/model_spec.rb +27 -12
- data/spec/dragonfly/routed_endpoint_spec.rb +69 -28
- data/spec/dragonfly/shell_spec.rb +2 -2
- data/spec/support/simple_matchers.rb +1 -1
- metadata +43 -16
@@ -11,13 +11,13 @@ describe Dragonfly::Shell do
|
|
11
11
|
it "should raise an error if the command isn't found" do
|
12
12
|
lambda{
|
13
13
|
shell.run "non-existent-command"
|
14
|
-
}.should raise_error(Dragonfly::Shell::CommandFailed
|
14
|
+
}.should raise_error(Dragonfly::Shell::CommandFailed)
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should raise an error if the command fails" do
|
18
18
|
lambda{
|
19
19
|
shell.run "ls -j"
|
20
|
-
}.should raise_error(Dragonfly::Shell::CommandFailed
|
20
|
+
}.should raise_error(Dragonfly::Shell::CommandFailed)
|
21
21
|
end
|
22
22
|
|
23
23
|
unless Dragonfly.running_on_windows?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dragonfly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -39,35 +39,35 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.5'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.5'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: webmock
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: activemodel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '>='
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- History.md
|
98
98
|
- LICENSE
|
99
99
|
- README.md
|
100
|
+
- Rakefile
|
100
101
|
- dev/grid.jpg
|
101
102
|
- dev/irbrc.rb
|
102
103
|
- dev/rails_template.rb
|
@@ -124,6 +125,12 @@ files:
|
|
124
125
|
- lib/dragonfly/image_magick/processors/encode.rb
|
125
126
|
- lib/dragonfly/image_magick/processors/thumb.rb
|
126
127
|
- lib/dragonfly/job.rb
|
128
|
+
- lib/dragonfly/job/fetch.rb
|
129
|
+
- lib/dragonfly/job/fetch_file.rb
|
130
|
+
- lib/dragonfly/job/fetch_url.rb
|
131
|
+
- lib/dragonfly/job/generate.rb
|
132
|
+
- lib/dragonfly/job/process.rb
|
133
|
+
- lib/dragonfly/job/step.rb
|
127
134
|
- lib/dragonfly/job_endpoint.rb
|
128
135
|
- lib/dragonfly/memory_data_store.rb
|
129
136
|
- lib/dragonfly/middleware.rb
|
@@ -133,6 +140,7 @@ files:
|
|
133
140
|
- lib/dragonfly/model/class_methods.rb
|
134
141
|
- lib/dragonfly/model/instance_methods.rb
|
135
142
|
- lib/dragonfly/model/validations.rb
|
143
|
+
- lib/dragonfly/rails/images.rb
|
136
144
|
- lib/dragonfly/railtie.rb
|
137
145
|
- lib/dragonfly/register.rb
|
138
146
|
- lib/dragonfly/response.rb
|
@@ -177,6 +185,11 @@ files:
|
|
177
185
|
- spec/dragonfly/image_magick/plugin_spec.rb
|
178
186
|
- spec/dragonfly/image_magick/processors/convert_spec.rb
|
179
187
|
- spec/dragonfly/image_magick/processors/thumb_spec.rb
|
188
|
+
- spec/dragonfly/job/fetch_file_spec.rb
|
189
|
+
- spec/dragonfly/job/fetch_spec.rb
|
190
|
+
- spec/dragonfly/job/fetch_url_spec.rb
|
191
|
+
- spec/dragonfly/job/generate_spec.rb
|
192
|
+
- spec/dragonfly/job/process_spec.rb
|
180
193
|
- spec/dragonfly/job_endpoint_spec.rb
|
181
194
|
- spec/dragonfly/job_spec.rb
|
182
195
|
- spec/dragonfly/memory_data_store_spec.rb
|
@@ -212,7 +225,17 @@ homepage: http://github.com/markevans/dragonfly
|
|
212
225
|
licenses:
|
213
226
|
- MIT
|
214
227
|
metadata: {}
|
215
|
-
post_install_message:
|
228
|
+
post_install_message: |
|
229
|
+
================================================================================
|
230
|
+
|
231
|
+
Please check the documentation at <http://markevans.github.io/dragonfly/>.
|
232
|
+
|
233
|
+
--------------------------------------------------------------------------------
|
234
|
+
|
235
|
+
DEPRECATED: dragonfly/rails/images is now deprecated.
|
236
|
+
Please refer to <http://markevans.github.io/dragonfly/rails/> for instructions to setup
|
237
|
+
with Rails
|
238
|
+
--------------------------------------------------------------------------------
|
216
239
|
rdoc_options: []
|
217
240
|
require_paths:
|
218
241
|
- lib
|
@@ -228,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
251
|
version: '0'
|
229
252
|
requirements: []
|
230
253
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.1.11
|
232
255
|
signing_key:
|
233
256
|
specification_version: 4
|
234
257
|
summary: Ideal gem for handling attachments in Rails, Sinatra and Rack applications.
|
@@ -250,6 +273,11 @@ test_files:
|
|
250
273
|
- spec/dragonfly/image_magick/plugin_spec.rb
|
251
274
|
- spec/dragonfly/image_magick/processors/convert_spec.rb
|
252
275
|
- spec/dragonfly/image_magick/processors/thumb_spec.rb
|
276
|
+
- spec/dragonfly/job/fetch_file_spec.rb
|
277
|
+
- spec/dragonfly/job/fetch_spec.rb
|
278
|
+
- spec/dragonfly/job/fetch_url_spec.rb
|
279
|
+
- spec/dragonfly/job/generate_spec.rb
|
280
|
+
- spec/dragonfly/job/process_spec.rb
|
253
281
|
- spec/dragonfly/job_endpoint_spec.rb
|
254
282
|
- spec/dragonfly/job_spec.rb
|
255
283
|
- spec/dragonfly/memory_data_store_spec.rb
|
@@ -280,4 +308,3 @@ test_files:
|
|
280
308
|
- spec/support/image_matchers.rb
|
281
309
|
- spec/support/model_helpers.rb
|
282
310
|
- spec/support/simple_matchers.rb
|
283
|
-
has_rdoc:
|