activesupport 5.0.0.beta1 → 5.0.0.beta1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 024273a23d7e6cc96b22a85a01b06381086fc6e4
|
4
|
+
data.tar.gz: 37c109760b68500ed51cdef73f9f2c4133a724ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1780db97c7a6fb5717de6f6de150f554029e8c0b98d7edd7713e104b0653202dff412762234c9a5417aec82fa8c38732ef4ef94309148655b6691d12dd284d76
|
7
|
+
data.tar.gz: 1b9086c031e6092441900dc315d93292159cfb7a6f3aafb8201363ca4b75fddcbd184fd1550fda107f8159830ad321374e221e6d6627421d2e0e47c2940c3057
|
@@ -71,7 +71,7 @@ module ActiveSupport
|
|
71
71
|
# halt the entire callback chain and display a deprecation message.
|
72
72
|
# If false, callback chains will only be halted by calling +throw :abort+.
|
73
73
|
# Defaults to +true+.
|
74
|
-
mattr_accessor(:halt_and_display_warning_on_return_false) { true }
|
74
|
+
mattr_accessor(:halt_and_display_warning_on_return_false, instance_writer: false) { true }
|
75
75
|
|
76
76
|
# Runs the callbacks for the given event.
|
77
77
|
#
|
@@ -742,7 +742,7 @@ module ActiveSupport
|
|
742
742
|
options = names.extract_options!
|
743
743
|
|
744
744
|
names.each do |name|
|
745
|
-
class_attribute "_#{name}_callbacks"
|
745
|
+
class_attribute "_#{name}_callbacks", instance_writer: false
|
746
746
|
set_callbacks name, CallbackChain.new(name, options)
|
747
747
|
|
748
748
|
module_eval <<-RUBY, __FILE__, __LINE__ + 1
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'digest'
|
2
|
+
|
1
3
|
module ActiveSupport
|
2
4
|
module SecurityUtils
|
3
5
|
# Constant time string comparison.
|
@@ -16,5 +18,10 @@ module ActiveSupport
|
|
16
18
|
res == 0
|
17
19
|
end
|
18
20
|
module_function :secure_compare
|
21
|
+
|
22
|
+
def variable_size_secure_compare(a, b) # :nodoc:
|
23
|
+
secure_compare(::Digest::SHA256.hexdigest(a), ::Digest::SHA256.hexdigest(b))
|
24
|
+
end
|
25
|
+
module_function :variable_size_secure_compare
|
19
26
|
end
|
20
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.beta1
|
4
|
+
version: 5.0.0.beta1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -363,4 +363,3 @@ specification_version: 4
|
|
363
363
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
364
364
|
Rails framework.
|
365
365
|
test_files: []
|
366
|
-
has_rdoc:
|