ruby_leiningen 0.28.0.pre.5 → 0.28.0.pre.6

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: 8116817aa5c0a3f4c6da8ea4eb513a07fdd53715d4c1357397febb0f5eb289f5
4
- data.tar.gz: 2a113ab6e138820beef8b0384064fd10b3e9e30b810825e4f908c4d2a73cf1a7
3
+ metadata.gz: dc6c59551097adf009fea3602bd82efed006f7e206511a68f995bac0bdad7f3e
4
+ data.tar.gz: 6029b9b986815b68b6d564ca58c59d1902acdec2ab323652979a119b62be1702
5
5
  SHA512:
6
- metadata.gz: 94f46e30aae9afab0c9d9e625d389f26870368aa9df533c8f476b3067e4f9e290f456c5be8aabfc18686bdf6a37ccce093ca586bcdbd956a75830ebf617bffea
7
- data.tar.gz: 93e52a83d58d634a358db41bf17a500baf8d166d8d94cb76149a9697f4af8d5755f5dc1c1c91b1140426387d3e207b84accc8705b14a22fca959b845e9695f8f
6
+ metadata.gz: 559ad9ad0505314f70fc2ca1c7a5030007861c42dab1ba9c8516346f46d993c188f64aef806f451644c9fdc5c10327f770e036295b704946fbf90ce5fe831c0e
7
+ data.tar.gz: 8e3f3389c688ab5757e59901bf28e7970288acce84990c96f67e46ec90b5e7a1dce67a0aae5859cbde360b54a967883eca523f9dd274cba145e7521b26cee20e
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_leiningen (0.28.0.pre.5)
4
+ ruby_leiningen (0.28.0.pre.6)
5
5
  activesupport (>= 6.0.2, < 8)
6
- lino (= 3.2.0.pre.10)
6
+ lino (>= 3.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.1.2)
11
+ activesupport (7.1.3.4)
12
12
  base64
13
13
  bigdecimal
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -18,30 +18,29 @@ GEM
18
18
  minitest (>= 5.1)
19
19
  mutex_m
20
20
  tzinfo (~> 2.0)
21
- addressable (2.8.5)
22
- public_suffix (>= 2.0.2, < 6.0)
21
+ addressable (2.8.7)
22
+ public_suffix (>= 2.0.2, < 7.0)
23
23
  ast (2.4.2)
24
24
  base64 (0.2.0)
25
- bigdecimal (3.1.4)
25
+ bigdecimal (3.1.8)
26
26
  childprocess (5.0.0)
27
27
  coderay (1.1.3)
28
28
  colored2 (3.1.2)
29
- concurrent-ruby (1.2.2)
29
+ concurrent-ruby (1.3.3)
30
30
  connection_pool (2.4.1)
31
- diff-lcs (1.5.0)
31
+ diff-lcs (1.5.1)
32
32
  docile (1.4.0)
33
- drb (2.2.0)
34
- ruby2_keywords
35
- excon (0.104.0)
36
- faraday (2.7.11)
37
- base64
38
- faraday-net_http (>= 2.0, < 3.1)
39
- ruby2_keywords (>= 0.0.4)
40
- faraday-net_http (3.0.2)
33
+ drb (2.2.1)
34
+ excon (0.111.0)
35
+ faraday (2.10.0)
36
+ faraday-net_http (>= 2.0, < 3.2)
37
+ logger
38
+ faraday-net_http (3.1.0)
39
+ net-http
41
40
  ffi (1.17.0)
42
41
  formatador (1.1.0)
43
42
  gem-release (2.2.2)
44
- git (1.18.0)
43
+ git (1.19.1)
45
44
  addressable (~> 2.8)
46
45
  rchardet (~> 1.8)
47
46
  guard (2.18.1)
@@ -60,41 +59,45 @@ GEM
60
59
  rspec (>= 2.99.0, < 4.0)
61
60
  hamster (3.0.0)
62
61
  concurrent-ruby (~> 1.0)
63
- i18n (1.14.1)
62
+ i18n (1.14.5)
64
63
  concurrent-ruby (~> 1.0)
65
64
  immutable-struct (2.4.1)
