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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76cdf006fe0326b35d419da28519e143c2cacaca3c71938146157aa0ae5c1b46
4
- data.tar.gz: fa8db04945e5b865f756186154fbbef69dbef1a8f0ecd5135e69a37d1b5dc9ed
3
+ metadata.gz: e3ebc069d0f07195bc41597c48747e8ccc9b4ac723e8cae094f291c4cf90a223
4
+ data.tar.gz: 29376556a66696a47f7320cfb38d001b2a69035a2b823bb554f991db86c8a28e
5
5
  SHA512:
6
- metadata.gz: 81c52b5805f7c740a31c15831a6ff04ee5e17324491c7dc100e56342a2aa49be43c6861d3ee54625931f24625a92d9b81a87176597673916c790ab6f7a6fc764
7
- data.tar.gz: 276721d89d99f3bdda3927ad40daf4292bdf9e517b65b667e1c04a566af405df734d6cf1af7a831f8291570f000aa74045c5ac084b1a3ea29449f25bdf713cce
6
+ metadata.gz: b27cf57cd09e7f6f74d75059b94fe6b8a48be6d7f167162efa04d2d8875e328542c79baaa0469ba921ac4b796e81362a9291a84f805100d2d832c874d0d81ff9
7
+ data.tar.gz: 0db02f07cd9ccece667d93a85e9811efa54aab298b3ff13f327610a0b32340876ab1735e162715a889e037491667be8c2d1592b5d9a1dcf87e56398c0f491f85
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swiftrail (0.1.12)
4
+ swiftrail (0.1.13)
5
5
  nokogiri (>= 1.10.4)
6
6
  thor (~> 0.20)
7
7
 
data/bin/swiftrail CHANGED
@@ -2,10 +2,11 @@
2
2
  require 'swiftrail/cli'
3
3
  require 'swiftrail/testrail/coverage'
4
4
  require 'swiftrail/testrail/lint'
5
+ require 'swiftrail/swift/lint'
5
6
 
6
7
  begin
7
8
  Swiftrail::Cli.start
8
9
  rescue Swiftrail::Errors::Base => e
9
10
  warn e
10
11
  exit(false)
11
- end
12
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Swiftrail
2
- VERSION = '0.1.12'.freeze
2
+ VERSION = '0.1.13'.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.12
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-09-02 00:00:00.000000000 Z
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