xcov 1.4.2 → 1.4.3

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: 8f94dcc71886e6367d57d49893f4f19f6090d1f0
4
- data.tar.gz: 1a1a889cf1bf4d5efcc5e66f7c545badf7533365
3
+ metadata.gz: 2a0dac38761769c713c26a25d73383d5aa4e6a7a
4
+ data.tar.gz: 3fc7f9941ab481911404423bad5a95b58978d6a4
5
5
  SHA512:
6
- metadata.gz: 770b052c6f3c6fbac211ad06d4462cb1a1bbfdcb049207e8f9b2e5ba8778f468ac1d62c116e3d1ef8b44001346719c0839d27fcaea21d9937defff8a6e511f58
7
- data.tar.gz: 32cf845fa01a100986e0a57f8e2798e1748c9159e19b6e0405a2e334067f3b9bbbc2e026ddb1d031deaf8d2954c3b9432f080eafe3eac4a2806bb078090dc627
6
+ metadata.gz: f9c00ec264c7dbb77e0862e0b0fac763c6806588e4106a712658737060306df8d780ecafbf6959c58c4e28d0b157c6ec2b2b5fe67598d95fdff39a3831b48892
7
+ data.tar.gz: 0af534980fd515d0abbc52e5a3a0f3c8d97d9ad98b09d3240f4fefdb4e785355acc93b27bd6a62a41dce30f7184b8cc0fa66a27137a6df176baf1290173b4733
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  -------
6
6
 
7
- [![Twitter: @carlostify](https://img.shields.io/badge/contact-@carlostify-blue.svg?style=flat)](https://twitter.com/carlostify)
7
+ [![Twitter: @nakiostudio](https://img.shields.io/badge/contact-@nakiostudio-blue.svg?style=flat)](https://twitter.com/nakiostudio)
8
8
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
9
9
  [![Gem](https://img.shields.io/gem/v/xcov.svg?style=flat)](http://rubygems.org/gems/xcov)
10
10
  [![Gem Downloads](https://img.shields.io/gem/dt/xcov.svg?style=flat)](http://rubygems.org/gems/xcov)
Binary file
@@ -1,5 +1,5 @@
1
1
  module Xcov
2
2
  module Core
3
- VERSION = "0.5"
3
+ VERSION = "0.7"
4
4
  end
5
5
  end
@@ -7,10 +7,10 @@ module Xcov
7
7
  attr_accessor :files
8
8
  attr_accessor :file_templates
9
9
 
10
- def initialize(name, files)
10
+ def initialize(name, coverage, files)
11
11
  @name = CGI::escapeHTML(name)
12
12
  @files = files
13
- @coverage = files.count == 0 ? 0.0 : files.reduce(0) { |acc, file| acc + file.coverage.to_f } / files.count
13
+ @coverage = coverage
14
14
  @displayable_coverage = self.create_displayable_coverage
15
15
  @coverage_color = self.create_coverage_color
16
16
  @id = Target.create_id(name)
@@ -53,11 +53,12 @@ module Xcov
53
53
 
54
54
  def self.map(dictionary)
55
55
  name = dictionary["name"]
56
+ coverage = dictionary["coverage"]
56
57
  files = dictionary["files"].map { |file| Source.map(file)}
57
58
  files = files.sort &by_coverage_with_ignored_at_the_end
58
59
  non_ignored_files = Target.select_non_ignored_files(files)
59
60
 
60
- Target.new(name, non_ignored_files)
61
+ Target.new(name, coverage, non_ignored_files)
61
62
  end
62
63
 
63
64
  def self.by_coverage_with_ignored_at_the_end
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.4.2"
3
+ VERSION = "1.4.3"
4
4
  DESCRIPTION = "xcov is a friendly visualizer for Xcode's code coverage files"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane
@@ -201,4 +201,3 @@ signing_key:
201
201
  specification_version: 4
202
202
  summary: xcov is a friendly visualizer for Xcode's code coverage files
203
203
  test_files: []
204
- has_rdoc: