lino 2.6.0.pre.2 → 3.1.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -30
- data/lib/lino/appliables.rb +2 -2
- data/lib/lino/command_line_builder.rb +5 -5
- data/lib/lino/options.rb +4 -4
- data/lib/lino/utilities.rb +10 -2
- data/lib/lino/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f33b5fd0e5939e88c4d9ae9732d0e84271656f4c73ff8aca284d13ee7643bc47
|
4
|
+
data.tar.gz: 5e98a6c34c076cb4c18eb2074b5e45b5d52e4860f77ab74f34c6bdc6c8fb7eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 753949ef4e2a1d2479dbfc312375649abf4e3fdff893d07224d1094212984ecc77a95ff6273a1bb16ea41dfcb61fe0c172c21405c70aa7fd4cdc1237bfe265c5
|
7
|
+
data.tar.gz: eae6bb372ee98eca364607bb040ba0e0a43f3484514c87259cfb51fd0c753b92777b658ef396fb0244ce7628213a6e39e40ff7796d1b41f916b12fbf4f96fbb6
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lino (
|
4
|
+
lino (3.1.0.pre.1)
|
5
5
|
hamster (~> 3.0)
|
6
6
|
open4 (~> 1.3)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.1.
|
11
|
+
activesupport (6.1.3.2)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 1.6, < 2)
|
14
14
|
minitest (>= 5.1)
|
@@ -18,28 +18,36 @@ GEM
|
|
18
18
|
public_suffix (>= 2.0.2, < 5.0)
|
19
19
|
ast (2.4.2)
|
20
20
|
colored2 (3.1.2)
|
21
|
-
concurrent-ruby (1.1.
|
21
|
+
concurrent-ruby (1.1.8)
|
22
22
|
diff-lcs (1.4.4)
|
23
|
-
docile (1.
|
24
|
-
excon (0.
|
25
|
-
faraday (1.
|
23
|
+
docile (1.4.0)
|
24
|
+
excon (0.82.0)
|
25
|
+
faraday (1.4.2)
|
26
|
+
faraday-em_http (~> 1.0)
|
27
|
+
faraday-em_synchrony (~> 1.0)
|
28
|
+
faraday-excon (~> 1.1)
|
26
29
|
faraday-net_http (~> 1.0)
|
30
|
+
faraday-net_http_persistent (~> 1.1)
|
27
31
|
multipart-post (>= 1.2, < 3)
|
28
|
-
ruby2_keywords
|
29
|
-
faraday-
|
30
|
-
|
32
|
+
ruby2_keywords (>= 0.0.4)
|
33
|
+
faraday-em_http (1.0.0)
|
34
|
+
faraday-em_synchrony (1.0.0)
|
35
|
+
faraday-excon (1.1.0)
|
36
|
+
faraday-net_http (1.0.1)
|
37
|
+
faraday-net_http_persistent (1.1.0)
|
38
|
+
gem-release (2.2.1)
|
31
39
|
hamster (3.0.0)
|
32
40
|
concurrent-ruby (~> 1.0)
|
33
|
-
i18n (1.8.
|
41
|
+
i18n (1.8.10)
|
34
42
|
concurrent-ruby (~> 1.0)
|
35
|
-
minitest (5.14.
|
43
|
+
minitest (5.14.4)
|
36
44
|
multipart-post (2.1.1)
|
37
|
-
octokit (4.
|
45
|
+
octokit (4.21.0)
|
38
46
|
faraday (>= 0.9)
|
39
47
|
sawyer (~> 0.8.0, >= 0.5.3)
|
40
48
|
open4 (1.3.4)
|
41
49
|
parallel (1.20.1)
|
42
|
-
parser (3.0.
|
50
|
+
parser (3.0.1.1)
|
43
51
|
ast (~> 2.4.1)
|
44
52
|
public_suffix (4.0.6)
|
45
53
|
rainbow (3.0.0)
|
@@ -49,23 +57,23 @@ GEM
|
|
49
57
|
excon (~> 0.72)
|
50
58
|
rake_factory (~> 0.23)
|
51
59
|
sshkey (~> 2.0)
|
52
|
-
rake_factory (0.
|
60
|
+
rake_factory (0.29.0)
|
53
61
|
activesupport (>= 4)
|
54
62
|
rake (~> 13.0)
|
55
|
-
rake_github (0.
|
63
|
+
rake_github (0.7.0)
|
56
64
|
colored2 (~> 3.1)
|
57
65
|
octokit (~> 4.16)
|
58
66
|
rake_factory (~> 0.23)
|
59
67
|
sshkey (~> 2.0)
|
60
|
-
rake_gpg (0.
|
68
|
+
rake_gpg (0.16.0)
|
61
69
|
rake_factory (>= 0.23, < 1)
|
62
70
|
ruby_gpg2 (>= 0.6, < 1)
|
63
|
-
rake_ssh (0.
|
71
|
+
rake_ssh (0.6.0)
|
64
72
|
colored2 (~> 3.1)
|
65
73
|
rake_factory (~> 0.23)
|
66
74
|
sshkey (~> 2.0)
|
67
75
|
regexp_parser (2.1.1)
|
68
|
-
rexml (3.2.
|
76
|
+
rexml (3.2.5)
|
69
77
|
rspec (3.10.0)
|
70
78
|
rspec-core (~> 3.10.0)
|
71
79
|
rspec-expectations (~> 3.10.0)
|
@@ -75,39 +83,39 @@ GEM
|
|
75
83
|
rspec-expectations (3.10.1)
|
76
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
77
85
|
rspec-support (~> 3.10.0)
|
78
|
-
rspec-mocks (3.10.
|
86
|
+
rspec-mocks (3.10.2)
|
79
87
|
diff-lcs (>= 1.2.0, < 2.0)
|
80
88
|
rspec-support (~> 3.10.0)
|
81
|
-
rspec-support (3.10.
|
82
|
-
rubocop (1.
|
89
|
+
rspec-support (3.10.2)
|
90
|
+
rubocop (1.15.0)
|
83
91
|
parallel (~> 1.10)
|
84
92
|
parser (>= 3.0.0.0)
|
85
93
|
rainbow (>= 2.2.2, < 4.0)
|
86
94
|
regexp_parser (>= 1.8, < 3.0)
|
87
95
|
rexml
|
88
|
-
rubocop-ast (>= 1.
|
96
|
+
rubocop-ast (>= 1.5.0, < 2.0)
|
89
97
|
ruby-progressbar (~> 1.7)
|
90
98
|
unicode-display_width (>= 1.4.0, < 3.0)
|
91
|
-
rubocop-ast (1.
|
92
|
-
parser (>=
|
99
|
+
rubocop-ast (1.7.0)
|
100
|
+
parser (>= 3.0.1.1)
|
93
101
|
rubocop-rake (0.5.1)
|
94
102
|
rubocop
|
95
|
-
rubocop-rspec (2.
|
103
|
+
rubocop-rspec (2.3.0)
|
96
104
|
rubocop (~> 1.0)
|
97
105
|
rubocop-ast (>= 1.1.0)
|
98
106
|
ruby-progressbar (1.11.0)
|
99
|
-
ruby2_keywords (0.0.
|
100
|
-
ruby_gpg2 (0.
|
107
|
+
ruby2_keywords (0.0.4)
|
108
|
+
ruby_gpg2 (0.8.0)
|
101
109
|
lino (>= 1.5)
|
102
110
|
sawyer (0.8.2)
|
103
111
|
addressable (>= 2.3.5)
|
104
112
|
faraday (> 0.8, < 2.0)
|
105
|
-
simplecov (0.
|
113
|
+
simplecov (0.21.2)
|
106
114
|
docile (~> 1.1)
|
107
115
|
simplecov-html (~> 0.11)
|
108
116
|
simplecov_json_formatter (~> 0.1)
|
109
117
|
simplecov-html (0.12.3)
|
110
|
-
simplecov_json_formatter (0.1.
|
118
|
+
simplecov_json_formatter (0.1.3)
|
111
119
|
sshkey (2.0.0)
|
112
120
|
tzinfo (2.0.4)
|
113
121
|
concurrent-ruby (~> 1.0)
|
@@ -133,4 +141,4 @@ DEPENDENCIES
|
|
133
141
|
simplecov (~> 0.16)
|
134
142
|
|
135
143
|
BUNDLED WITH
|
136
|
-
2.2.
|
144
|
+
2.2.18
|
data/lib/lino/appliables.rb
CHANGED
@@ -7,13 +7,13 @@ module Lino
|
|
7
7
|
include Lino::Utilities
|
8
8
|
|
9
9
|
def with_appliable(appliable)
|
10
|
-
return self if
|
10
|
+
return self if nil?(appliable)
|
11
11
|
|
12
12
|
appliable.apply(self)
|
13
13
|
end
|
14
14
|
|
15
15
|
def with_appliables(appliables)
|
16
|
-
return self if
|
16
|
+
return self if nil_or_empty?(appliables)
|
17
17
|
|
18
18
|
appliables.inject(self) do |s, appliable|
|
19
19
|
s.with_appliable(appliable)
|
@@ -44,7 +44,7 @@ module Lino
|
|
44
44
|
# rubocop:enable Metrics/ParameterLists
|
45
45
|
|
46
46
|
def with_subcommand(subcommand, &block)
|
47
|
-
return self if
|
47
|
+
return self if nil?(subcommand)
|
48
48
|
|
49
49
|
with(
|
50
50
|
subcommands: @subcommands.add(
|
@@ -56,7 +56,7 @@ module Lino
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def with_subcommands(subcommands, &block)
|
59
|
-
return self if
|
59
|
+
return self if nil_or_empty?(subcommands)
|
60
60
|
|
61
61
|
without_block = subcommands[0...-1]
|
62
62
|
with_block = subcommands.last
|
@@ -91,13 +91,13 @@ module Lino
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def with_argument(argument)
|
94
|
-
return self if
|
94
|
+
return self if nil?(argument)
|
95
95
|
|
96
96
|
with(arguments: @arguments.add({ components: [argument] }))
|
97
97
|
end
|
98
98
|
|
99
99
|
def with_arguments(arguments)
|
100
|
-
return self if
|
100
|
+
return self if nil_or_empty?(arguments)
|
101
101
|
|
102
102
|
arguments.inject(self) { |s, argument| s.with_argument(argument) }
|
103
103
|
end
|
@@ -114,7 +114,7 @@ module Lino
|
|
114
114
|
end
|
115
115
|
|
116
116
|
def with_environment_variables(environment_variables)
|
117
|
-
return self if
|
117
|
+
return self if nil_or_empty?(environment_variables)
|
118
118
|
|
119
119
|
environment_variables.entries.inject(self) do |s, var|
|
120
120
|
s.with_environment_variable(
|
data/lib/lino/options.rb
CHANGED
@@ -13,7 +13,7 @@ module Lino
|
|
13
13
|
quoting: nil,
|
14
14
|
placement: nil
|
15
15
|
)
|
16
|
-
return self if
|
16
|
+
return self if nil?(value)
|
17
17
|
|
18
18
|
with(options: @options.add(
|
19
19
|
{
|
@@ -26,7 +26,7 @@ module Lino
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def with_options(options)
|
29
|
-
return self if
|
29
|
+
return self if nil_or_empty?(options)
|
30
30
|
|
31
31
|
options.entries.inject(self) do |s, entry|
|
32
32
|
s.with_option(
|
@@ -58,13 +58,13 @@ module Lino
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def with_flag(flag)
|
61
|
-
return self if
|
61
|
+
return self if nil?(flag)
|
62
62
|
|
63
63
|
with(options: @options.add({ components: [flag] }))
|
64
64
|
end
|
65
65
|
|
66
66
|
def with_flags(flags)
|
67
|
-
return self if
|
67
|
+
return self if nil_or_empty?(flags)
|
68
68
|
|
69
69
|
flags.inject(self) { |s, flag| s.with_flag(flag) }
|
70
70
|
end
|
data/lib/lino/utilities.rb
CHANGED
@@ -22,8 +22,16 @@ module Lino
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
26
|
-
value.nil?
|
25
|
+
def nil?(value)
|
26
|
+
value.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
def empty?(value)
|
30
|
+
value.respond_to?(:empty?) && value.empty?
|
31
|
+
end
|
32
|
+
|
33
|
+
def nil_or_empty?(value)
|
34
|
+
nil?(value) || empty?(value)
|
27
35
|
end
|
28
36
|
|
29
37
|
private
|
data/lib/lino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hamster
|
@@ -208,7 +208,7 @@ dependencies:
|
|
208
208
|
version: '0.16'
|
209
209
|
description: Command line builders and executors.
|
210
210
|
email:
|
211
|
-
-
|
211
|
+
- maintainers@infrablocks.io
|
212
212
|
executables: []
|
213
213
|
extensions: []
|
214
214
|
extra_rdoc_files: []
|