rack-timeout 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/README.markdown +1 -1
- data/lib/rack-timeout.rb +1 -1
- data/lib/rack/timeout/legacy.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cbb596c0b6e919a2f4416ea0891d1d5bfbac1cb
|
4
|
+
data.tar.gz: 2352ab4deb41e18a4b464a3c47819a66c5cab827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0333f6ca3ebd2a95df0815a89adc52094525e671d8e2b448d5ee111e867353b505375a31c147123a37c4c1a15fa754b7c8125beb13ae6d21f87d65cbb0aa93
|
7
|
+
data.tar.gz: 12660aa0b5a7aab15726b65f1d068e11e754b5ca20512a18f7ab85eaee5b15457052f92d8568f521c1d1662f2b6dab82cd0b5ed95f0e4f2964d1ebd1f485f217
|
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -315,5 +315,5 @@ This version of Rack::Timeout is compatible with Ruby 2.1 and up, and, for Rails
|
|
315
315
|
|
316
316
|
|
317
317
|
---
|
318
|
-
Copyright © 2010-
|
318
|
+
Copyright © 2010-2016 Caio Chassot, released under the MIT license
|
319
319
|
<http://github.com/heroku/rack-timeout>
|
data/lib/rack-timeout.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
require_relative "rack/timeout/base"
|
2
|
-
require_relative "rack/timeout/rails" if defined?(Rails) && [3,4].include?(Rails::VERSION::MAJOR)
|
2
|
+
require_relative "rack/timeout/rails" if defined?(Rails) && [3,4,5].include?(Rails::VERSION::MAJOR)
|
data/lib/rack/timeout/legacy.rb
CHANGED
@@ -19,7 +19,7 @@ module Rack::Timeout::ClassLevelProperties
|
|
19
19
|
].each do |isetter|
|
20
20
|
setter = instance_method(isetter)
|
21
21
|
define_method(isetter) do |x|
|
22
|
-
warn "`Rack::Timeout.#{isetter}`: class-level settings are deprecated. See README for examples on using the middleware initializer instead."
|
22
|
+
defined?(Rails) or warn "`Rack::Timeout.#{isetter}`: class-level settings are deprecated. See README for examples on using the middleware initializer instead."
|
23
23
|
setter.bind(self).call(x)
|
24
24
|
end
|
25
25
|
end
|