lino 2.2.0.pre.1 → 2.2.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/lino/command_line_builder.rb +2 -0
- data/lib/lino/options.rb +8 -0
- data/lib/lino/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d3239ef901d72bbd89e5598f649ee2625db692423799f43ca6f19d5a2c5adc3
|
4
|
+
data.tar.gz: 0af4ae160b6537f103ee8c3e44be99dc340e0a6f197fc4c24e0abb4400caeaac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32a2ca3976575b417d6c2aa2f90c187aca4b1de97cddc668a3da9e2e3f01a8b8e5a67d1c2333aa37f108cac3823682e40a11dbbb7a07e558a2c04ce86bdaec7
|
7
|
+
data.tar.gz: 1158933758b878a110f6d956d24484e65a3cd3271c98e39c6f32754f0af2b92beb1d3e2a02950e0b3e604a7db4211960f52c0cb960aa17109b417174db139a10
|
data/Gemfile.lock
CHANGED
data/lib/lino/options.rb
CHANGED
@@ -21,7 +21,15 @@ module Lino
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def with_flag(flag)
|
24
|
+
return self if missing?(flag)
|
25
|
+
|
24
26
|
with(options: @options.add({ components: [flag] }))
|
25
27
|
end
|
28
|
+
|
29
|
+
def with_flags(flags)
|
30
|
+
return self if missing?(flags)
|
31
|
+
|
32
|
+
flags.inject(self) { |s, flag| s.with_flag(flag) }
|
33
|
+
end
|
26
34
|
end
|
27
35
|
end
|
data/lib/lino/version.rb
CHANGED