66
- json (2.7.1)
65
+ json (2.7.2)
67
66
  language_server-protocol (3.17.0.3)
68
- lino (3.2.0.pre.10)
67
+ lino (4.1.0.pre.1)
69
68
  childprocess (~> 5.0.0)
70
69
  hamster (~> 3.0)
71
70
  open4 (~> 1.3)
72
71
  listen (3.9.0)
73
72
  rb-fsevent (~> 0.10, >= 0.10.3)
74
73
  rb-inotify (~> 0.9, >= 0.9.10)
74
+ logger (1.6.0)
75
75
  lumberjack (1.2.10)
76
76
  method_source (1.1.0)
77
- minitest (5.20.0)
77
+ minitest (5.24.1)
78
78
  mutex_m (0.2.0)
79
79
  nenv (0.3.0)
80
+ net-http (0.4.1)
81
+ uri
80
82
  notiffany (0.1.3)
81
83
  nenv (~> 0.1)
82
84
  shellany (~> 0.0)
83
- octokit (8.0.0)
85
+ octokit (8.1.0)
86
+ base64
84
87
  faraday (>= 1, < 3)
85
88
  sawyer (~> 0.9)
86
89
  open4 (1.3.4)
87
- parallel (1.23.0)
88
- parser (3.2.2.4)
90
+ parallel (1.25.1)
91
+ parser (3.3.4.0)
89
92
  ast (~> 2.4.1)
90
93
  racc
91
94
  pry (0.14.2)
92
95
  coderay (~> 1.1)
93
96
  method_source (~> 1.0)
94
- public_suffix (5.0.3)
95
- racc (1.7.3)
97
+ public_suffix (6.0.0)
98
+ racc (1.8.0)
96
99
  rainbow (3.1.1)
97
- rake (13.1.0)
100
+ rake (13.2.1)
98
101
  rake_circle_ci (0.11.0)
99
102
  colored2 (~> 3.1)
100
103
  excon (~> 0.72)
@@ -107,19 +110,19 @@ GEM
107
110
  colored2 (~> 3.1)
108
111
  git (~> 1.13, >= 1.13.2)
109
112
  rake_factory (= 0.32.0.pre.2)
110
- rake_git_crypt (0.1.0.pre.29)
113
+ rake_git_crypt (0.1.0.pre.32)
111
114
  colored2 (~> 3.1)
112
115
  rake_factory (= 0.32.0.pre.2)
113
- ruby_git_crypt (= 0.1.0.pre.4)
114
- ruby_gpg2 (~> 0.6)
116
+ ruby_git_crypt (= 0.1.0.pre.8)
117
+ ruby_gpg2 (= 0.11.0.pre.6)
115
118
  rake_github (0.13.0)
116
119
  colored2 (~> 3.1)
117
120
  octokit (>= 4.16, < 9.0)
118
121
  rake_factory (~> 0.23)
119
122
  sshkey (~> 2.0)
120
- rake_gpg (0.18.0)
123
+ rake_gpg (0.19.0.pre.6)
121
124
  rake_factory (~> 0.23)
122
- ruby_gpg2 (~> 0.6)
125
+ ruby_gpg2 (= 0.11.0.pre.6)
123
126
  rake_ssh (0.10.0)
124
127
  colored2 (~> 3.1)
125
128
  rake_factory (~> 0.23)
@@ -128,51 +131,45 @@ GEM
128
131
  rb-inotify (0.11.1)
129
132
  ffi (~> 1.0)
130
133
  rchardet (1.8.0)
131
- regexp_parser (2.8.3)
132
- rexml (3.2.6)
133
- rspec (3.12.0)
134
- rspec-core (~> 3.12.0)
135
- rspec-expectations (~> 3.12.0)
136
- rspec-mocks (~> 3.12.0)
137
- rspec-core (3.12.2)
138
- rspec-support (~> 3.12.0)
139
- rspec-expectations (3.12.3)
134
+ regexp_parser (2.9.2)
135
+ rexml (3.3.2)
136
+ strscan
137
+ rspec (3.13.0)
138
+ rspec-core (~> 3.13.0)
139
+ rspec-expectations (~> 3.13.0)
140
+ rspec-mocks (~> 3.13.0)
141
+ rspec-core (3.13.0)
142
+ rspec-support (~> 3.13.0)
143
+ rspec-expectations (3.13.1)
140
144
  diff-lcs (>= 1.2.0, < 2.0)
