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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 382d69b9a2ce08cf6c2d674b2678cb5238842e2f
4
- data.tar.gz: ef05c9e7ae83f9263a7d86d516c559f7fa89dd5f
3
+ metadata.gz: 64cbcdd605d4efd34e3351f826ea81f4106c76c1
4
+ data.tar.gz: 403f9e6c596783ea2312c062790ce6dcd708c46d
5
5
  SHA512:
6
- metadata.gz: 9ba18ed5233951a6037067390f48f03d38196d09c09ea3df666f9c6881f01882d6f2549bfe3fb31c591751558a8ab9673254b0338dcdf7762c10712c16481125
7
- data.tar.gz: a351d06caafb902a0010294fd760bcf5b3acc0b4a22e69e5475cc4708cc8325a8b889f5158f910ced05e01455854e95a7c35fde8b451106149e702314923459c
6
+ metadata.gz: ec9ed5d4113c4e0cca8d0f0a4a654896b20c3f88fe5450df78032a1160634e08ad427f231477f1fb6cd8f701cc093fbcd39c60c0e01e0a567690de69bbf87767
7
+ data.tar.gz: 67ed2d03b2ed25d847d4f1bd28440563d1c2774b6c85235ad7617a947382d7a3ba97b38aadff768be197653146d4ff8d9d3560a269d580e17e5b6a99b403feb9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rdm (0.4.6)
4
+ rdm (0.4.7)
5
5
  activesupport
6
6
  commander (~> 4.4)
7
7
 
@@ -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
- FileUtils.cp_r(File.join(@project_path, Rdm.settings.env_files_dir), File.join(@compile_path, Rdm.settings.env_files_dir))
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
- @spec_matcher = @spec_file_matches.first
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")
@@ -1,3 +1,3 @@
1
1
  module Rdm
2
- VERSION = '0.4.6'.freeze
2
+ VERSION = '0.4.7'.freeze
3
3
  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.6
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-21 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler