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.

Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -4
  4. data/History.md +17 -0
  5. data/README.md +6 -2
  6. data/Rakefile +1 -0
  7. data/dragonfly.gemspec +17 -1
  8. data/lib/dragonfly/app.rb +10 -1
  9. data/lib/dragonfly/file_data_store.rb +1 -1
  10. data/lib/dragonfly/image_magick/plugin.rb +3 -2
  11. data/lib/dragonfly/job.rb +5 -178
  12. data/lib/dragonfly/job/fetch.rb +19 -0
  13. data/lib/dragonfly/job/fetch_file.rb +27 -0
  14. data/lib/dragonfly/job/fetch_url.rb +75 -0
  15. data/lib/dragonfly/job/generate.rb +27 -0
  16. data/lib/dragonfly/job/process.rb +27 -0
  17. data/lib/dragonfly/job/step.rb +44 -0
  18. data/lib/dragonfly/model/attachment.rb +0 -2
  19. data/lib/dragonfly/model/class_methods.rb +5 -0
  20. data/lib/dragonfly/rails/images.rb +1 -0
  21. data/lib/dragonfly/response.rb +11 -2
  22. data/lib/dragonfly/routed_endpoint.rb +15 -5
  23. data/lib/dragonfly/serializer.rb +2 -2
  24. data/lib/dragonfly/shell.rb +28 -5
  25. data/lib/dragonfly/version.rb +1 -1
  26. data/spec/dragonfly/file_data_store_spec.rb +29 -32
  27. data/spec/dragonfly/job/fetch_file_spec.rb +26 -0
  28. data/spec/dragonfly/job/fetch_spec.rb +26 -0
  29. data/spec/dragonfly/job/fetch_url_spec.rb +123 -0
  30. data/spec/dragonfly/job/generate_spec.rb +28 -0
  31. data/spec/dragonfly/job/process_spec.rb +28 -0
  32. data/spec/dragonfly/job_endpoint_spec.rb +17 -0
  33. data/spec/dragonfly/job_spec.rb +0 -187
  34. data/spec/dragonfly/model/model_spec.rb +27 -12
  35. data/spec/dragonfly/routed_endpoint_spec.rb +69 -28
  36. data/spec/dragonfly/shell_spec.rb +2 -2
  37. data/spec/support/simple_matchers.rb +1 -1
  38. 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, /not found/)
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, /option/)
20
+ }.should raise_error(Dragonfly::Shell::CommandFailed)
21
21
  end
22
22
 
23
23
  unless Dragonfly.running_on_windows?
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  RSpec::Matchers.define :be_an_empty_directory do
11
11
  match do |given|
12
- Dir.entries(given) == ['.','..']
12
+ !!ENV['TRAVIS'] || (Dir.entries(given) == ['.','..'])
13
13
  end
14
14
  end
15
15
 
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: '1.0'
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-24 00:00:00.000000000 Z
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: activemodel
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
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: '0'
54
+ version: '2.5'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: webmock
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '2.5'
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: '2.5'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: webmock
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.0.0
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: