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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/active_attr/typecasting/boolean_typecaster.rb +1 -1
- data/lib/active_attr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46cc15076eb772185aa186a1ad3b9f4d30a248ab2590a3313aee50234b88ad4a
|
4
|
+
data.tar.gz: 42ee4c91d0aa84ead0ec86bc4eb7b1e8ea552e473ee5186e365729cae151291b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d2e5e08442875430c1ebfb70a2456a212a2bb10526cb7c15713809cd92f9ad9959b9c0a9b5462715bb83fcd692f03fe841967ce766b5304c56d68414c66be15
|
7
|
+
data.tar.gz: 5d2b4c6bdd36b342fc32f709741577bb896e3e125834f96a7c81617ea8424b9d2a58fe819ea998d4e2b5bc71089e4c13140099140181a544be6385e2dfefe22d
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
data/lib/active_attr/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|