rack-timeout 0.4.1 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cbb596c0b6e919a2f4416ea0891d1d5bfbac1cb
4
- data.tar.gz: 2352ab4deb41e18a4b464a3c47819a66c5cab827
3
+ metadata.gz: 87b7082006e199c0aafd7a9f3da42cd99c58c242
4
+ data.tar.gz: 46fbc6fbfb1ee52bba6dcfdc39b63764cc9ef283
5
5
  SHA512:
6
- metadata.gz: ba0333f6ca3ebd2a95df0815a89adc52094525e671d8e2b448d5ee111e867353b505375a31c147123a37c4c1a15fa754b7c8125beb13ae6d21f87d65cbb0aa93
7
- data.tar.gz: 12660aa0b5a7aab15726b65f1d068e11e754b5ca20512a18f7ab85eaee5b15457052f92d8568f521c1d1662f2b6dab82cd0b5ed95f0e4f2964d1ebd1f485f217
6
+ metadata.gz: 8985ff46ae3101ad1da50fe9cd56c25d384f57f4e4065feb893e5176a4cd51a53cb926862ea876ea0bf2ae636f0c7275d0a63b91cd172bd91c02c7031aa3026f
7
+ data.tar.gz: f7ae0275dc85808da16fd0de36396a9b6c53ce8e19d6e562e1fd90315c0cb3485469745ce480a9b8633d2d497fc8ee6a1716e538c3258a76b2d42879a7a3ac75
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.4.2
2
+ =====
3
+ - Ruby 2.0 compatible
4
+
1
5
  0.4.1
2
6
  =====
3
7
  - Rails 5 support
@@ -26,12 +26,9 @@ module Rack::Timeout::ClassLevelProperties
26
26
  end
27
27
 
28
28
  module InstanceMethods
29
- def read_timeout_property_with_class_override property_name
30
- read_timeout_property self.class.send(property_name), method(property_name).super_method.call
31
- end
32
29
 
33
30
  [:service_timeout, :wait_timeout, :wait_overtime].each do |m|
34
- define_method(m) { read_timeout_property_with_class_override m }
31
+ define_method(m) { read_timeout_property self.class.send(m), super() }
35
32
  end
36
33
 
37
34
  def service_past_wait
@@ -43,4 +40,4 @@ end
43
40
 
44
41
 
45
42
  Rack::Timeout.extend Rack::Timeout::ClassLevelProperties::ClassMethods
46
- Rack::Timeout.prepend Rack::Timeout::ClassLevelProperties::InstanceMethods
43
+ Rack::Timeout.send :prepend, Rack::Timeout::ClassLevelProperties::InstanceMethods
@@ -6,7 +6,7 @@ require_relative "core"
6
6
  #
7
7
  # require "rack/timeout/rollbar"
8
8
  #
9
- # Ruby 2.0 is required as we use `Module.prepend`.
9
+ # Ruby 2.1 is required as we use `Module.prepend`.
10
10
  #
11
11
  # To use a custom fingerprint for grouping:
12
12
  #
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Chassot