swiftrail 0.1.12 → 0.1.13
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 +1 -1
- data/bin/swiftrail +2 -1
- data/lib/swiftrail/swift/lint.rb +27 -0
- data/lib/swiftrail/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3ebc069d0f07195bc41597c48747e8ccc9b4ac723e8cae094f291c4cf90a223
|
4
|
+
data.tar.gz: 29376556a66696a47f7320cfb38d001b2a69035a2b823bb554f991db86c8a28e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27cf57cd09e7f6f74d75059b94fe6b8a48be6d7f167162efa04d2d8875e328542c79baaa0469ba921ac4b796e81362a9291a84f805100d2d832c874d0d81ff9
|
7
|
+
data.tar.gz: 0db02f07cd9ccece667d93a85e9811efa54aab298b3ff13f327610a0b32340876ab1735e162715a889e037491667be8c2d1592b5d9a1dcf87e56398c0f491f85
|
data/Gemfile.lock
CHANGED
data/bin/swiftrail
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'swiftrail/swift/parser'
|
2
|
+
|
3
|
+
module Swiftrail
|
4
|
+
module Swift
|
5
|
+
class Lint
|
6
|
+
def initialize(tests_patterns)
|
7
|
+
@tests_patterns = tests_patterns
|
8
|
+
end
|
9
|
+
|
10
|
+
def lint
|
11
|
+
swift_tests.select { |t| t.case_ids.empty? }
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
attr_reader :tests_patterns, :test_rail_username, :test_rail_password, :test_rail_base_url
|
17
|
+
|
18
|
+
def swift_tests
|
19
|
+
swift_test_parser.parse
|
20
|
+
end
|
21
|
+
|
22
|
+
def swift_test_parser
|
23
|
+
Swiftrail::Swift::Parser.new(tests_patterns)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/swiftrail/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.13
|
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-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- lib/swiftrail/errors/error.rb
|
108
108
|
- lib/swiftrail/junit/parser.rb
|
109
109
|
- lib/swiftrail/junit/report.rb
|
110
|
+
- lib/swiftrail/swift/lint.rb
|
110
111
|
- lib/swiftrail/swift/parser.rb
|
111
112
|
- lib/swiftrail/swift/test.rb
|
112
113
|
- lib/swiftrail/testrail/api/client.rb
|