parent
bcf49f4cdd
commit
0cd78450e1
@ -0,0 +1,22 @@
|
|||||||
|
From 598f10c00084f20e277b82ed83a8ef8bd85a1a78 Mon Sep 17 00:00:00 2001
|
||||||
|
From: utilum <oz@utilum.com>
|
||||||
|
Date: Thu, 15 Dec 2016 02:42:52 +0100
|
||||||
|
Subject: [PATCH] Fix Fixnum deprecated warning in Ruby 2.4+
|
||||||
|
|
||||||
|
---
|
||||||
|
activesupport/test/core_ext/duration_test.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/activesupport/test/core_ext/duration_test.rb b/activesupport/test/core_ext/duration_test.rb
|
||||||
|
index 26a9ea4..6f7f16d 100644
|
||||||
|
--- a/activesupport/test/core_ext/duration_test.rb
|
||||||
|
+++ b/activesupport/test/core_ext/duration_test.rb
|
||||||
|
@@ -21,7 +21,7 @@ class << k; undef_method :== end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_instance_of
|
||||||
|
- assert 1.minute.instance_of?(Fixnum)
|
||||||
|
+ assert 1.minute.instance_of?(1.class)
|
||||||
|
assert 2.days.instance_of?(ActiveSupport::Duration)
|
||||||
|
assert !3.second.instance_of?(Numeric)
|
||||||
|
end
|
@ -0,0 +1,22 @@
|
|||||||
|
From 8683ac5983ddfd8b47b6aac6ab51269611610f42 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Rafael=20Fran=C3=A7a?= <rafaelmfranca@gmail.com>
|
||||||
|
Date: Sun, 13 Nov 2016 19:58:52 -0500
|
||||||
|
Subject: [PATCH] Merge pull request #27033 from vipulnsward/fix-bignum-warning
|
||||||
|
|
||||||
|
Remove warning from Bignum constant access
|
||||||
|
---
|
||||||
|
activesupport/test/core_ext/numeric_ext_test.rb | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb
|
||||||
|
index 69c30a8..79a4802 100644
|
||||||
|
--- a/activesupport/test/core_ext/numeric_ext_test.rb
|
||||||
|
+++ b/activesupport/test/core_ext/numeric_ext_test.rb
|
||||||
|
@@ -425,7 +425,6 @@ def test_in_milliseconds
|
||||||
|
|
||||||
|
# TODO: Remove positive and negative tests when we drop support to ruby < 2.3
|
||||||
|
b = 2**64
|
||||||
|
- b *= b until Bignum === b
|
||||||
|
|
||||||
|
T_ZERO = b.coerce(0).first
|
||||||
|
T_ONE = b.coerce(1).first
|
Loading…
Reference in new issue