onlyoffice_rspec_result_parser 0.1.0 → 0.1.1

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: 1e0498075e6fc9529b3ab53e7b99fef574e7e02a8a185e59d7889010402c97a5
4
- data.tar.gz: ad609118fa567af873dcbc09875942b01d306bf91ea80ef4dfe2346e51d3f271
3
+ metadata.gz: 90e494964654c9785bcf0e3576c891c74995aa19bbea965bdf02788047b886db
4
+ data.tar.gz: 417b08f08a82b69cf705be228a1b693a31cbfebab837a1e17bb97cd56c5df385
5
5
  SHA512:
6
- metadata.gz: 3060d19a305e4fa19ee1b1c7c9371f141d93f345fcb2dfa9178b3b71f7d3a332a767d70691b6d7a457eed737342f07ccce632d851ceed5af31e6b0630bc44b7a
7
- data.tar.gz: f455696715c4921e44dc463c68e28ca075860fd09a63418da47649a377f096846f4dd7ba65ec92a09910f73c79200a414736e100a8262d86eebcf33dab7148ef
6
+ metadata.gz: a70703d0688597535b338adcf5782db1653731ff6708188abdb84310cf9042821978f19e80afc0dbbc79d11c7a1f45ae674884403faf01cd2fd2b86b1ecc50a0
7
+ data.tar.gz: c0db9d126625febd4a249f7f6a9c3c12dc8b23f15ba13af3eae33ff13624eaa928db866d20ba0c10cbcbcec7d75255bea53fd8cb2bb518dec9c20b4814652ccd
@@ -32,11 +32,15 @@ module OnlyofficeRspecResultParser
32
32
  alias parse_rspec_html_string parse_rspec_html
33
33
 
34
34
  def get_failed_cases_count_from_html(html_path)
35
+ return 0 if html_path.empty?
36
+
35
37
  page = Nokogiri::HTML(read_file(html_path))
36
38
  RspecResult.new.parse_page(page, true).failed_count
37
39
  end
38
40
 
39
41
  def get_total_result_of_rspec_html(html_path)
42
+ return html_path if html_path.empty?
43
+
40
44
  page = Nokogiri::HTML(read_file(html_path))
41
45
  RspecResult.new.parse_page(page, true).total
42
46
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnlyofficeRspecResultParser
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  NAME = 'onlyoffice_rspec_result_parser'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_rspec_result_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-03-20 00:00:00.000000000 Z
13
+ date: 2020-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri