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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6b8d73d1b83fd4e09bd2cd61bcc0b0717bb14c43976688dbe26d7b84037f725
4
- data.tar.gz: b1e0ee813a1300a0935a78eaa224677ec60d36181a573e3f4a0ec0e9fb426c61
3
+ metadata.gz: 2d3239ef901d72bbd89e5598f649ee2625db692423799f43ca6f19d5a2c5adc3
4
+ data.tar.gz: 0af4ae160b6537f103ee8c3e44be99dc340e0a6f197fc4c24e0abb4400caeaac
5
5
  SHA512:
6
- metadata.gz: e78ac95f2c066ca9de9b1b04aceae7ab7ed0a744df486558414abfb8bf725f3bb3a9f37c53220fbd68b7a5bbb2ec9d0eb98da2e40d08943692ac07a7799f0a07
7
- data.tar.gz: 1697191e1593ceef0785913ec5091ba06cad2af156ba97db7196157da9bf017cfc710d434b71012a44b3470c059669a86f06b1e5fdb865593437ab89a4d662dc
6
+ metadata.gz: c32a2ca3976575b417d6c2aa2f90c187aca4b1de97cddc668a3da9e2e3f01a8b8e5a67d1c2333aa37f108cac3823682e40a11dbbb7a07e558a2c04ce86bdaec7
7
+ data.tar.gz: 1158933758b878a110f6d956d24484e65a3cd3271c98e39c6f32754f0af2b92beb1d3e2a02950e0b3e604a7db4211960f52c0cb960aa17109b417174db139a10
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lino (2.2.0.pre.1)
4
+ lino (2.2.0.pre.2)
5
5
  hamster (~> 3.0)
6
6
  open4 (~> 1.3)
7
7
 
@@ -95,6 +95,8 @@ module Lino
95
95
  end
96
96
 
97
97
  def with_arguments(arguments)
98
+ return self if missing?(arguments)
99
+
98
100
  arguments.inject(self) { |s, argument| s.with_argument(argument) }
99
101
  end
100
102
 
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lino
4
- VERSION = '2.2.0.pre.1'
4
+ VERSION = '2.2.0.pre.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lino
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.pre.1
4
+ version: 2.2.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson