rdm 0.4.8 → 0.4.10
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.lock +6 -5
- data/example/tests/diff_run +5 -1
- data/example/tests/run +5 -1
- data/lib/rdm/cli/compile_package.rb +5 -1
- data/lib/rdm/spec_runner/runner.rb +10 -1
- data/lib/rdm/templates/init/tests/diff_run +5 -1
- data/lib/rdm/templates/init/tests/run +5 -1
- data/lib/rdm/version.rb +1 -1
- data/spec/rdm/cli/compile_package_spec.rb +8 -4
- data/spec/rdm/spec_runner/spec_filename_matcher_spec.rb +1 -1
- data/spec/rdm/spec_runner_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79cde565b298f438fe84a4fc244febaf0787aaa7
|
4
|
+
data.tar.gz: 52fb245116784d5376c1b3fb2750eb7d4f4ecf06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1128bdb686a38e260338e23359ec22c386d270ecd40a9cbcfcc4809d6455e4f26dd6f64337ab68cc0731553c00a8d698fac8466f0bf9c26390019a96d61e5de
|
7
|
+
data.tar.gz: 60b913669f300509b5380a7055e53554fcd7527625da15d4f187a449ca949f831d7d0905fb0e016c7c27067e304c408df67cff3afc7a4879d5e06ff6e5e34e53
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rdm (0.4.
|
4
|
+
rdm (0.4.9)
|
5
5
|
activesupport
|
6
6
|
commander (~> 4.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (5.1.
|
11
|
+
activesupport (5.1.4)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (~> 0.7)
|
14
14
|
minitest (~> 5.1)
|
@@ -25,9 +25,10 @@ GEM
|
|
25
25
|
diff-lcs (1.3)
|
26
26
|
docile (1.1.5)
|
27
27
|
highline (1.7.8)
|
28
|
-
i18n (0.
|
28
|
+
i18n (0.9.0)
|
29
|
+
concurrent-ruby (~> 1.0)
|
29
30
|
json (2.0.3)
|
30
|
-
minitest (5.10.
|
31
|
+
minitest (5.10.3)
|
31
32
|
parser (2.3.3.1)
|
32
33
|
ast (~> 2.2)
|
33
34
|
powerpack (0.1.1)
|
@@ -77,4 +78,4 @@ DEPENDENCIES
|
|
77
78
|
rubocop (~> 0.46)
|
78
79
|
|
79
80
|
BUNDLED WITH
|
80
|
-
1.
|
81
|
+
1.16.0.pre.3
|
data/example/tests/diff_run
CHANGED
data/example/tests/run
CHANGED
@@ -43,9 +43,13 @@ module Rdm
|
|
43
43
|
compile_path: @compile_path
|
44
44
|
)
|
45
45
|
|
46
|
+
formatted_packages = compiled_packages.sort.map {|pkg| " - #{pkg}"}
|
47
|
+
|
46
48
|
puts <<~EOF
|
49
|
+
|
50
|
+
Compilation for package '#{@package_name}' started.
|
47
51
|
The following packages were copied:
|
48
|
-
#{
|
52
|
+
#{formatted_packages.join("\n")}
|
49
53
|
EOF
|
50
54
|
|
51
55
|
rescue Rdm::Errors::SourceFileDoesNotExist => e
|
@@ -159,10 +159,19 @@ class Rdm::SpecRunner::Runner
|
|
159
159
|
@skipped_packages = []
|
160
160
|
end
|
161
161
|
|
162
|
-
packages_command_params
|
162
|
+
running_packages = packages_command_params
|
163
163
|
.select { |cmd_params| cmd_params.spec_count > 0 }
|
164
164
|
.reject { |cmd_params| @skipped_packages.include?(cmd_params.package_name) }
|
165
165
|
.sort_by { |cmd_params| - cmd_params.spec_count }
|
166
|
+
|
167
|
+
if @run_all
|
168
|
+
puts <<~EOF
|
169
|
+
Rspec tests will run for packages:
|
170
|
+
#{(packages.keys - no_specs_packages).map {|pkg| " - #{pkg}"}.join("\n")}\n
|
171
|
+
EOF
|
172
|
+
end
|
173
|
+
|
174
|
+
running_packages
|
166
175
|
.map(&:command)
|
167
176
|
.join(' && ')
|
168
177
|
end
|
data/lib/rdm/version.rb
CHANGED
@@ -28,9 +28,11 @@ describe Rdm::CLI::CompilePackage do
|
|
28
28
|
)
|
29
29
|
}.to output(
|
30
30
|
<<~EOF
|
31
|
+
|
32
|
+
Compilation for package 'core' started.
|
31
33
|
The following packages were copied:
|
32
|
-
|
33
|
-
|
34
|
+
- core
|
35
|
+
- repository
|
34
36
|
EOF
|
35
37
|
).to_stdout
|
36
38
|
end
|
@@ -101,9 +103,11 @@ describe Rdm::CLI::CompilePackage do
|
|
101
103
|
}.to output(
|
102
104
|
<<~EOF
|
103
105
|
Destination directory exists. Overwrite it? (y/n)
|
106
|
+
|
107
|
+
Compilation for package 'core' started.
|
104
108
|
The following packages were copied:
|
105
|
-
|
106
|
-
|
109
|
+
- core
|
110
|
+
- repository
|
107
111
|
EOF
|
108
112
|
).to_stdout
|
109
113
|
end
|
@@ -23,7 +23,7 @@ describe Rdm::SpecRunner::SpecFilenameMatcher do
|
|
23
23
|
it 'returns array of relative to package matches' do
|
24
24
|
expect(
|
25
25
|
subject.find_matches(package_path: package_path, spec_matcher: short_filename)
|
26
|
-
).to match(["spec/core/
|
26
|
+
).to match(["spec/core/sample_service_spec.rb", "spec/core/one_more_spec.rb"])
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -33,7 +33,7 @@ describe Rdm::SpecRunner do
|
|
33
33
|
stdin: SpecLogger.new(stdin: "exit\n")
|
34
34
|
)
|
35
35
|
|
36
|
-
expect(stdout.output).to match(["Following specs match your input:", "1. spec/core/
|
36
|
+
expect(stdout.output).to match(["Following specs match your input:", "1. spec/core/sample_service_spec.rb\n2. spec/core/one_more_spec.rb", "Enter space-separated file numbers, ex: '1 2': "])
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droid Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|