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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c6085bc1b83e9bb9f2b9e461a397dc4764fffe1
4
- data.tar.gz: 30290762388e9fc3512a48e962b4101817b7d53f
3
+ metadata.gz: 6cbb596c0b6e919a2f4416ea0891d1d5bfbac1cb
4
+ data.tar.gz: 2352ab4deb41e18a4b464a3c47819a66c5cab827
5
5
  SHA512:
6
- metadata.gz: 58a88b26d6aad37c19e15ddac0db4b8b77684542c02ab00670a76bb36db01a98b2dbf9dadf0e2b34402a4e971eaf7f4d653311708c1e36ed52f64d09073d0c7a
7
- data.tar.gz: c542d17400ea593c1b85192a3e68917880a83dc89d274598566111c5f20d3c611e2fee7228bcaabe8fae18782bb65014a7ffff315157d04894287651874e53bb
6
+ metadata.gz: ba0333f6ca3ebd2a95df0815a89adc52094525e671d8e2b448d5ee111e867353b505375a31c147123a37c4c1a15fa754b7c8125beb13ae6d21f87d65cbb0aa93
7
+ data.tar.gz: 12660aa0b5a7aab15726b65f1d068e11e754b5ca20512a18f7ab85eaee5b15457052f92d8568f521c1d1662f2b6dab82cd0b5ed95f0e4f2964d1ebd1f485f217
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.1
2
+ =====
3
+ - Rails 5 support
4
+ - Remove deprecation warning on timeout setter for Rails apps
5
+
1
6
  0.4.0
2
7
  =====
3
8
  - Using monotonic time instead of Time.now where available (/ht concurrent-ruby)
@@ -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-2015 Caio Chassot, released under the MIT license
318
+ Copyright © 2010-2016 Caio Chassot, released under the MIT license
319
319
  <http://github.com/heroku/rack-timeout>
@@ -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)
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-timeout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Chassot