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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd2b98cd1a4c0604e5b22d4681bc8dd0ab957025
4
- data.tar.gz: bc64b5cd0850ea5a639a3d2cb9312b487f0c9afa
3
+ metadata.gz: 79cde565b298f438fe84a4fc244febaf0787aaa7
4
+ data.tar.gz: 52fb245116784d5376c1b3fb2750eb7d4f4ecf06
5
5
  SHA512:
6
- metadata.gz: 867ac2bf5b101620c1c0606d939ff92d3b5bc941908943b979613ab103fab111cebae5feb85511fa8ca943f5b3ba9245cc1242fe9835be2de55fe73a6e943d27
7
- data.tar.gz: ee2208aacb31e87c3c9c82617df99caf040fa817ef9a8aca9fd87717db5a02d1ccb851fe369b91fe71b7fc4df3f73c9df5fb14fe35b962b19d8ab7283a1bbe4c
6
+ metadata.gz: f1128bdb686a38e260338e23359ec22c386d270ecd40a9cbcfcc4809d6455e4f26dd6f64337ab68cc0731553c00a8d698fac8466f0bf9c26390019a96d61e5de
7
+ data.tar.gz: 60b913669f300509b5380a7055e53554fcd7527625da15d4f187a449ca949f831d7d0905fb0e016c7c27067e304c408df67cff3afc7a4879d5e06ff6e5e34e53
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rdm (0.4.8)
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.2)
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.8.6)
28
+ i18n (0.9.0)
29
+ concurrent-ruby (~> 1.0)
29
30
  json (2.0.3)
30
- minitest (5.10.2)
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.15.4
81
+ 1.16.0.pre.3
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- system("bundle exec rdm rspec.diff_run #{ARGV.join(' ')}", out: STDOUT, err: :out)
3
+ system("bundle exec rdm rspec.diff_run #{ARGV.join(' ')}", out: STDOUT, err: :out)
4
+
5
+ if $? && !$?.success?
6
+ exit(1)
7
+ end
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- system("bundle exec rdm rspec.run #{ARGV.join(' ')}", out: STDOUT, err: :out)
3
+ system("bundle exec rdm rspec.run #{ARGV.join(' ')}", out: STDOUT, err: :out)
4
+
5
+ if $? && !$?.success?
6
+ exit(1)
7
+ end
@@ -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
- #{compiled_packages.map(&:capitalize).join("\n")}
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
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- system("bundle exec rdm rspec.diff_run #{ARGV.join(' ')}", out: STDOUT, err: :out)
3
+ system("bundle exec rdm rspec.diff_run #{ARGV.join(' ')}", out: STDOUT, err: :out)
4
+
5
+ if $? && !$?.success?
6
+ exit(1)
7
+ end
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- system("bundle exec rdm rspec.run #{ARGV.join(' ')}", out: STDOUT, err: :out)
3
+ system("bundle exec rdm rspec.run #{ARGV.join(' ')}", out: STDOUT, err: :out)
4
+
5
+ if $? && !$?.success?
6
+ exit(1)
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Rdm
2
- VERSION = '0.4.8'.freeze
2
+ VERSION = '0.4.10'.freeze
3
3
  end
@@ -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
- Core
33
- Repository
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
- Core
106
- Repository
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/one_more_spec.rb", "spec/core/sample_service_spec.rb"])
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/one_more_spec.rb\n2. spec/core/sample_service_spec.rb", "Enter space-separated file numbers, ex: '1 2': "])
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.8
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-09-20 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler