active_attr 0.15.2 → 0.15.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of active_attr might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13cccbd932517dff946d30e95472d0be860ee9ae904fb23c2ec51218b8d53bf1
4
- data.tar.gz: d6a7add449df97e240d2e6ecef52d50ae790a6c8b1929b55bfd8bab31435c5b2
3
+ metadata.gz: 46cc15076eb772185aa186a1ad3b9f4d30a248ab2590a3313aee50234b88ad4a
4
+ data.tar.gz: 42ee4c91d0aa84ead0ec86bc4eb7b1e8ea552e473ee5186e365729cae151291b
5
5
  SHA512:
6
- metadata.gz: 1420ec710d5245ac17ec4c4afa56745d37b0fe6fabf36767de00ac8e4a4e43248161a4e631054535aaaa5c2f61df5b6057068f0ed3f45a52293f9e904b0e92b3
7
- data.tar.gz: 10a86931d030166c531af1552223a6fc96803c7259fd1e61069f2bbc3ab5d8f70eb6bfb9e9cc619ed6772bb65ad7d6863dd3d4d681e9ae01241238b79a739863
6
+ metadata.gz: 1d2e5e08442875430c1ebfb70a2456a212a2bb10526cb7c15713809cd92f9ad9959b9c0a9b5462715bb83fcd692f03fe841967ce766b5304c56d68414c66be15
7
+ data.tar.gz: 5d2b4c6bdd36b342fc32f709741577bb896e3e125834f96a7c81617ea8424b9d2a58fe819ea998d4e2b5bc71089e4c13140099140181a544be6385e2dfefe22d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # ActiveAttr 0.15.3 (April 12, 2021)
2
+
3
+ * #185 Fixed ReDoS vulnerability in BooleanTypecaster#call (ねず)
4
+
1
5
  # ActiveAttr 0.15.2 (February 17, 2021)
2
6
 
3
7
  * ActiveAttr now supports Ruby 3.0
@@ -42,7 +42,7 @@ module ActiveAttr
42
42
  case value
43
43
  when *FALSE_VALUES then false
44
44
  when *NIL_VALUES then nil
45
- when Numeric, /\A[-+]?(0+\.?0*|0*\.?0+)\z/ then !value.to_f.zero?
45
+ when Numeric, /\A[-+]?(0++\.?0*|0*+\.?0+)\z/ then !value.to_f.zero?
46
46
  else value.present?
47
47
  end
48
48
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveAttr
2
2
  # Complete version string
3
3
  # @since 0.1.0
4
- VERSION = "0.15.2"
4
+ VERSION = "0.15.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Griego
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-17 00:00:00.000000000 Z
12
+ date: 2021-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack