dragonfly 0.3.0 → 0.3.2

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/README.md CHANGED
@@ -1,15 +1,19 @@
1
1
  Dragonfly
2
2
  ===========
3
3
 
4
- Dragonfly is a {http://rack.rubyforge.org Rack} framework for on-the-fly processing and encoding.
4
+ Dragonfly is a <a href="http://rack.rubyforge.org">Rack</a> framework for on-the-fly processing and encoding.
5
5
  It includes an extension for Ruby on Rails to enable easy image handling.
6
6
 
7
7
  For the lazy rails user
8
8
  -----------------------
9
+ To use simply for image thumbnails etc. in Rails...
9
10
 
10
11
  environment.rb:
11
12
 
12
- config.gem 'dragonfly-rails', :lib => 'dragonfly/rails/images'
13
+ config.gem 'rmagick'
14
+ config.gem 'rack-cache'
15
+
16
+ config.gem 'dragonfly', :lib => 'dragonfly/rails/images'
13
17
  config.middleware.use 'Dragonfly::MiddlewareWithCache', :images
14
18
 
15
19
  Migration:
@@ -56,7 +60,7 @@ Please use the <a href="http://github.com/markevans/dragonfly/issues">github iss
56
60
 
57
61
  Suggestions/Questions
58
62
  =====================
59
- {http://groups.google.com/group/dragonfly-users}
63
+ <a href="http://groups.google.com/group/dragonfly-users">Google group dragonfly-users</a>
60
64
 
61
65
  Credits
62
66
  =======
data/Rakefile CHANGED
@@ -4,8 +4,8 @@ begin
4
4
  require 'jeweler'
5
5
  Jeweler::Tasks.new do |s|
6
6
  s.name = "dragonfly"
7
- s.summary = %Q{dragonfly is an on-the-fly processing/encoding framework written as a Rack application.
8
- It includes an extension for Ruby on Rails to enable easy image handling}
7
+ s.summary = %Q{Dragonfly is an on-the-fly Rack processing/encoding framework.
8
+ It includes an extension for Ruby on Rails for easy image handling}
9
9
  s.email = "mark@new-bamboo.co.uk"
10
10
  s.homepage = "http://github.com/markevans/dragonfly"
11
11
  s.authors = ["Mark Evans"]
@@ -13,21 +13,6 @@ begin
13
13
  s.has_rdoc = 'yard'
14
14
  end
15
15
  Jeweler::GemcutterTasks.new
16
- Jeweler::Tasks.new do |s|
17
- s.name = "dragonfly-rails"
18
- s.summary = %Q{dragonfly-rails has no code of its own - it simply gathers dependencies for using dragonfly in rails}
19
- s.email = "mark@new-bamboo.co.uk"
20
- s.homepage = "http://github.com/markevans/dragonfly"
21
- s.authors = ["Mark Evans"]
22
- s.files = []
23
- s.test_files = []
24
- s.extra_rdoc_files = []
25
- s.add_dependency('dragonfly')
26
- s.add_dependency('rack')
27
- s.add_dependency('rack-cache')
28
- s.add_dependency('rmagick')
29
- end
30
- Jeweler::GemcutterTasks.new
31
16
  rescue LoadError
32
17
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
33
18
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.2
data/dragonfly.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dragonfly}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Evans"]
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
25
25
  "config.rb",
26
26
  "config.ru",
27
27
  "docs.watchr",
28
- "dragonfly-rails.gemspec",
29
28
  "dragonfly.gemspec",
30
29
  "extra_docs/ActiveRecord.md",
31
30
  "extra_docs/Analysers.md",
@@ -121,7 +120,7 @@ Gem::Specification.new do |s|
121
120
  s.rdoc_options = ["--charset=UTF-8"]
122
121
  s.require_paths = ["lib"]
123
122
  s.rubygems_version = %q{1.3.5}
124
- s.summary = %q{dragonfly is an on-the-fly processing/encoding framework written as a Rack application. It includes an extension for Ruby on Rails to enable easy image handling}
123
+ s.summary = %q{Dragonfly is an on-the-fly Rack processing/encoding framework. It includes an extension for Ruby on Rails for easy image handling}
125
124
  s.test_files = [
126
125
  "spec/argument_matchers.rb",
127
126
  "spec/dragonfly/active_record_extensions/attachment_spec.rb",
@@ -8,16 +8,19 @@ Using as Middleware
8
8
  -------------------
9
9
  In environment.rb:
10
10
 
11
- config.gem 'dragonfly-rails', :lib => 'dragonfly/rails/images'
12
- config.middleware.use 'Dragonfly::MiddlewareWithCache', :images
11
+ config.gem 'rmagick'
12
+ config.gem 'rack-cache'
13
13
 
14
- The gem dragonfly-rails does nothing more than tie together the gem dependencies dragonfly,
15
- rack-cache and rmagick.
14
+ config.gem 'dragonfly', :lib => 'dragonfly/rails/images'
15
+ config.middleware.use 'Dragonfly::MiddlewareWithCache', :images
16
16
 
17
17
  The required file 'dragonfly/rails/images.rb' initializes a dragonfly app, configures it to use rmagick processing, encoding, etc.,
18
18
  and registers the app so that you can use ActiveRecord accessors.
19
19
 
20
- For reference, the contents are as follows:
20
+ Because in this case it's configured to use {http://tomayko.com/src/rack-cache/ rack-cache} and {http://rmagick.rubyforge.org/ rmagick},
21
+ you should include the first two lines above.
22
+
23
+ For reference, the contents of 'dragonfly/rails/images.rb' are as follows:
21
24
 
22
25
  require 'dragonfly'
23
26
 
@@ -40,7 +43,7 @@ For reference, the contents are as follows:
40
43
  ActiveRecord::Base.extend Dragonfly::ActiveRecordExtensions
41
44
  ActiveRecord::Base.register_dragonfly_app(:image, app)
42
45
 
43
- The second line configures rails to use a {Dragonfly::MiddlewareWithCache middleware} which uses the named app (named `:images`), and puts
46
+ The line `config.middleware.use 'Dragonfly::MiddlewareWithCache', :images` configures rails to use a {Dragonfly::MiddlewareWithCache middleware} which uses the named app (named `:images`), and puts
44
47
  {http://tomayko.com/src/rack-cache/ Rack::Cache} in front of it for performance.
45
48
  You can pass extra arguments to this line which will go directly to configuring Rack::Cache (see its docs for how to configure it).
46
49
  The default configuration for Rack::Cache is
@@ -55,7 +58,10 @@ To see what you can do with the active record accessors, see {file:ActiveRecord}
55
58
 
56
59
  Using as a Rails Metal
57
60
  ----------------------
58
- The easiest way of setting up as a rails metal is using the supplied generator.
61
+ Setting up as a Rails Metal may be preferable to using the middleware as above if you want to see the configuration
62
+ more explicitly (and therefore have more control over it).
63
+
64
+ The easiest way is using the supplied generator.
59
65
  (NB I've had a couple of problems with the generator with plural/singular names with early versions of metal in Rails 2.3 -
60
66
  this should be resolvable by making sure the metal name matches its filename).
61
67
 
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.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Evans
@@ -41,7 +41,6 @@ files:
41
41
  - config.rb
42
42
  - config.ru
43
43
  - docs.watchr
44
- - dragonfly-rails.gemspec
45
44
  - dragonfly.gemspec
46
45
  - extra_docs/ActiveRecord.md
47
46
  - extra_docs/Analysers.md
@@ -158,7 +157,7 @@ rubyforge_project:
158
157
  rubygems_version: 1.3.5
159
158
  signing_key:
160
159
  specification_version: 3
161
- summary: dragonfly is an on-the-fly processing/encoding framework written as a Rack application. It includes an extension for Ruby on Rails to enable easy image handling
160
+ summary: Dragonfly is an on-the-fly Rack processing/encoding framework. It includes an extension for Ruby on Rails for easy image handling
162
161
  test_files:
163
162
  - spec/argument_matchers.rb
164
163
  - spec/dragonfly/active_record_extensions/attachment_spec.rb
@@ -1,41 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = %q{dragonfly-rails}
8
- s.version = "0.3.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Mark Evans"]
12
- s.date = %q{2009-12-15}
13
- s.email = %q{mark@new-bamboo.co.uk}
14
- s.homepage = %q{http://github.com/markevans/dragonfly}
15
- s.rdoc_options = ["--charset=UTF-8"]
16
- s.require_paths = ["lib"]
17
- s.rubygems_version = %q{1.3.5}
18
- s.summary = %q{dragonfly-rails has no code of its own - it simply gathers dependencies for using dragonfly in rails}
19
-
20
- if s.respond_to? :specification_version then
21
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
22
- s.specification_version = 3
23
-
24
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
- s.add_runtime_dependency(%q<dragonfly>, [">= 0"])
26
- s.add_runtime_dependency(%q<rack>, [">= 0"])
27
- s.add_runtime_dependency(%q<rack-cache>, [">= 0"])
28
- s.add_runtime_dependency(%q<rmagick>, [">= 0"])
29
- else
30
- s.add_dependency(%q<dragonfly>, [">= 0"])
31
- s.add_dependency(%q<rack>, [">= 0"])
32
- s.add_dependency(%q<rack-cache>, [">= 0"])
33
- s.add_dependency(%q<rmagick>, [">= 0"])
34
- end
35
- else
36
- s.add_dependency(%q<dragonfly>, [">= 0"])
37
- s.add_dependency(%q<rack>, [">= 0"])
38
- s.add_dependency(%q<rack-cache>, [">= 0"])
39
- s.add_dependency(%q<rmagick>, [">= 0"])
40
- end
41
- end