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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/dorian/arguments.rb +1 -3
- 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: cc579f34962851e94c9dbb25076a376bbd4ec0964a633fe203cf9305b04e9846
|
4
|
+
data.tar.gz: 010b8729ceadcb3218b8aecc4e962d1388410800d1e3f2bb2951de471432f2b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6941be11a01b550fd0c1e62287dee2b1340c09c4d1c90d02ec19fdce5fc456e2f21174ac9af0b7cebc1fe84a53f58253b676c58d2f80c6a2fbb23e7a6964cd7
|
7
|
+
data.tar.gz: 04176f0804eb3f462aac1802997f063921fed0781defa2583a98bf0a0c65060ff58b8b87a2f612b6611a0be02154fe2b8ccf13c9ce65ded6233a41766df115f2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/dorian/arguments.rb
CHANGED
@@ -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 = [
|
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.
|
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-
|
11
|
+
date: 2024-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|