super_settings 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/lib/super_settings/coerce.rb +2 -6
- 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: f22da070d026588b18f51a2fa161ef32fc08d0179a7b10f3251d55f954da9fc4
|
4
|
+
data.tar.gz: 31fe028eafb566c3e05fe99e08f4b7c8113d5812ac82871e315c71724bae0c7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1df8b3b2c0b6d99f7f3902c5e8fbc056f83446cfed7c990e9208b6aa18131503ad02f78b8d109b0e2f84e62f1466f77138b27b2391190622dab9a4fb9d948a1e
|
7
|
+
data.tar.gz: 2c3d3f56c9d7a67a745c012bc1f77c55d3e74012e79a018b9d191bf32d3125062992f4d3fc255b432e11ada92605bcf0ac8df3e8e928f239c432f079546892c4
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 2.0.2
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- Coercing a string to a boolean is now case insensitive (i.e. "True" is interpreted as `true` and "False" is interpreted as `false`).
|
12
|
+
|
7
13
|
## 2.0.1
|
8
14
|
|
9
15
|
### Added
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
@@ -7,14 +7,10 @@ module SuperSettings
|
|
7
7
|
class Coerce
|
8
8
|
# rubocop:disable Lint/BooleanSymbol
|
9
9
|
FALSE_VALUES = Set.new([
|
10
|
-
false, 0,
|
11
10
|
"0", :"0",
|
12
11
|
"f", :f,
|
13
|
-
"F", :F,
|
14
12
|
"false", :false,
|
15
|
-
"
|
16
|
-
"off", :off,
|
17
|
-
"OFF", :OFF
|
13
|
+
"off", :off
|
18
14
|
]).freeze
|
19
15
|
# rubocop:enable Lint/BooleanSymbol
|
20
16
|
|
@@ -29,7 +25,7 @@ module SuperSettings
|
|
29
25
|
elsif blank?(value)
|
30
26
|
nil
|
31
27
|
else
|
32
|
-
!FALSE_VALUES.include?(value)
|
28
|
+
!FALSE_VALUES.include?(value.to_s.downcase)
|
33
29
|
end
|
34
30
|
end
|
35
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Durand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|