dragonfly 0.9.5 → 0.9.8
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.
- data/Gemfile +1 -2
- data/History.md +29 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/dragonfly.gemspec +15 -14
- data/extra_docs/DataStorage.md +5 -2
- data/extra_docs/Rails3.md +6 -4
- data/features/steps/rails_steps.rb +18 -6
- data/features/support/setup.rb +10 -1
- data/fixtures/rails/files/features/step_definitions/image_steps.rb +1 -1
- data/lib/dragonfly.rb +4 -0
- data/lib/dragonfly/analysis/file_command_analyser.rb +2 -1
- data/lib/dragonfly/data_storage/couch_data_store.rb +1 -1
- data/lib/dragonfly/data_storage/mongo_data_store.rb +4 -2
- data/lib/dragonfly/data_storage/s3data_store.rb +5 -1
- data/lib/dragonfly/image_magick/generator.rb +2 -2
- data/lib/dragonfly/image_magick/processor.rb +2 -2
- data/lib/dragonfly/image_magick/utils.rb +3 -25
- data/lib/dragonfly/rails/images.rb +17 -12
- data/lib/dragonfly/railtie.rb +1 -1
- data/lib/dragonfly/shell.rb +44 -0
- data/lib/dragonfly/temp_object.rb +13 -6
- data/spec/dragonfly/analysis/file_command_analyser_spec.rb +1 -0
- data/spec/dragonfly/cookie_monster_spec.rb +4 -2
- data/spec/dragonfly/data_storage/file_data_store_spec.rb +1 -1
- data/spec/dragonfly/data_storage/mongo_data_store_spec.rb +23 -8
- data/spec/dragonfly/image_magick/generator_spec.rb +0 -5
- data/spec/dragonfly/job_spec.rb +5 -1
- data/spec/dragonfly/shell_spec.rb +34 -0
- data/spec/dragonfly/temp_object_spec.rb +44 -12
- data/spec/functional/image_magick_app_spec.rb +1 -1
- data/spec/functional/remote_on_the_fly_spec.rb +6 -6
- data/spec/functional/shell_commands_spec.rb +23 -0
- data/spec/functional/to_response_spec.rb +1 -1
- data/spec/spec_helper.rb +6 -3
- data/spec/support/image_matchers.rb +1 -0
- data/tmp/.gitignore +2 -0
- metadata +71 -85
- data/spec/dragonfly/image_magick/utils_spec.rb +0 -18
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Dragonfly::ImageMagick::Utils do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
@obj = Object.new
|
7
|
-
@obj.extend(Dragonfly::ImageMagick::Utils)
|
8
|
-
end
|
9
|
-
|
10
|
-
it "should raise an error if the identify command isn't found" do
|
11
|
-
suppressing_stderr do
|
12
|
-
lambda{
|
13
|
-
@obj.send(:run, "non-existent-command")
|
14
|
-
}.should raise_error(Dragonfly::ImageMagick::Utils::ShellCommandFailed)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|