dorian-arguments 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/dorian/arguments.rb +4 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6e446f6aaac5736fad5f8f34cf06f47807106bfcf2c2a6bc9f4c947a5b30b5d
4
- data.tar.gz: 3afa1cea746fb8a29c4178d476848e9ea26275d6cee249700effd91c2934091a
3
+ metadata.gz: d87282bf8b2865a5d902061364c6676b007f7c3ea33d7d1bffb1c3ac06dad7d4
4
+ data.tar.gz: de56a25f6c9cee3a576c3e3d607ab1e10594f9857758f221f9f15ad31e38f3eb
5
5
  SHA512:
6
- metadata.gz: aca7cbf836751411ecabf3496a0ec0419367d82293cac10e5d95193b011229a4fe3531d307722d2edfdc6333690038f4258c57579ba1b78bebd80a12b9962941
7
- data.tar.gz: b75f7bab12e64f7727727163c11cbc3eb12e6a1e8e24e6b6fef49ec22f14ac721a47838815c3164d2a36a5505991220c080baa64924d69a35890519c63d098b9
6
+ metadata.gz: 3805164dbf37361497c93ac3984b66a672240344492f923b9cb6854e3e5be3ea9a1f5a05db0c7b58b84e9ab501790c60c0aa35f546c3b2a3f6b1109b4c59efd6
7
+ data.tar.gz: 90cbcfc94edd5772f6e86bd903b87618d6e87ac3b7417049e74f75b3b3ad1ef6f18068833bec9e5849f141610a8b7c253b89dd6d9b9a646e4ef1980a2282ffdb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.2
@@ -31,14 +31,14 @@ class Dorian
31
31
  }
32
32
 
33
33
  MATCHES = {
34
- BOOLEAN => /^(0|1|true|false)$/i,
34
+ BOOLEAN => /^(true|false)$/i,
35
35
  STRING => /^.+$/i,
36
36
  NUMBER => /^[0-9.]+$/i,
37
37
  INTEGER => /^[0-9]+$/i,
38
38
  DECIMAL => /^[0-9.]+$/i
39
39
  }
40
40
 
41
- BOOLEANS = { "0" => false, "1" => true, "true" => true, "false" => false }
41
+ BOOLEANS = { "true" => true, "false" => false }
42
42
 
43
43
  def initialize(**definition)
44
44
  @definition = definition
@@ -125,7 +125,8 @@ class Dorian
125
125
  .map { |key| key.size == 1 ? "-#{key}" : "--#{key}" }
126
126
  .join("|")
127
127
 
128
- message += " #{keys_message} #{type.upcase}, default: #{cast(type, default).inspect}\n"
128
+ message +=
129
+ " #{keys_message} #{type.upcase}, default: #{cast(type, default).inspect}\n"
129
130
  end
130
131
 
131
132
  message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-arguments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport