swiftrail 0.1.14 → 0.1.15

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
  SHA256:
3
- metadata.gz: 63ff5dffec20849ed44ae76f86e3d353fdf6d5f72a615f32abd8c9296f37e3d3
4
- data.tar.gz: 945c773cc1a3d76af4f3da1a9a69c9b8511c2fddd1d2441896f2b740d924a3e2
3
+ metadata.gz: ce74cbe5cf0af3a239494dfbc4d4f0fa8f82a4df31598f9732510755a94c322a
4
+ data.tar.gz: ed251407be9593fe7aed6252da8a8e7e1678aec2321c3716df6e8a861b067dfb
5
5
  SHA512:
6
- metadata.gz: 0d995dcd309ff099456f0fccab74644ee0dae6791a1078fc2b22e4e3009fb1a013b437869db6b6d031c5d60bcc5e768d134c69c5348dba2101403ae285881a85
7
- data.tar.gz: 63c5b34dad2885f9f8d808754f9c32bcbc6cf10a2091ab30bd3d2f04bfb954f0f7ebb32e8f5752c0b536d18db30a59d9ae26ed52b124530c67bea291455a2772
6
+ metadata.gz: 1133e97add2c292ebef9d2ee4f650f4a2ec83bc91dbb35926d2baa12ea8a79ba6acc2d739e096b4d376adec36f7b60793db56ea1ef08c4d0b54192681f71266a
7
+ data.tar.gz: 93a6570d8e0e27a3b61f790d449f198c3e574c327b28d6766cf1c77743809d6bdea231cfdf9ad1a09b452053054c559f7b90082aaa56a8aaf3675ea5467cf847
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swiftrail (0.1.13)
4
+ swiftrail (0.1.15)
5
5
  nokogiri (>= 1.10.4)
6
6
  thor (~> 0.20)
7
7
 
@@ -10,7 +10,7 @@ GEM
10
10
  specs:
11
11
  diff-lcs (1.3)
12
12
  mini_portile2 (2.4.0)
13
- nokogiri (1.10.4)
13
+ nokogiri (1.10.5)
14
14
  mini_portile2 (~> 2.4.0)
15
15
  rake (10.5.0)
16
16
  rspec (3.8.0)
data/bin/swiftrail CHANGED
@@ -2,3 +2,10 @@
2
2
  require 'swiftrail/cli'
3
3
  require 'swiftrail/testrail/coverage'
4
4
  require 'swiftrail/testrail/lint'
5
+
6
+ begin
7
+ Swiftrail::Cli.start
8
+ rescue Swiftrail::Errors::Base => e
9
+ warn e
10
+ exit(false)
11
+ end
@@ -39,12 +39,16 @@ module Swiftrail
39
39
 
40
40
  def swift_test_for(junit_test_case)
41
41
  tests = swift_tests.select do |test|
42
+ test.bundle
42
43
  test.class_name == junit_test_case.class_name &&
43
44
  test.test_name == junit_test_case.test_name
44
45
  end
45
- raise Error::Ambiguity.new(junit_test_case, tests) if tests.count > 1
46
-
47
- tests.first
46
+ if tests.count > 1
47
+ STDERR.puts(Error::Ambiguity.new(junit_test_case, tests))
48
+ nil
49
+ else
50
+ tests.first
51
+ end
48
52
  end
49
53
  end
50
54
  end
@@ -1,3 +1,3 @@
1
1
  module Swiftrail
2
- VERSION = '0.1.14'.freeze
2
+ VERSION = '0.1.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiftrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slavko Krucaj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri