warder 0.3.0 → 0.3.1

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: 875ec7cea81b3bf1256ce70e4223d3689c39f49d
4
- data.tar.gz: 77867c0e07c745362775ef46d7a52cc54e00a5c7
3
+ metadata.gz: 6c517f0218b6da1d2e630821743464d8189b8ed3
4
+ data.tar.gz: 1fa74a10d1ccb85997aed8eccd0b13497cbc25eb
5
5
  SHA512:
6
- metadata.gz: 277b38d6bfc29fdb36d90e06acbea2427ef87c783ea92f67b523123bfdbf822e452e3e0da5fa8e44c7a8ba15d781fbfe6d009badb99d9b15d07428019ce3ca05
7
- data.tar.gz: 38628e344b7a6b323207a9fcab6f8cde5593aecfd30241080d635ed4e1dbec83297a7c5644d2eb0afcdd899ee57d8dade4918c00cbe35cf5a4167cf601eba687
6
+ metadata.gz: 09ecec2361551e410eefb61e6f3ef9de3a6d92f05e213830ac630769b6433204519fe7983f54243437b5a51acdfc61f30d470bd28a7bdb8a01c13b6c6510fc5e
7
+ data.tar.gz: 06b39ee496ee24ea2fe853de2201ed2ada89f18358db575cc825cfde24e9b8628b4b1106ca858c564fd09f1998e832077e3f9d6e95f5e223aa8a87cbd142a4b8
@@ -30,8 +30,10 @@ module Warder
30
30
  lint_results
31
31
  end
32
32
 
33
- def number_of_issues(line)
34
- self.class::FAILURE_REGEXP.match(line) ? 1 : 0
33
+ def number_of_issues(lines)
34
+ lines.split("\n").count do |line|
35
+ self.class::FAILURE_REGEXP.match(line) ? 1 : 0
36
+ end
35
37
  end
36
38
  end
37
39
  end
@@ -1,4 +1,4 @@
1
1
  # defines warder version
2
2
  module Warder
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yura Tolstik