141
- rspec-support (~> 3.12.0)
142
- rspec-mocks (3.12.6)
145
+ rspec-support (~> 3.13.0)
146
+ rspec-mocks (3.13.1)
143
147
  diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.12.0)
145
- rspec-support (3.12.1)
146
- rubocop (1.59.0)
148
+ rspec-support (~> 3.13.0)
149
+ rspec-support (3.13.1)
150
+ rubocop (1.65.0)
147
151
  json (~> 2.3)
148
152
  language_server-protocol (>= 3.17.0)
149
153
  parallel (~> 1.10)
150
- parser (>= 3.2.2.4)
154
+ parser (>= 3.3.0.2)
151
155
  rainbow (>= 2.2.2, < 4.0)
152
- regexp_parser (>= 1.8, < 3.0)
156
+ regexp_parser (>= 2.4, < 3.0)
153
157
  rexml (>= 3.2.5, < 4.0)
154
- rubocop-ast (>= 1.30.0, < 2.0)
158
+ rubocop-ast (>= 1.31.1, < 2.0)
155
159
  ruby-progressbar (~> 1.7)
156
160
  unicode-display_width (>= 2.4.0, < 3.0)
157
- rubocop-ast (1.30.0)
158
- parser (>= 3.2.1.0)
159
- rubocop-capybara (2.19.0)
160
- rubocop (~> 1.41)
161
- rubocop-factory_bot (2.24.0)
162
- rubocop (~> 1.33)
161
+ rubocop-ast (1.31.3)
162
+ parser (>= 3.3.1.0)
163
163
  rubocop-rake (0.6.0)
164
164
  rubocop (~> 1.0)
165
- rubocop-rspec (2.25.0)
166
- rubocop (~> 1.40)
167
- rubocop-capybara (~> 2.17)
168
- rubocop-factory_bot (~> 2.22)
165
+ rubocop-rspec (3.0.3)
166
+ rubocop (~> 1.61)
169
167
  ruby-progressbar (1.13.0)
170
- ruby2_keywords (0.0.5)
171
- ruby_git_crypt (0.1.0.pre.4)
168
+ ruby_git_crypt (0.1.0.pre.8)
172
169
  immutable-struct (~> 2.4)
173
- lino (~> 3.0)
174
- ruby_gpg2 (0.10.0)
175
- lino (~> 3.0)
170
+ lino (>= 3.1)
171
+ ruby_gpg2 (0.11.0.pre.6)
172
+ lino (>= 3.1)
176
173
  sawyer (0.9.2)
177
174
  addressable (>= 2.3.5)
178
175
  faraday (>= 0.17.3, < 3)
@@ -184,10 +181,12 @@ GEM
184
181
  simplecov-html (0.12.3)
185
182
  simplecov_json_formatter (0.1.4)
186
183
  sshkey (2.0.0)
184
+ strscan (3.1.0)
187
185
  thor (1.3.1)
188
186
  tzinfo (2.0.6)
189
187
  concurrent-ruby (~> 1.0)
190
188
  unicode-display_width (2.5.0)
189
+ uri (0.13.0)
191
190
 
192
191
  PLATFORMS
193
192
  arm64-darwin-21
@@ -206,9 +205,9 @@ DEPENDENCIES
206
205
  rake
207
206
  rake_circle_ci
208
207
  rake_git
209
- rake_git_crypt
208
+ rake_git_crypt (>= 0.1.0.pre.31)
210
209
  rake_github
211
- rake_gpg
210
+ rake_gpg (>= 0.19.0.pre.6)
212
211
  rake_ssh
213
212
  rspec
214
213
  rubocop
@@ -23,12 +23,22 @@ module RubyLeiningen
23
23
  $stderr
24
24
  end
25
25
 
