rdm 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rdm/packages/compiler_service.rb +6 -1
- data/lib/rdm/spec_runner/runner.rb +6 -3
- data/lib/rdm/version.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: 64cbcdd605d4efd34e3351f826ea81f4106c76c1
|
4
|
+
data.tar.gz: 403f9e6c596783ea2312c062790ce6dcd708c46d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec9ed5d4113c4e0cca8d0f0a4a654896b20c3f88fe5450df78032a1160634e08ad427f231477f1fb6cd8f701cc093fbcd39c60c0e01e0a567690de69bbf87767
|
7
|
+
data.tar.gz: 67ed2d03b2ed25d847d4f1bd28440563d1c2774b6c85235ad7617a947382d7a3ba97b38aadff768be197653146d4ff8d9d3560a269d580e17e5b6a99b403feb9
|
data/Gemfile.lock
CHANGED
@@ -57,7 +57,12 @@ module Rdm
|
|
57
57
|
end
|
58
58
|
|
59
59
|
FileUtils.cp_r(File.join(@project_path, 'configs'), File.join(@compile_path, 'configs'))
|
60
|
-
|
60
|
+
if Dir.exists?(File.join(@project_path, Rdm.settings.env_files_dir))
|
61
|
+
FileUtils.cp_r(
|
62
|
+
File.join(@project_path, Rdm.settings.env_files_dir),
|
63
|
+
File.join(@compile_path, Rdm.settings.env_files_dir)
|
64
|
+
)
|
65
|
+
end
|
61
66
|
|
62
67
|
Rdm.settings.compile_ignore_files.each do |file|
|
63
68
|
Dir["#{@compile_path}/**/#{file}"].each do |file_to_remove|
|
@@ -14,7 +14,8 @@ class Rdm::SpecRunner::Runner
|
|
14
14
|
)
|
15
15
|
@package_name = package
|
16
16
|
@no_specs_packages = []
|
17
|
-
@spec_matcher = spec_matcher.to_s
|
17
|
+
@spec_matcher = spec_matcher.to_s.split(':')[0]
|
18
|
+
@spec_string_number = spec_matcher.to_s.split(':')[1].to_i
|
18
19
|
@path = path
|
19
20
|
@run_all = @package_name.nil?
|
20
21
|
@show_missing_packages = show_missing_packages
|
@@ -23,13 +24,15 @@ class Rdm::SpecRunner::Runner
|
|
23
24
|
end
|
24
25
|
|
25
26
|
def run
|
26
|
-
if !@spec_matcher.empty?
|
27
|
+
if !@spec_matcher.nil? && !@spec_matcher.empty?
|
27
28
|
@spec_file_matches = Rdm::SpecRunner::SpecFilenameMatcher.find_matches(package_path: packages[@package_name].path, spec_matcher: @spec_matcher)
|
28
29
|
case @spec_file_matches.size
|
29
30
|
when 0
|
30
31
|
raise Rdm::Errors::SpecMatcherNoFiles, "No specs were found for '#{@spec_matcher}'"
|
31
32
|
when 1
|
32
|
-
|
33
|
+
format_string_number = @spec_string_number == 0 ? "" : ":#{@spec_string_number}"
|
34
|
+
@spec_matcher = @spec_file_matches.first + format_string_number
|
35
|
+
|
33
36
|
puts "Following spec matches your input: #{@spec_matcher}"
|
34
37
|
else
|
35
38
|
raise Rdm::Errors::SpecMatcherMultipleFiles, @spec_file_matches.join("\n")
|
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.7
|
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-08-
|
11
|
+
date: 2017-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|