dorian-arguments 0.3.2 → 0.4.0

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 +1 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d87282bf8b2865a5d902061364c6676b007f7c3ea33d7d1bffb1c3ac06dad7d4
4
- data.tar.gz: de56a25f6c9cee3a576c3e3d607ab1e10594f9857758f221f9f15ad31e38f3eb
3
+ metadata.gz: cc579f34962851e94c9dbb25076a376bbd4ec0964a633fe203cf9305b04e9846
4
+ data.tar.gz: 010b8729ceadcb3218b8aecc4e962d1388410800d1e3f2bb2951de471432f2b8
5
5
  SHA512:
6
- metadata.gz: 3805164dbf37361497c93ac3984b66a672240344492f923b9cb6854e3e5be3ea9a1f5a05db0c7b58b84e9ab501790c60c0aa35f546c3b2a3f6b1109b4c59efd6
7
- data.tar.gz: 90cbcfc94edd5772f6e86bd903b87618d6e87ac3b7417049e74f75b3b3ad1ef6f18068833bec9e5849f141610a8b7c253b89dd6d9b9a646e4ef1980a2282ffdb
6
+ metadata.gz: c6941be11a01b550fd0c1e62287dee2b1340c09c4d1c90d02ec19fdce5fc456e2f21174ac9af0b7cebc1fe84a53f58253b676c58d2f80c6a2fbb23e7a6964cd7
7
+ data.tar.gz: 04176f0804eb3f462aac1802997f063921fed0781defa2583a98bf0a0c65060ff58b8b87a2f612b6611a0be02154fe2b8ccf13c9ce65ded6233a41766df115f2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
@@ -74,8 +74,6 @@ class Dorian
74
74
  indexes << index + 1
75
75
 
76
76
  arguments[index + 1]
77
- elsif type == BOOLEAN
78
- "true"
79
77
  else
80
78
  default
81
79
  end
@@ -85,7 +83,7 @@ class Dorian
85
83
 
86
84
  indexes.sort.reverse.uniq.each { |index| arguments.delete_at(index) }
87
85
 
88
- values = [DEFAULTS.fetch(type)] if values.empty?
86
+ values = [default] if values.empty?
89
87
  values = values.map { |value| cast(type, value) }
90
88
  values = values.first unless values.many?
91
89
  options[key] = values
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.2
4
+ version: 0.4.0
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-22 00:00:00.000000000 Z
11
+ date: 2024-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport