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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4c737157f6552423f6fbb2a5b4263e4f2a76b543d6f7ea15408988caeca61ff
4
- data.tar.gz: 20257769cf4a2807dc6a826e1e22ca5b52ecb1c650f8ed69662f787c013c2b64
3
+ metadata.gz: f33b5fd0e5939e88c4d9ae9732d0e84271656f4c73ff8aca284d13ee7643bc47
4
+ data.tar.gz: 5e98a6c34c076cb4c18eb2074b5e45b5d52e4860f77ab74f34c6bdc6c8fb7eb3
5
5
  SHA512:
6
- metadata.gz: 58d4387c603f527dec478c0ee57ded0af915da0111042ea8a16d10d54050755322ee1f6849fd3b427b783feb4116f6c75fe2ab56c38bcef21d782ed650b99db5
7
- data.tar.gz: 11d9561cb8c69833c035da08e04c5afb78ac54a90db6c1c2b1c59c752ebb199b0eb89d613d7ecdb60bb7c70b9d8afcffee3b7b3bfa7d024c3806da58dd89ac71
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 (2.6.0.pre.2)
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.0)
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.7)
21
+ concurrent-ruby (1.1.8)
22
22
  diff-lcs (1.4.4)
23
- docile (1.3.4)
24
- excon (0.78.1)
25
- faraday (1.3.0)
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-net_http (1.0.0)
30
- gem-release (2.2.0)
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.6)
41
+ i18n (1.8.10)
34
42
  concurrent-ruby (~> 1.0)
35
- minitest (5.14.2)
43
+ minitest (5.14.4)
36
44
  multipart-post (2.1.1)
37
- octokit (4.20.0)
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.0.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.27.0)
60
+ rake_factory (0.29.0)
53
61
  activesupport (>= 4)
54
62
  rake (~> 13.0)
55
- rake_github (0.5.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.12.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.4.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.4)
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.1)
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.1)
82
- rubocop (1.12.0)
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.2.0, < 2.0)
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.4.1)
92
- parser (>= 2.7.1.5)
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.2.0)
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.2)
100
- ruby_gpg2 (0.6.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.20.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.2)
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.16
144
+ 2.2.18
@@ -7,13 +7,13 @@ module Lino
7
7
  include Lino::Utilities
8
8
 
9
9
  def with_appliable(appliable)
10
- return self if missing?(appliable)
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 missing?(appliables)
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 missing?(subcommand)
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 missing?(subcommands)
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 missing?(argument)
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 missing?(arguments)
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 missing?(environment_variables)
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 missing?(value)
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 missing?(options)
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 missing?(flag)
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 missing?(flags)
67
+ return self if nil_or_empty?(flags)
68
68
 
69
69
  flags.inject(self) { |s, flag| s.with_flag(flag) }
70
70
  end
@@ -22,8 +22,16 @@ module Lino
22
22
  end
23
23
  end
24
24
 
25
- def missing?(value)
26
- value.nil? || (value.respond_to?(:empty?) && value.empty?)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lino
4
- VERSION = '2.6.0.pre.2'
4
+ VERSION = '3.1.0.pre.1'
5
5
  end
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: 2.6.0.pre.2
4
+ version: 3.1.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
- - Toby Clemson
7
+ - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-01 00:00:00.000000000 Z
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
- - tobyclemson@gmail.com
211
+ - maintainers@infrablocks.io
212
212
  executables: []
213
213
  extensions: []
214
214
  extra_rdoc_files: []