xcov 1.8.0 → 1.8.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
  SHA256:
3
- metadata.gz: 4526b635eb46bf75720b1500d99610a6cf613b7acbdb1c8ad5c92c44b01654cb
4
- data.tar.gz: c75f27cdcaf0139d0851611aa265411ed6da2fc88ea03a825cf025a057fed304
3
+ metadata.gz: 8f9fd23056fe7c21f3e20fb62814b10715e4dbcea016c57114b54f7ebbcf904b
4
+ data.tar.gz: f29f43359b5fdfdb72b33760341b61e3dc51293d84d207cace704c669be639ab
5
5
  SHA512:
6
- metadata.gz: 6e201d6e8d6948b48985cb0b1120b6548648b190c207dc0758511b14a353970d3bd5824cbf12e5d72f4f9d282e291268254e713d00bc12c4f3cb71c1dc827cfd
7
- data.tar.gz: b0cbc01d2a6d0f542a85132c70c02d7927428fb4c79d91782e865ac356461229f33787f336f5e030eda15f538206183e0cd5d0852c8f591e081a395c5551ffc5
6
+ metadata.gz: 74424f15672e083e2936c0a42b46be69e02f6f556766a98b9fc786118bcb45eb6b5c621c8c9f457b3cb84b6e53a9707a44b050edb80c6ffaa44c4c869daa856e
7
+ data.tar.gz: c1b3101eabaf8ddb241fa7da1019c3d53b0111d207c08f997ec30c9b0eff4084e5e5bfd159251bbeb3901700d78297172af375ad0870e30e971334d7678fe583
data/lib/xcov/manager.rb CHANGED
@@ -160,6 +160,11 @@ module Xcov
160
160
  report.targets.each do |target|
161
161
  table_rows << [target.name, target.displayable_coverage]
162
162
  end
163
+
164
+ if report.targets.count > 0
165
+ table_rows << ["Average Coverage", "#{"%.2f%%" % (report.coverage*100)}"]
166
+ end
167
+
163
168
  puts Terminal::Table.new({
164
169
  title: "xcov Coverage Report".green,
165
170
  rows: table_rows
data/lib/xcov/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.8.0"
3
+ VERSION = "1.8.1"
4
4
  DESCRIPTION = "xcov is a friendly visualizer for Xcode's code coverage files"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal