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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7e5362ee5262805e4178be0485c0a3fba4d3f5468a793b8819abd1bb0322399
4
- data.tar.gz: 1051e29b721ffb12a431b14ad660b13b25673abd766f7f987838030f665807cc
3
+ metadata.gz: f22da070d026588b18f51a2fa161ef32fc08d0179a7b10f3251d55f954da9fc4
4
+ data.tar.gz: 31fe028eafb566c3e05fe99e08f4b7c8113d5812ac82871e315c71724bae0c7a
5
5
  SHA512:
6
- metadata.gz: f29c06dc13802640cb1b7edd51b2fc8d8f2ed01f1e354fc6fe1eb50f58c32baa331ebb21fed9c42858c86a4d0a8a1b5a220aa1ca6bd1fe1c7a17fe2217cbcdf5
7
- data.tar.gz: e5f5d481458271761744533629e504c93b8c4a3b4b70da048881ac1b272de1f8266e1da10444a55d5af7c60415c2de11eba9ba33fdf8f9d637ff3e33adc7b616
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
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
- "FALSE", :FALSE,
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.1
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-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler