rdm 0.4.19 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +25 -16
- data/example/Gemfile.lock +14 -11
- data/example/infrastructure/repository/fixture.txt +1 -0
- data/example/infrastructure/repository/spec/example_spec.rb +1 -1
- data/lib/rdm/spec_runner/command_params.rb +5 -1
- data/lib/rdm/spec_runner/runner.rb +22 -10
- data/lib/rdm/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65babe0e674018bc13bbca51788d45b2d1c3a2fcc315903d45dde0b4af8875e3
|
|
4
|
+
data.tar.gz: 92a5636ee330dace1043388cb2be0b0854c10ba013c069386c4ca4cc61c82e33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe7228f97194c0831598fec83af8cd9de397a273df269c7e261bbe6ee61484501b2a4d3006a57c6a7626387a7003b011578a05db36e4b63d1799d244595679bb
|
|
7
|
+
data.tar.gz: 9dd347fbb14ce3d30bc8685056d4144388108773def8dfa5088a15e77de0fb368224a6fec76cbaca06603a8285bdae732d1b7824ad23e22c4b47d5bfeba81e4d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rdm (0.4.
|
|
4
|
+
rdm (0.4.20)
|
|
5
5
|
activesupport
|
|
6
6
|
commander (~> 4.4)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activesupport (
|
|
11
|
+
activesupport (6.0.3.4)
|
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
13
|
i18n (>= 0.7, < 2)
|
|
14
14
|
minitest (~> 5.1)
|
|
15
15
|
tzinfo (~> 1.1)
|
|
16
|
-
|
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
|
17
|
+
ast (2.4.1)
|
|
17
18
|
byebug (9.0.6)
|
|
18
19
|
codecov (0.2.5)
|
|
19
20
|
colorize
|
|
@@ -30,11 +31,13 @@ GEM
|
|
|
30
31
|
concurrent-ruby (~> 1.0)
|
|
31
32
|
json (2.3.1)
|
|
32
33
|
minitest (5.14.2)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
rainbow (
|
|
37
|
-
rake (
|
|
34
|
+
parallel (1.19.2)
|
|
35
|
+
parser (2.7.2.0)
|
|
36
|
+
ast (~> 2.4.1)
|
|
37
|
+
rainbow (3.0.0)
|
|
38
|
+
rake (13.0.1)
|
|
39
|
+
regexp_parser (1.8.2)
|
|
40
|
+
rexml (3.2.4)
|
|
38
41
|
rspec (3.5.0)
|
|
39
42
|
rspec-core (~> 3.5.0)
|
|
40
43
|
rspec-expectations (~> 3.5.0)
|
|
@@ -48,13 +51,18 @@ GEM
|
|
|
48
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
49
52
|
rspec-support (~> 3.5.0)
|
|
50
53
|
rspec-support (3.5.0)
|
|
51
|
-
rubocop (0.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
rainbow (>=
|
|
54
|
+
rubocop (0.93.1)
|
|
55
|
+
parallel (~> 1.10)
|
|
56
|
+
parser (>= 2.7.1.5)
|
|
57
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
58
|
+
regexp_parser (>= 1.8)
|
|
59
|
+
rexml
|
|
60
|
+
rubocop-ast (>= 0.6.0)
|
|
55
61
|
ruby-progressbar (~> 1.7)
|
|
56
|
-
unicode-display_width (
|
|
57
|
-
|
|
62
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
|
63
|
+
rubocop-ast (0.8.0)
|
|
64
|
+
parser (>= 2.7.1.5)
|
|
65
|
+
ruby-progressbar (1.10.1)
|
|
58
66
|
simplecov (0.17.1)
|
|
59
67
|
docile (~> 1.1)
|
|
60
68
|
json (>= 1.8, < 3)
|
|
@@ -63,7 +71,8 @@ GEM
|
|
|
63
71
|
thread_safe (0.3.6)
|
|
64
72
|
tzinfo (1.2.7)
|
|
65
73
|
thread_safe (~> 0.1)
|
|
66
|
-
unicode-display_width (1.
|
|
74
|
+
unicode-display_width (1.7.0)
|
|
75
|
+
zeitwerk (2.4.0)
|
|
67
76
|
|
|
68
77
|
PLATFORMS
|
|
69
78
|
ruby
|
|
@@ -75,7 +84,7 @@ DEPENDENCIES
|
|
|
75
84
|
rake
|
|
76
85
|
rdm!
|
|
77
86
|
rspec
|
|
78
|
-
rubocop (~> 0.
|
|
87
|
+
rubocop (~> 0.93)
|
|
79
88
|
|
|
80
89
|
BUNDLED WITH
|
|
81
90
|
2.1.4
|
data/example/Gemfile.lock
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
rdm (0.
|
|
4
|
+
rdm (0.4.19)
|
|
5
5
|
activesupport
|
|
6
6
|
commander (~> 4.4)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activesupport (
|
|
11
|
+
activesupport (6.0.3.3)
|
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
-
i18n (
|
|
13
|
+
i18n (>= 0.7, < 2)
|
|
14
14
|
minitest (~> 5.1)
|
|
15
15
|
tzinfo (~> 1.1)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
|
17
|
+
commander (4.5.2)
|
|
18
|
+
highline (~> 2.0.0)
|
|
19
|
+
concurrent-ruby (1.1.7)
|
|
19
20
|
diff-lcs (1.3)
|
|
20
|
-
highline (
|
|
21
|
-
i18n (
|
|
22
|
-
|
|
21
|
+
highline (2.0.3)
|
|
22
|
+
i18n (1.8.5)
|
|
23
|
+
concurrent-ruby (~> 1.0)
|
|
24
|
+
minitest (5.14.2)
|
|
23
25
|
rspec (3.6.0)
|
|
24
26
|
rspec-core (~> 3.6.0)
|
|
25
27
|
rspec-expectations (~> 3.6.0)
|
|
@@ -35,8 +37,9 @@ GEM
|
|
|
35
37
|
rspec-support (3.6.0)
|
|
36
38
|
sequel (4.48.0)
|
|
37
39
|
thread_safe (0.3.6)
|
|
38
|
-
tzinfo (1.2.
|
|
40
|
+
tzinfo (1.2.7)
|
|
39
41
|
thread_safe (~> 0.1)
|
|
42
|
+
zeitwerk (2.4.0)
|
|
40
43
|
|
|
41
44
|
PLATFORMS
|
|
42
45
|
ruby
|
|
@@ -47,4 +50,4 @@ DEPENDENCIES
|
|
|
47
50
|
sequel
|
|
48
51
|
|
|
49
52
|
BUNDLED WITH
|
|
50
|
-
1.
|
|
53
|
+
2.1.4
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Repository spec working here!
|
|
@@ -27,7 +27,7 @@ class Rdm::SpecRunner::Runner
|
|
|
27
27
|
@stdout = stdout
|
|
28
28
|
@show_output = show_output
|
|
29
29
|
@from = from
|
|
30
|
-
@
|
|
30
|
+
@command_params_list = []
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def run
|
|
@@ -98,7 +98,7 @@ class Rdm::SpecRunner::Runner
|
|
|
98
98
|
def prepare!
|
|
99
99
|
prepared_command_params = []
|
|
100
100
|
no_specs_packages = []
|
|
101
|
-
@
|
|
101
|
+
@command_params_list = []
|
|
102
102
|
prepare_command_params
|
|
103
103
|
prepare_no_specs_packages
|
|
104
104
|
prepare_command
|
|
@@ -125,9 +125,9 @@ class Rdm::SpecRunner::Runner
|
|
|
125
125
|
|
|
126
126
|
def prepare_command
|
|
127
127
|
if @package_name
|
|
128
|
-
@
|
|
128
|
+
@command_params_list += prepare_single_package_command(@package_name)
|
|
129
129
|
else
|
|
130
|
-
@
|
|
130
|
+
@command_params_list += prepare_commands_for_packages(prepared_command_params)
|
|
131
131
|
end
|
|
132
132
|
end
|
|
133
133
|
|
|
@@ -187,7 +187,7 @@ class Rdm::SpecRunner::Runner
|
|
|
187
187
|
EOF
|
|
188
188
|
end
|
|
189
189
|
|
|
190
|
-
running_packages
|
|
190
|
+
running_packages
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
def display_missing_specs
|
|
@@ -203,11 +203,23 @@ class Rdm::SpecRunner::Runner
|
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
def execute_command
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
.reject {|result| result.success?}
|
|
209
|
-
.any?
|
|
206
|
+
@command_params_list.each do |command_param|
|
|
207
|
+
eval(command_param.command);
|
|
210
208
|
|
|
211
|
-
|
|
209
|
+
command_param.exitstatus = $?.exitstatus
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
failed = @command_params_list.select {|cmd_param| !cmd_param.success?}
|
|
213
|
+
|
|
214
|
+
if failed.any?
|
|
215
|
+
total_count = @command_params_list.count
|
|
216
|
+
failed_count = failed.count
|
|
217
|
+
|
|
218
|
+
print_message("#{failed_count} of #{total_count} packages failed:")
|
|
219
|
+
print_message(failed.map(&:package_name))
|
|
220
|
+
print_message("\n")
|
|
221
|
+
|
|
222
|
+
exit(1)
|
|
223
|
+
end
|
|
212
224
|
end
|
|
213
225
|
end
|
data/lib/rdm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rdm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Droid Labs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -164,6 +164,7 @@ files:
|
|
|
164
164
|
- example/env_files/production.env
|
|
165
165
|
- example/env_files/test.env
|
|
166
166
|
- example/infrastructure/repository/Package.rb
|
|
167
|
+
- example/infrastructure/repository/fixture.txt
|
|
167
168
|
- example/infrastructure/repository/package/repository.rb
|
|
168
169
|
- example/infrastructure/repository/package/repository/sample_repository.rb
|
|
169
170
|
- example/infrastructure/repository/spec/example_spec.rb
|