rack-static_fallback 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -18,15 +18,12 @@ Install via rubygems:
18
18
 
19
19
  then, for Rails (any version which supports Rack) apps, add the following to your 'config/environments/development.rb'
20
20
 
21
+ require 'rack/static_fallback'
21
22
  config.middleware.insert_after ::Rack::Lock,
22
23
  ::Rack::StaticFallback, :mode => :fallback,
23
24
  :static_path_regex => %r{/system/uploads},
24
25
  :fallback_static_url => "http://myproductionsite.com/"
25
26
 
26
- note that Rails 3 won't auto-load the gem files, so you may need to
27
-
28
- require 'rack/static_fallback'
29
-
30
27
  at the beginning of 'development.rb'. Aternatively, you should also be able to use the gem in non-Rails apps with:
31
28
 
32
29
  use ::Rack::StaticFallback, :mode => :fallback,
@@ -19,15 +19,12 @@ module Rack
19
19
  #
20
20
  # then, for Rails (any version which supports Rack) apps, add the following to your 'config/environments/development.rb'
21
21
  #
22
+ # require 'rack/static_fallback'
22
23
  # config.middleware.insert_after ::Rack::Lock,
23
24
  # ::Rack::StaticFallback, :mode => :fallback,
24
25
  # :static_path_regex => %r{/system/uploads},
25
26
  # :fallback_static_url => "http://myproductionsite.com/"
26
27
  #
27
- # note that Rails 3 won't auto-load the gem files, so you may need to
28
- #
29
- # require 'rack/static_fallback'
30
- #
31
28
  # at the beginning of 'development.rb'. Aternatively, you should also be able to use the gem in non-Rails apps with:
32
29
  #
33
30
  # use ::Rack::StaticFallback, :mode => :fallback,
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "rack-static_fallback"
6
- s.version = '1.0.1'
6
+ s.version = '1.0.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Evgeniy Dolzhenko", "Mike Fulcher"]
9
9
  s.email = ["dolzenko@gmail.com", "mike@plan9design.co.uk"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-static_fallback
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Evgeniy Dolzhenko