dragonfly 0.6.2 → 0.7.0
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/.gitignore +2 -0
- data/.specopts +2 -0
- data/.yardopts +11 -5
- data/Gemfile +22 -0
- data/Gemfile.rails.2.3.5 +13 -0
- data/History.md +49 -0
- data/README.md +18 -28
- data/Rakefile +24 -36
- data/VERSION +1 -1
- data/config.ru +4 -1
- data/dragonfly.gemspec +85 -99
- data/extra_docs/Analysers.md +66 -30
- data/extra_docs/Caching.md +22 -0
- data/extra_docs/Configuration.md +116 -0
- data/extra_docs/DataStorage.md +114 -14
- data/extra_docs/Encoding.md +62 -37
- data/extra_docs/GeneralUsage.md +118 -0
- data/extra_docs/Generators.md +92 -0
- data/extra_docs/Heroku.md +51 -0
- data/extra_docs/Index.md +8 -9
- data/extra_docs/MimeTypes.md +18 -17
- data/extra_docs/Models.md +251 -0
- data/extra_docs/Processing.md +94 -70
- data/extra_docs/Rack.md +53 -0
- data/extra_docs/Rails2.md +44 -0
- data/extra_docs/Rails3.md +51 -0
- data/extra_docs/Sinatra.md +21 -0
- data/extra_docs/URLs.md +114 -0
- data/features/images.feature +6 -7
- data/features/no_processing.feature +0 -6
- data/features/rails_2.3.5.feature +1 -1
- data/features/rails_3.0.0.rc.feature +8 -0
- data/features/steps/dragonfly_steps.rb +14 -12
- data/features/steps/rails_steps.rb +20 -9
- data/features/support/env.rb +10 -11
- data/fixtures/files/app/views/albums/new.html.erb +4 -4
- data/fixtures/files/app/views/albums/show.html.erb +1 -1
- data/fixtures/files/features/manage_album_images.feature +1 -1
- data/fixtures/files/features/step_definitions/{album_steps.rb → image_steps.rb} +4 -3
- data/fixtures/files/features/support/paths.rb +2 -0
- data/fixtures/files/features/text_images.feature +7 -0
- data/fixtures/rails_3.0.0.rc/template.rb +21 -0
- data/irbrc.rb +2 -1
- data/lib/dragonfly.rb +4 -16
- data/lib/dragonfly/{active_record_extensions.rb → active_model_extensions.rb} +1 -1
- data/lib/dragonfly/active_model_extensions/attachment.rb +146 -0
- data/lib/dragonfly/{active_record_extensions → active_model_extensions}/class_methods.rb +5 -6
- data/lib/dragonfly/{active_record_extensions → active_model_extensions}/instance_methods.rb +1 -1
- data/lib/dragonfly/{active_record_extensions → active_model_extensions}/validations.rb +5 -9
- data/lib/dragonfly/analyser.rb +59 -0
- data/lib/dragonfly/analysis/file_command_analyser.rb +1 -1
- data/lib/dragonfly/analysis/r_magick_analyser.rb +46 -31
- data/lib/dragonfly/app.rb +138 -173
- data/lib/dragonfly/config/heroku.rb +19 -0
- data/lib/dragonfly/config/r_magick.rb +37 -0
- data/lib/dragonfly/config/{rails_defaults.rb → rails.rb} +6 -7
- data/lib/dragonfly/configurable.rb +30 -27
- data/lib/dragonfly/core_ext/object.rb +1 -1
- data/lib/dragonfly/data_storage/file_data_store.rb +59 -26
- data/lib/dragonfly/data_storage/mongo_data_store.rb +65 -0
- data/lib/dragonfly/data_storage/s3data_store.rb +31 -12
- data/lib/dragonfly/encoder.rb +13 -0
- data/lib/dragonfly/encoding/r_magick_encoder.rb +10 -19
- data/lib/dragonfly/endpoint.rb +43 -0
- data/lib/dragonfly/function_manager.rb +65 -0
- data/lib/dragonfly/{processing/r_magick_text_processor.rb → generation/r_magick_generator.rb} +25 -11
- data/lib/dragonfly/generator.rb +9 -0
- data/lib/dragonfly/job.rb +290 -0
- data/lib/dragonfly/job_builder.rb +39 -0
- data/lib/dragonfly/job_definitions.rb +26 -0
- data/lib/dragonfly/job_endpoint.rb +17 -0
- data/lib/dragonfly/loggable.rb +28 -0
- data/lib/dragonfly/middleware.rb +21 -14
- data/lib/dragonfly/processing/r_magick_processor.rb +71 -48
- data/lib/dragonfly/processor.rb +9 -0
- data/lib/dragonfly/r_magick_utils.rb +24 -0
- data/lib/dragonfly/rails/images.rb +10 -7
- data/lib/dragonfly/routed_endpoint.rb +42 -0
- data/lib/dragonfly/serializer.rb +32 -0
- data/lib/dragonfly/simple_cache.rb +23 -0
- data/lib/dragonfly/simple_endpoint.rb +64 -0
- data/lib/dragonfly/temp_object.rb +77 -45
- data/spec/argument_matchers.rb +7 -17
- data/spec/dragonfly/active_model_extensions/active_model_setup.rb +97 -0
- data/spec/dragonfly/active_model_extensions/active_record_setup.rb +85 -0
- data/spec/dragonfly/{active_record_extensions → active_model_extensions}/model_spec.rb +282 -244
- data/spec/dragonfly/active_model_extensions/spec_helper.rb +11 -0
- data/spec/dragonfly/analyser_spec.rb +123 -0
- data/spec/dragonfly/analysis/file_command_analyser_spec.rb +2 -2
- data/spec/dragonfly/analysis/r_magick_analyser_spec.rb +10 -1
- data/spec/dragonfly/app_spec.rb +175 -69
- data/spec/dragonfly/configurable_spec.rb +14 -0
- data/spec/dragonfly/data_storage/data_store_spec.rb +36 -9
- data/spec/dragonfly/data_storage/file_data_store_spec.rb +61 -38
- data/spec/dragonfly/data_storage/mongo_data_store_spec.rb +18 -0
- data/spec/dragonfly/data_storage/s3_data_store_spec.rb +34 -39
- data/spec/dragonfly/deprecation_spec.rb +20 -0
- data/spec/dragonfly/function_manager_spec.rb +154 -0
- data/spec/dragonfly/generation/r_magick_generator_spec.rb +119 -0
- data/spec/dragonfly/job_builder_spec.rb +37 -0
- data/spec/dragonfly/job_definitions_spec.rb +35 -0
- data/spec/dragonfly/job_endpoint_spec.rb +66 -0
- data/spec/dragonfly/job_spec.rb +605 -0
- data/spec/dragonfly/loggable_spec.rb +80 -0
- data/spec/dragonfly/middleware_spec.rb +37 -17
- data/spec/dragonfly/processing/r_magick_processor_spec.rb +182 -166
- data/spec/dragonfly/routed_endpoint_spec.rb +48 -0
- data/spec/dragonfly/serializer_spec.rb +61 -0
- data/spec/dragonfly/simple_cache_spec.rb +27 -0
- data/spec/dragonfly/simple_endpoint_spec.rb +78 -0
- data/spec/dragonfly/temp_object_spec.rb +154 -119
- data/spec/simple_matchers.rb +22 -0
- data/spec/spec_helper.rb +28 -4
- data/yard/templates/default/layout/html/layout.erb +18 -11
- metadata +89 -190
- data/config.rb +0 -5
- data/extra_docs/ActiveRecord.md +0 -196
- data/extra_docs/ExampleUseCases.md +0 -189
- data/extra_docs/GettingStarted.md +0 -114
- data/extra_docs/Shortcuts.md +0 -118
- data/extra_docs/UsingWithRails.md +0 -81
- data/features/rails_3.0.0.beta3.feature +0 -7
- data/fixtures/rails_3.0.0.beta3/template.rb +0 -16
- data/lib/dragonfly/active_record_extensions/attachment.rb +0 -170
- data/lib/dragonfly/analyser_list.rb +0 -9
- data/lib/dragonfly/analysis/base.rb +0 -10
- data/lib/dragonfly/belongs_to_app.rb +0 -24
- data/lib/dragonfly/config/heroku_rails_images.rb +0 -23
- data/lib/dragonfly/config/r_magick_images.rb +0 -69
- data/lib/dragonfly/config/r_magick_text.rb +0 -25
- data/lib/dragonfly/config/rails_images.rb +0 -13
- data/lib/dragonfly/data_storage/base.rb +0 -21
- data/lib/dragonfly/data_storage/base64_data_store.rb +0 -23
- data/lib/dragonfly/data_storage/transparent_data_store.rb +0 -21
- data/lib/dragonfly/delegatable.rb +0 -14
- data/lib/dragonfly/delegator.rb +0 -62
- data/lib/dragonfly/encoder_list.rb +0 -9
- data/lib/dragonfly/encoding/base.rb +0 -14
- data/lib/dragonfly/encoding/transparent_encoder.rb +0 -14
- data/lib/dragonfly/extended_temp_object.rb +0 -120
- data/lib/dragonfly/parameters.rb +0 -163
- data/lib/dragonfly/processing/base.rb +0 -10
- data/lib/dragonfly/processor_list.rb +0 -9
- data/lib/dragonfly/url_handler.rb +0 -147
- data/spec/dragonfly/active_record_extensions/attachment_spec.rb +0 -8
- data/spec/dragonfly/active_record_extensions/migration.rb +0 -42
- data/spec/dragonfly/active_record_extensions/models.rb +0 -6
- data/spec/dragonfly/active_record_extensions/spec_helper.rb +0 -24
- data/spec/dragonfly/belongs_to_app_spec.rb +0 -55
- data/spec/dragonfly/delegatable_spec.rb +0 -32
- data/spec/dragonfly/delegator_spec.rb +0 -145
- data/spec/dragonfly/extended_temp_object_spec.rb +0 -71
- data/spec/dragonfly/parameters_spec.rb +0 -298
- data/spec/dragonfly/processing/r_magick_text_processor_spec.rb +0 -84
- data/spec/dragonfly/url_handler_spec.rb +0 -247
- data/spec/dragonfly_spec.rb +0 -16
- data/spec/ginger_scenarios.rb +0 -13
data/spec/simple_matchers.rb
CHANGED
@@ -20,3 +20,25 @@ def match_ar_error(string)
|
|
20
20
|
error == string
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
24
|
+
def include_hash(hash)
|
25
|
+
simple_matcher("include hash #{hash}") do |given|
|
26
|
+
given.merge(hash) == given
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def memory_usage
|
31
|
+
GC.start # Garbage collect
|
32
|
+
`ps -o rss= -p #{$$}`.strip.to_i
|
33
|
+
end
|
34
|
+
|
35
|
+
def leak_memory
|
36
|
+
simple_matcher("leak memory") do |given|
|
37
|
+
memory_before = memory_usage
|
38
|
+
given.call
|
39
|
+
memory_after = memory_usage
|
40
|
+
result = memory_after > memory_before
|
41
|
+
puts "#{memory_after} > #{memory_before}" if result
|
42
|
+
result
|
43
|
+
end
|
44
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
require 'spec'
|
2
1
|
require 'rubygems'
|
2
|
+
require 'spec'
|
3
|
+
require 'rack'
|
3
4
|
|
4
5
|
require File.dirname(__FILE__) + '/../lib/dragonfly'
|
5
6
|
$:.unshift(File.dirname(__FILE__))
|
@@ -7,6 +8,8 @@ require 'argument_matchers'
|
|
7
8
|
require 'simple_matchers'
|
8
9
|
require 'image_matchers'
|
9
10
|
|
11
|
+
ROOT_PATH = File.expand_path(File.dirname(__FILE__) + "/..") unless defined?(ROOT_PATH)
|
12
|
+
|
10
13
|
# A hack as system calls weren't using my path
|
11
14
|
extra_paths = %w(/opt/local/bin)
|
12
15
|
ENV['PATH'] ||= ''
|
@@ -14,10 +17,31 @@ ENV['PATH'] += ':' + extra_paths.join(':')
|
|
14
17
|
|
15
18
|
SAMPLES_DIR = File.expand_path(File.dirname(__FILE__) + '/../samples') unless defined?(SAMPLES_DIR)
|
16
19
|
|
17
|
-
Spec::Runner.configure do |
|
18
|
-
|
20
|
+
Spec::Runner.configure do |c|
|
21
|
+
c.after(:all){ FileUtils.rm_f("#{ROOT_PATH}/Gemfile.lock") }
|
19
22
|
end
|
20
23
|
|
21
24
|
def todo
|
22
25
|
raise "TODO"
|
23
|
-
end
|
26
|
+
end
|
27
|
+
|
28
|
+
require 'logger'
|
29
|
+
LOG_FILE = File.dirname(__FILE__) + '/spec.log' unless defined?(LOG_FILE)
|
30
|
+
FileUtils.rm_rf(LOG_FILE)
|
31
|
+
def mock_app(extra_stubs={})
|
32
|
+
mock('app', {
|
33
|
+
:datastore => mock('datastore', :store => 'some_uid', :retrieve => ["SOME_DATA", {}], :destroy => nil),
|
34
|
+
:processor => mock('processor', :process => "SOME_PROCESSED_DATA"),
|
35
|
+
:encoder => mock('encoder', :encode => "SOME_ENCODED_DATA"),
|
36
|
+
:analyser => mock('analyser', :analyse => "some_result", :analysis_methods => Module.new),
|
37
|
+
:generator => mock('generator', :generate => "SOME_GENERATED_DATA"),
|
38
|
+
:log => Logger.new(LOG_FILE),
|
39
|
+
:cache_duration => 10000,
|
40
|
+
:job_definitions => Module.new
|
41
|
+
}.merge(extra_stubs)
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
def test_app
|
46
|
+
Dragonfly::App.send(:new)
|
47
|
+
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= erb(:headers) %>
|
6
6
|
</head>
|
7
7
|
<body>
|
8
|
-
|
8
|
+
|
9
9
|
<!-- GOOGLE ANALYTICS -->
|
10
10
|
<script type="text/javascript">
|
11
11
|
|
@@ -21,21 +21,21 @@
|
|
21
21
|
|
22
22
|
</script>
|
23
23
|
<!-- *************** -->
|
24
|
-
|
24
|
+
|
25
25
|
<script type="text/javascript" charset="utf-8">
|
26
26
|
if (window.top.frames.main) document.body.className = 'frames';
|
27
27
|
</script>
|
28
|
-
|
28
|
+
|
29
29
|
<div id="header" class="clearfix">
|
30
30
|
<%#= erb(:breadcrumb) %>
|
31
31
|
<div id="logo">DRAGONFLY (v <%= DRAGONFLY_VERSION %>)</div>
|
32
32
|
<%= erb(:search) %>
|
33
33
|
</div>
|
34
|
-
|
34
|
+
|
35
35
|
<div>
|
36
36
|
<iframe id="search_frame"></iframe>
|
37
37
|
</div>
|
38
|
-
|
38
|
+
|
39
39
|
<div id="content" class="clearfix">
|
40
40
|
<div class="col1">
|
41
41
|
<%= yieldall %>
|
@@ -43,17 +43,24 @@
|
|
43
43
|
<div class="col2">
|
44
44
|
<ul class="main_files clearfix">
|
45
45
|
<%= [
|
46
|
+
['Index', 'Home'],
|
46
47
|
['README', 'Quick start for Rails (README)'],
|
47
|
-
['
|
48
|
-
['
|
49
|
-
['
|
48
|
+
['GeneralUsage', 'General usage'],
|
49
|
+
['Rails2', 'Rails 2.3'],
|
50
|
+
['Rails3', 'Rails 3'],
|
51
|
+
['Models', 'Models (ActiveRecord, ActiveModel, etc.)'],
|
52
|
+
['Rack', 'Rack'],
|
53
|
+
['Sinatra', 'Sinatra'],
|
54
|
+
['Heroku', 'Heroku'],
|
50
55
|
['DataStorage', 'Data Storage'],
|
51
56
|
['Analysers', 'Analysers'],
|
52
57
|
['Processing', 'Processing'],
|
53
58
|
['Encoding', 'Encoding'],
|
54
|
-
['
|
59
|
+
['Generators', 'Generators'],
|
60
|
+
['Configuration', 'Configuration'],
|
61
|
+
['URLs', 'URLs'],
|
55
62
|
['MimeTypes', 'Mime Types'],
|
56
|
-
['
|
63
|
+
['Caching', 'Caching'],
|
57
64
|
['History', 'History'],
|
58
65
|
].map{|(file, text)|
|
59
66
|
"<li>#{link_file(file, text)}</li>"
|
@@ -62,7 +69,7 @@
|
|
62
69
|
</ul>
|
63
70
|
</div>
|
64
71
|
</div>
|
65
|
-
|
72
|
+
|
66
73
|
<%= erb(:footer) %>
|
67
74
|
</body>
|
68
75
|
</html>
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 7
|
8
|
+
- 0
|
9
|
+
version: 0.7.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mark Evans
|
@@ -14,13 +14,14 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-08-25 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rack
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -29,126 +30,6 @@ dependencies:
|
|
29
30
|
version: "0"
|
30
31
|
type: :runtime
|
31
32
|
version_requirements: *id001
|
32
|
-
- !ruby/object:Gem::Dependency
|
33
|
-
name: jeweler
|
34
|
-
prerelease: false
|
35
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
segments:
|
40
|
-
- 0
|
41
|
-
version: "0"
|
42
|
-
type: :development
|
43
|
-
version_requirements: *id002
|
44
|
-
- !ruby/object:Gem::Dependency
|
45
|
-
name: yard
|
46
|
-
prerelease: false
|
47
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
-
requirements:
|
49
|
-
- - ">="
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
segments:
|
52
|
-
- 0
|
53
|
-
version: "0"
|
54
|
-
type: :development
|
55
|
-
version_requirements: *id003
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: rmagick
|
58
|
-
prerelease: false
|
59
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
segments:
|
64
|
-
- 0
|
65
|
-
version: "0"
|
66
|
-
type: :development
|
67
|
-
version_requirements: *id004
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: aws-s3
|
70
|
-
prerelease: false
|
71
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
78
|
-
type: :development
|
79
|
-
version_requirements: *id005
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: rspec
|
82
|
-
prerelease: false
|
83
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
segments:
|
88
|
-
- 0
|
89
|
-
version: "0"
|
90
|
-
type: :development
|
91
|
-
version_requirements: *id006
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: cucumber
|
94
|
-
prerelease: false
|
95
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
96
|
-
requirements:
|
97
|
-
- - ">="
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
segments:
|
100
|
-
- 0
|
101
|
-
version: "0"
|
102
|
-
type: :development
|
103
|
-
version_requirements: *id007
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: cucumber-rails
|
106
|
-
prerelease: false
|
107
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
segments:
|
112
|
-
- 0
|
113
|
-
version: "0"
|
114
|
-
type: :development
|
115
|
-
version_requirements: *id008
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: activerecord
|
118
|
-
prerelease: false
|
119
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
segments:
|
124
|
-
- 0
|
125
|
-
version: "0"
|
126
|
-
type: :development
|
127
|
-
version_requirements: *id009
|
128
|
-
- !ruby/object:Gem::Dependency
|
129
|
-
name: sqlite3-ruby
|
130
|
-
prerelease: false
|
131
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - ">="
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
segments:
|
136
|
-
- 0
|
137
|
-
version: "0"
|
138
|
-
type: :development
|
139
|
-
version_requirements: *id010
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: ginger
|
142
|
-
prerelease: false
|
143
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
144
|
-
requirements:
|
145
|
-
- - ">="
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
segments:
|
148
|
-
- 0
|
149
|
-
version: "0"
|
150
|
-
type: :development
|
151
|
-
version_requirements: *id011
|
152
33
|
description:
|
153
34
|
email: mark@new-bamboo.co.uk
|
154
35
|
executables: []
|
@@ -160,31 +41,39 @@ extra_rdoc_files:
|
|
160
41
|
- README.md
|
161
42
|
files:
|
162
43
|
- .gitignore
|
44
|
+
- .specopts
|
163
45
|
- .yardopts
|
46
|
+
- Gemfile
|
47
|
+
- Gemfile.rails.2.3.5
|
164
48
|
- History.md
|
165
49
|
- LICENSE
|
166
50
|
- README.md
|
167
51
|
- Rakefile
|
168
52
|
- VERSION
|
169
|
-
- config.rb
|
170
53
|
- config.ru
|
171
54
|
- docs.watchr
|
172
55
|
- dragonfly.gemspec
|
173
|
-
- extra_docs/ActiveRecord.md
|
174
56
|
- extra_docs/Analysers.md
|
57
|
+
- extra_docs/Caching.md
|
58
|
+
- extra_docs/Configuration.md
|
175
59
|
- extra_docs/DataStorage.md
|
176
60
|
- extra_docs/Encoding.md
|
177
|
-
- extra_docs/
|
178
|
-
- extra_docs/
|
61
|
+
- extra_docs/GeneralUsage.md
|
62
|
+
- extra_docs/Generators.md
|
63
|
+
- extra_docs/Heroku.md
|
179
64
|
- extra_docs/Index.md
|
180
65
|
- extra_docs/MimeTypes.md
|
66
|
+
- extra_docs/Models.md
|
181
67
|
- extra_docs/Processing.md
|
182
|
-
- extra_docs/
|
183
|
-
- extra_docs/
|
68
|
+
- extra_docs/Rack.md
|
69
|
+
- extra_docs/Rails2.md
|
70
|
+
- extra_docs/Rails3.md
|
71
|
+
- extra_docs/Sinatra.md
|
72
|
+
- extra_docs/URLs.md
|
184
73
|
- features/images.feature
|
185
74
|
- features/no_processing.feature
|
186
75
|
- features/rails_2.3.5.feature
|
187
|
-
- features/rails_3.0.0.
|
76
|
+
- features/rails_3.0.0.rc.feature
|
188
77
|
- features/steps/common_steps.rb
|
189
78
|
- features/steps/dragonfly_steps.rb
|
190
79
|
- features/steps/rails_steps.rb
|
@@ -194,87 +83,91 @@ files:
|
|
194
83
|
- fixtures/files/app/views/albums/show.html.erb
|
195
84
|
- fixtures/files/config/initializers/dragonfly.rb
|
196
85
|
- fixtures/files/features/manage_album_images.feature
|
197
|
-
- fixtures/files/features/step_definitions/
|
86
|
+
- fixtures/files/features/step_definitions/image_steps.rb
|
198
87
|
- fixtures/files/features/support/paths.rb
|
88
|
+
- fixtures/files/features/text_images.feature
|
199
89
|
- fixtures/rails_2.3.5/template.rb
|
200
|
-
- fixtures/rails_3.0.0.
|
90
|
+
- fixtures/rails_3.0.0.rc/template.rb
|
201
91
|
- irbrc.rb
|
202
92
|
- lib/dragonfly.rb
|
203
|
-
- lib/dragonfly/
|
204
|
-
- lib/dragonfly/
|
205
|
-
- lib/dragonfly/
|
206
|
-
- lib/dragonfly/
|
207
|
-
- lib/dragonfly/
|
208
|
-
- lib/dragonfly/
|
209
|
-
- lib/dragonfly/analysis/base.rb
|
93
|
+
- lib/dragonfly/active_model_extensions.rb
|
94
|
+
- lib/dragonfly/active_model_extensions/attachment.rb
|
95
|
+
- lib/dragonfly/active_model_extensions/class_methods.rb
|
96
|
+
- lib/dragonfly/active_model_extensions/instance_methods.rb
|
97
|
+
- lib/dragonfly/active_model_extensions/validations.rb
|
98
|
+
- lib/dragonfly/analyser.rb
|
210
99
|
- lib/dragonfly/analysis/file_command_analyser.rb
|
211
100
|
- lib/dragonfly/analysis/r_magick_analyser.rb
|
212
101
|
- lib/dragonfly/app.rb
|
213
|
-
- lib/dragonfly/
|
214
|
-
- lib/dragonfly/config/
|
215
|
-
- lib/dragonfly/config/
|
216
|
-
- lib/dragonfly/config/r_magick_text.rb
|
217
|
-
- lib/dragonfly/config/rails_defaults.rb
|
218
|
-
- lib/dragonfly/config/rails_images.rb
|
102
|
+
- lib/dragonfly/config/heroku.rb
|
103
|
+
- lib/dragonfly/config/r_magick.rb
|
104
|
+
- lib/dragonfly/config/rails.rb
|
219
105
|
- lib/dragonfly/configurable.rb
|
220
106
|
- lib/dragonfly/core_ext/object.rb
|
221
107
|
- lib/dragonfly/core_ext/string.rb
|
222
108
|
- lib/dragonfly/core_ext/symbol.rb
|
223
109
|
- lib/dragonfly/data_storage.rb
|
224
|
-
- lib/dragonfly/data_storage/base.rb
|
225
|
-
- lib/dragonfly/data_storage/base64_data_store.rb
|
226
110
|
- lib/dragonfly/data_storage/file_data_store.rb
|
111
|
+
- lib/dragonfly/data_storage/mongo_data_store.rb
|
227
112
|
- lib/dragonfly/data_storage/s3data_store.rb
|
228
|
-
- lib/dragonfly/
|
229
|
-
- lib/dragonfly/delegatable.rb
|
230
|
-
- lib/dragonfly/delegator.rb
|
231
|
-
- lib/dragonfly/encoder_list.rb
|
232
|
-
- lib/dragonfly/encoding/base.rb
|
113
|
+
- lib/dragonfly/encoder.rb
|
233
114
|
- lib/dragonfly/encoding/r_magick_encoder.rb
|
234
|
-
- lib/dragonfly/
|
235
|
-
- lib/dragonfly/
|
115
|
+
- lib/dragonfly/endpoint.rb
|
116
|
+
- lib/dragonfly/function_manager.rb
|
117
|
+
- lib/dragonfly/generation/r_magick_generator.rb
|
118
|
+
- lib/dragonfly/generator.rb
|
119
|
+
- lib/dragonfly/job.rb
|
120
|
+
- lib/dragonfly/job_builder.rb
|
121
|
+
- lib/dragonfly/job_definitions.rb
|
122
|
+
- lib/dragonfly/job_endpoint.rb
|
123
|
+
- lib/dragonfly/loggable.rb
|
236
124
|
- lib/dragonfly/middleware.rb
|
237
|
-
- lib/dragonfly/parameters.rb
|
238
|
-
- lib/dragonfly/processing/base.rb
|
239
125
|
- lib/dragonfly/processing/r_magick_processor.rb
|
240
|
-
- lib/dragonfly/
|
241
|
-
- lib/dragonfly/
|
126
|
+
- lib/dragonfly/processor.rb
|
127
|
+
- lib/dragonfly/r_magick_utils.rb
|
242
128
|
- lib/dragonfly/rails/images.rb
|
129
|
+
- lib/dragonfly/routed_endpoint.rb
|
130
|
+
- lib/dragonfly/serializer.rb
|
131
|
+
- lib/dragonfly/simple_cache.rb
|
132
|
+
- lib/dragonfly/simple_endpoint.rb
|
243
133
|
- lib/dragonfly/temp_object.rb
|
244
|
-
- lib/dragonfly/url_handler.rb
|
245
134
|
- samples/beach.png
|
246
135
|
- samples/egg.png
|
247
136
|
- samples/round.gif
|
248
137
|
- samples/sample.docx
|
249
138
|
- samples/taj.jpg
|
250
139
|
- spec/argument_matchers.rb
|
251
|
-
- spec/dragonfly/
|
252
|
-
- spec/dragonfly/
|
253
|
-
- spec/dragonfly/
|
254
|
-
- spec/dragonfly/
|
255
|
-
- spec/dragonfly/
|
140
|
+
- spec/dragonfly/active_model_extensions/active_model_setup.rb
|
141
|
+
- spec/dragonfly/active_model_extensions/active_record_setup.rb
|
142
|
+
- spec/dragonfly/active_model_extensions/model_spec.rb
|
143
|
+
- spec/dragonfly/active_model_extensions/spec_helper.rb
|
144
|
+
- spec/dragonfly/analyser_spec.rb
|
256
145
|
- spec/dragonfly/analysis/file_command_analyser_spec.rb
|
257
146
|
- spec/dragonfly/analysis/r_magick_analyser_spec.rb
|
258
147
|
- spec/dragonfly/app_spec.rb
|
259
|
-
- spec/dragonfly/belongs_to_app_spec.rb
|
260
148
|
- spec/dragonfly/configurable_spec.rb
|
261
149
|
- spec/dragonfly/core_ext/string_spec.rb
|
262
150
|
- spec/dragonfly/core_ext/symbol_spec.rb
|
263
151
|
- spec/dragonfly/data_storage/data_store_spec.rb
|
264
152
|
- spec/dragonfly/data_storage/file_data_store_spec.rb
|
153
|
+
- spec/dragonfly/data_storage/mongo_data_store_spec.rb
|
265
154
|
- spec/dragonfly/data_storage/s3_data_store_spec.rb
|
266
|
-
- spec/dragonfly/
|
267
|
-
- spec/dragonfly/delegator_spec.rb
|
155
|
+
- spec/dragonfly/deprecation_spec.rb
|
268
156
|
- spec/dragonfly/encoding/r_magick_encoder_spec.rb
|
269
|
-
- spec/dragonfly/
|
157
|
+
- spec/dragonfly/function_manager_spec.rb
|
158
|
+
- spec/dragonfly/generation/r_magick_generator_spec.rb
|
159
|
+
- spec/dragonfly/job_builder_spec.rb
|
160
|
+
- spec/dragonfly/job_definitions_spec.rb
|
161
|
+
- spec/dragonfly/job_endpoint_spec.rb
|
162
|
+
- spec/dragonfly/job_spec.rb
|
163
|
+
- spec/dragonfly/loggable_spec.rb
|
270
164
|
- spec/dragonfly/middleware_spec.rb
|
271
|
-
- spec/dragonfly/parameters_spec.rb
|
272
165
|
- spec/dragonfly/processing/r_magick_processor_spec.rb
|
273
|
-
- spec/dragonfly/
|
166
|
+
- spec/dragonfly/routed_endpoint_spec.rb
|
167
|
+
- spec/dragonfly/serializer_spec.rb
|
168
|
+
- spec/dragonfly/simple_cache_spec.rb
|
169
|
+
- spec/dragonfly/simple_endpoint_spec.rb
|
274
170
|
- spec/dragonfly/temp_object_spec.rb
|
275
|
-
- spec/dragonfly/url_handler_spec.rb
|
276
|
-
- spec/dragonfly_spec.rb
|
277
|
-
- spec/ginger_scenarios.rb
|
278
171
|
- spec/image_matchers.rb
|
279
172
|
- spec/simple_matchers.rb
|
280
173
|
- spec/spec_helper.rb
|
@@ -294,6 +187,7 @@ rdoc_options:
|
|
294
187
|
require_paths:
|
295
188
|
- lib
|
296
189
|
required_ruby_version: !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
297
191
|
requirements:
|
298
192
|
- - ">="
|
299
193
|
- !ruby/object:Gem::Version
|
@@ -301,6 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
301
195
|
- 0
|
302
196
|
version: "0"
|
303
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
|
+
none: false
|
304
199
|
requirements:
|
305
200
|
- - ">="
|
306
201
|
- !ruby/object:Gem::Version
|
@@ -310,39 +205,43 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
205
|
requirements: []
|
311
206
|
|
312
207
|
rubyforge_project:
|
313
|
-
rubygems_version: 1.3.
|
208
|
+
rubygems_version: 1.3.7
|
314
209
|
signing_key:
|
315
210
|
specification_version: 3
|
316
|
-
summary: Dragonfly is an on-the-fly Rack
|
211
|
+
summary: Dragonfly is an on-the-fly Rack-based image handling framework. It is suitable for use with Rails, Sinatra and other web frameworks. Although it's mainly used for images, it can handle any content type.
|
317
212
|
test_files:
|
318
213
|
- spec/argument_matchers.rb
|
319
|
-
- spec/dragonfly/
|
320
|
-
- spec/dragonfly/
|
321
|
-
- spec/dragonfly/
|
322
|
-
- spec/dragonfly/
|
323
|
-
- spec/dragonfly/
|
214
|
+
- spec/dragonfly/active_model_extensions/active_model_setup.rb
|
215
|
+
- spec/dragonfly/active_model_extensions/active_record_setup.rb
|
216
|
+
- spec/dragonfly/active_model_extensions/model_spec.rb
|
217
|
+
- spec/dragonfly/active_model_extensions/spec_helper.rb
|
218
|
+
- spec/dragonfly/analyser_spec.rb
|
324
219
|
- spec/dragonfly/analysis/file_command_analyser_spec.rb
|
325
220
|
- spec/dragonfly/analysis/r_magick_analyser_spec.rb
|
326
221
|
- spec/dragonfly/app_spec.rb
|
327
|
-
- spec/dragonfly/belongs_to_app_spec.rb
|
328
222
|
- spec/dragonfly/configurable_spec.rb
|
329
223
|
- spec/dragonfly/core_ext/string_spec.rb
|
330
224
|
- spec/dragonfly/core_ext/symbol_spec.rb
|
331
225
|
- spec/dragonfly/data_storage/data_store_spec.rb
|
332
226
|
- spec/dragonfly/data_storage/file_data_store_spec.rb
|
227
|
+
- spec/dragonfly/data_storage/mongo_data_store_spec.rb
|
333
228
|
- spec/dragonfly/data_storage/s3_data_store_spec.rb
|
334
|
-
- spec/dragonfly/
|
335
|
-
- spec/dragonfly/delegator_spec.rb
|
229
|
+
- spec/dragonfly/deprecation_spec.rb
|
336
230
|
- spec/dragonfly/encoding/r_magick_encoder_spec.rb
|
337
|
-
- spec/dragonfly/
|
231
|
+
- spec/dragonfly/function_manager_spec.rb
|
232
|
+
- spec/dragonfly/generation/r_magick_generator_spec.rb
|
233
|
+
- spec/dragonfly/job_builder_spec.rb
|
234
|
+
- spec/dragonfly/job_definitions_spec.rb
|
235
|
+
- spec/dragonfly/job_endpoint_spec.rb
|
236
|
+
- spec/dragonfly/job_spec.rb
|
237
|
+
- spec/dragonfly/loggable_spec.rb
|
338
238
|
- spec/dragonfly/middleware_spec.rb
|
339
|
-
- spec/dragonfly/parameters_spec.rb
|
340
239
|
- spec/dragonfly/processing/r_magick_processor_spec.rb
|
341
|
-
- spec/dragonfly/
|
240
|
+
- spec/dragonfly/routed_endpoint_spec.rb
|
241
|
+
- spec/dragonfly/serializer_spec.rb
|
242
|
+
- spec/dragonfly/simple_cache_spec.rb
|
243
|
+
- spec/dragonfly/simple_endpoint_spec.rb
|
342
244
|
- spec/dragonfly/temp_object_spec.rb
|
343
|
-
- spec/dragonfly/url_handler_spec.rb
|
344
|
-
- spec/dragonfly_spec.rb
|
345
|
-
- spec/ginger_scenarios.rb
|
346
245
|
- spec/image_matchers.rb
|
347
246
|
- spec/simple_matchers.rb
|
348
247
|
- spec/spec_helper.rb
|