activesupport 4.2.5 → 4.2.5.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: 61b8d3f7b7567155481d04cb842d4ffafa441abe
4
- data.tar.gz: cadd0882bd760c4b0cb206a9abde82791e304413
3
+ metadata.gz: 11e2befa2a956b711660d14d7e4745f795216272
4
+ data.tar.gz: 07e54f266dae89387166111387be3589103e9c8e
5
5
  SHA512:
6
- metadata.gz: 8b7f68146497c8b513710e3e5bee0782e6dc01039f78a910d1226ab9caf19b524feafa1df9dd859492f43dcdc78389d8d0ae7c248f013fbb1abc6768a0d999c8
7
- data.tar.gz: c747288209536e557565cdf470f2e12c5f786f1137388548af3fabfdbd523260bdf68b0c5b37adf0b0ddb4fdb3ea749e84d16f78eb9abb5bdee671971750c7d8
6
+ metadata.gz: 54fa46c33d465758894e9fbd0f84893b64626cebb9f338c4a06c1386db2a12a82a7f4a3d222927d0a7edee952781b30e25eb31d8c84ed28239a4eddeb1dce3fc
7
+ data.tar.gz: e2dc6d1107916a92dfe53b759c7b931443af82461c6c84aa4156fd5a4bda653b4fb20e1180d5c72f3bab16dab41dbc6e49d29cf93ea7bb7fc9c5935a636f93cc
@@ -770,7 +770,7 @@ module ActiveSupport
770
770
  options = names.extract_options!
771
771
 
772
772
  names.each do |name|
773
- class_attribute "_#{name}_callbacks"
773
+ class_attribute "_#{name}_callbacks", instance_writer: false
774
774
  set_callbacks name, CallbackChain.new(name, options)
775
775
 
776
776
  module_eval <<-RUBY, __FILE__, __LINE__ + 1
@@ -8,7 +8,7 @@ module ActiveSupport
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 5
11
- PRE = nil
11
+ PRE = "1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -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: 4.2.5
4
+ version: 4.2.5.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: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.4.5.1
342
+ rubygems_version: 2.5.1
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: A toolkit of support libraries and Ruby core extensions extracted from the