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 +1 -1
- data/dragonfly.gemspec +1 -1
- data/extra_docs/Heroku.md +2 -2
- data/extra_docs/Rails2.md +2 -2
- data/extra_docs/Rails3.md +2 -2
- data/lib/dragonfly/rails/images.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.3
|
data/dragonfly.gemspec
CHANGED
data/extra_docs/Heroku.md
CHANGED
@@ -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
|
-
|
35
|
-
|
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).
|
data/extra_docs/Rails2.md
CHANGED
@@ -23,8 +23,8 @@ config/initializers/dragonfly.rb:
|
|
23
23
|
|
24
24
|
environment.rb:
|
25
25
|
|
26
|
-
config.middleware.
|
27
|
-
config.middleware.
|
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"
|
data/extra_docs/Rails3.md
CHANGED
@@ -23,8 +23,8 @@ config/initializers/dragonfly.rb:
|
|
23
23
|
|
24
24
|
application.rb:
|
25
25
|
|
26
|
-
config.middleware.
|
27
|
-
config.middleware.
|
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.
|
18
|
-
middleware.
|
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 3
|
10
|
+
version: 0.7.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mark Evans
|