dragonfly 0.7.2 → 0.7.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dragonfly}
8
- s.version = "0.7.2"
8
+ s.version = "0.7.3"
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"]
@@ -31,8 +31,8 @@ The datastore remains as the {Dragonfly::DataStorage::FileDataStore FileDataStor
31
31
 
32
32
  environment.rb (application.rb in Rails 3):
33
33
 
34
- config.middleware.insert 0, 'Dragonfly::Middleware', :images, '/media' # make sure this is the same
35
- # as the app's configured prefix
34
+ # make sure the last arg is the same as the app's configured prefix
35
+ config.middleware.insert_before 'Rack::Lock', 'Dragonfly::Middleware', :images, '/media'
36
36
 
37
37
  We don't store the S3 access key and secret in the repository, rather we use Heroku's
38
38
  {http://docs.heroku.com/config-vars config variables} using the command line (we only have to do this once).
@@ -23,8 +23,8 @@ config/initializers/dragonfly.rb:
23
23
 
24
24
  environment.rb:
25
25
 
26
- config.middleware.insert 0, 'Dragonfly::Middleware', :images, '/media'
27
- config.middleware.insert 0, 'Rack::Cache', {
26
+ config.middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :images, '/media'
27
+ config.middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
28
28
  :verbose => true,
29
29
  :metastore => "file:#{Rails.root}/tmp/dragonfly/cache/meta",
30
30
  :entitystore => "file:#{Rails.root}/tmp/dragonfly/cache/body"
@@ -23,8 +23,8 @@ config/initializers/dragonfly.rb:
23
23
 
24
24
  application.rb:
25
25
 
26
- config.middleware.insert 0, 'Dragonfly::Middleware', :images, '/media'
27
- config.middleware.insert 0, 'Rack::Cache', {
26
+ config.middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :images, '/media'
27
+ config.middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
28
28
  :verbose => true,
29
29
  :metastore => "file:#{Rails.root}/tmp/dragonfly/cache/meta",
30
30
  :entitystore => "file:#{Rails.root}/tmp/dragonfly/cache/body"
@@ -14,8 +14,8 @@ app.define_macro(ActiveRecord::Base, :image_accessor)
14
14
  # Where the middleware is depends on the version of Rails
15
15
  middleware = Rails.respond_to?(:application) ? Rails.application.middleware : ActionController::Dispatcher.middleware
16
16
 
17
- middleware.insert 0, Dragonfly::Middleware, :images, app.url_path_prefix
18
- middleware.insert 0, Rack::Cache, {
17
+ middleware.insert_after 'Rack::Lock', 'Dragonfly::Middleware', :images, app.url_path_prefix
18
+ middleware.insert_before 'Dragonfly::Middleware', 'Rack::Cache', {
19
19
  :verbose => true,
20
20
  :metastore => URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/meta"), # URI encoded because Windows
21
21
  :entitystore => URI.encode("file:#{Rails.root}/tmp/dragonfly/cache/body") # has problems with spaces
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mark Evans