26
- def execute(opts = {})
27
- do_before(opts)
28
- configure_command(instantiate_builder, opts)
29
- .build
30
- .execute(stdin:, stdout:, stderr:)
31
- do_after(opts)
26
+ def execute(parameters = {})
27
+ parameters = resolve_parameters(parameters)
28
+
29
+ do_before(parameters)
30
+ result = build_and_execute_command(parameters)
31
+ do_after(parameters)
32
+
33
+ result
34
+ end
35
+
36
+ private
37
+
38
+ def build_and_execute_command(parameters)
39
+ command = configure_command(instantiate_builder, parameters).build
40
+
41
+ command.execute(stdin:, stdout:, stderr:)
32
42
  end
33
43
 
34
44
  def instantiate_builder
@@ -36,13 +46,27 @@ module RubyLeiningen
36
46
  .for_command(binary)
37
47
  end
38
48
 
39
- def do_before(opts); end
49
+ def do_before(_); end
40
50
 
41
- def configure_command(builder, _opts)
51
+ def configure_command(builder, _parameters)
42
52
  builder
43
53
  end
44
54
 
45
- def do_after(opts); end
55
+ def do_after(_); end
56
+
57
+ def resolve_parameters(parameters)
58
+ parameter_defaults(parameters)
59
+ .merge(parameters)
60
+ .merge(parameter_overrides(parameters))
61
+ end
62
+
63
+ def parameter_defaults(_parameters)
64
+ {}
65
+ end
66
+
67
+ def parameter_overrides(_parameters)
68
+ {}
69
+ end
46
70
  end
47
71
  end
48
72
  end
@@ -12,8 +12,8 @@ module RubyLeiningen
12
12
  include Mixins::Profile
13
13
  include Mixins::Environment
14
14
 
15
- def configure_command(builder, opts)
16
- builder = super(builder, opts)
15
+ def configure_command(initial_builder, opts)
16
+ builder = super
17
17
  builder.with_subcommand('check')
18
18
  end
19
19
  end
@@ -12,8 +12,8 @@ module RubyLeiningen
12
12
  include Mixins::Profile
13
13
  include Mixins::Environment
14
14
 
15
- def configure_command(builder, opts)
16
- builder = super(builder, opts)
15
+ def configure_command(initial_builder, opts)
16
+ builder = super
17
17
  builder.with_subcommand('clean')
18
18
  end
19
19
  end
@@ -12,8 +12,8 @@ module RubyLeiningen
12
12
  include Mixins::Profile
13
13
  include Mixins::Environment
14
14
 
15
- def configure_command(builder, opts)
16
- builder = super(builder, opts)
15
+ def configure_command(initial_builder, opts)
16
+ builder = super
17
17
  builder.with_subcommand('deps')
18
18
  end
19
19
  end
@@ -5,7 +5,7 @@ module RubyLeiningen
5
5
  module Mixins
6
6
  module Environment
7
7
  def initialize(opts = {})
8
- super(opts)
8
+ super
9
9
  @environment = opts[:environment]
10
10
  end
11
11
 
@@ -14,8 +14,8 @@ module RubyLeiningen
14
14
  self
15
15
  end
16
16
 
17
- def configure_command(builder, opts)
18
- builder = super(builder, opts)
17
+ def configure_command(initial_builder, opts)
18
+ builder = super
19
19
  environment = opts[:environment] || @environment
20
20
  if environment
21
21
  builder = environment.to_a
@@ -5,7 +5,7 @@ module RubyLeiningen
5
5
  module Mixins
6
6
  module Profile
7
7
  def initialize(opts = {})
8
- super(opts)
8
+ super
9
9
  @profile = opts[:profile]
10
10
  end
11
11
 
@@ -14,8 +14,8 @@ module RubyLeiningen
14
14
  self
15
15
  end
16
16
 
17
- def configure_command(builder, opts)
18
- builder = super(builder, opts)
17
+ def configure_command(initial_builder, opts)
18
+ builder = super
19
19
  profile = opts[:profile] || @profile
20
20
  if profile
21
21
  builder = builder
@@ -12,8 +12,8 @@ module RubyLeiningen
12
12
  include Mixins::Profile
13
13
  include Mixins::Environment
14
14
 
15
- def configure_command(builder, opts)
16
- builder = super(builder, opts)
15
+ def configure_command(initial_builder, opts)
16
+ builder = super
17
17
 
18
18
  level = opts[:level]
19
19
 
@@ -13,8 +13,8 @@ module RubyLeiningen
13
13
  include Mixins::Environment
14
14
 
15
15
  # rubocop:disable Style/RedundantAssignment
16
- def configure_command(builder, opts)
17
- builder = super(builder, opts)
16
+ def configure_command(initial_builder, opts)
17
+ builder = super
18
18
  builder = builder.with_subcommand('run') do |sub|
19
19
  sub = with_main_function(sub, opts[:main_function])
20
20
  sub = with_quote_arguments(sub, opts[:quote_arguments])
@@ -12,8 +12,8 @@ module RubyLeiningen
12
12
  include Mixins::Profile
13
13
  include Mixins::Environment
14
14
 
15
- def configure_command(builder, opts)
16
- builder = super(builder, opts)
15
+ def configure_command(initial_builder, opts)
16
+ builder = super
17
17
 
18
18
  main_namespace = opts[:main_namespace]
19
19
 
@@ -10,21 +10,18 @@ module RubyLeiningen
10
10
  class Version < Base
11
11
  include Mixins::Environment
12
12
 
13
- def stdout
14
- @version_string
13
+ def invocation_option_defaults(_invocation_options)
14
+ super.merge(capture: [:stdout])
15
15
  end
16
16
 
17
- def do_before(_opts)
18
- @version_string = StringIO.new
19
- end
20
-
21
- def configure_command(builder, opts)
22
- builder = super(builder, opts)
17
+ def configure_command(initial_builder, opts)
18
+ builder = super
23
19
  builder.with_argument('version')
24
20
  end
25
21
 
26
- def do_after(_opts)
27
- @version_string.string.gsub("\n", '')
22
+ def process_result(result, _parameters, _invocation_options)
23
+ output = result[:output]
24
+ output.gsub("\n", '')
28
25
  end
29
26
  end
30
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLeiningen
4
- VERSION = '0.28.0.pre.5'
4
+ VERSION = '0.28.0.pre.6'
5
5
  end
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
  spec.required_ruby_version = '>= 3.1'
38
38
 
39
39
  spec.add_dependency 'activesupport', '>= 6.0.2', '< 8'
40
- spec.add_dependency 'lino', '3.2.0.pre.10'
40
+ spec.add_dependency 'lino', '>= 3.1'
41
41
 
42
42
  spec.add_development_dependency 'bundler'
43
43
  spec.add_development_dependency 'gem-release'
@@ -46,9 +46,9 @@ Gem::Specification.new do |spec|
46
46
  spec.add_development_dependency 'rake'
47
47
  spec.add_development_dependency 'rake_circle_ci'
48
48
  spec.add_development_dependency 'rake_git'
49
- spec.add_development_dependency 'rake_git_crypt'
49
+ spec.add_development_dependency 'rake_git_crypt', '>= 0.1.0.pre.31'
50
50
  spec.add_development_dependency 'rake_github'
51
- spec.add_development_dependency 'rake_gpg'
51
+ spec.add_development_dependency 'rake_gpg', '>= 0.19.0.pre.6'
52
52
  spec.add_development_dependency 'rake_ssh'
53
53
  spec.add_development_dependency 'rspec'
54
54
  spec.add_development_dependency 'rubocop'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_leiningen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0.pre.5
4
+ version: 0.28.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-10 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -34,16 +34,16 @@ dependencies:
34
34
  name: lino
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.2.0.pre.10
39
+ version: '3.1'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.2.0.pre.10
46
+ version: '3.1'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -148,14 +148,14 @@ dependencies:
148
148
  requirements:
149
149
  - - ">="
150
150
  - !ruby/object:Gem::Version
151
- version: '0'
151
+ version: 0.1.0.pre.31
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
- version: '0'
158
+ version: 0.1.0.pre.31
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: rake_github
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -176,14 +176,14 @@ dependencies:
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: '0'
179
+ version: 0.19.0.pre.6
180
180
  type: :development
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: '0'
186
+ version: 0.19.0.pre.6
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: rake_ssh
189
189
  requirement: !ruby/object:Gem::Requirement