danger-xcov 0.2.4 → 0.3.0

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: 33ab0f1b9e1f0863dec6613ad501d15213026e45
4
- data.tar.gz: d8b0a7f95744e58c3fb7ee5d172fb0294d1ef2af
3
+ metadata.gz: 84c3a7a3efed207e12bd5820a90609ecf2ff8f89
4
+ data.tar.gz: eb29b15808e30d26dce8fd4f9eb359aaaaa31883
5
5
  SHA512:
6
- metadata.gz: 1b6246187b0f20f3e377e060361fc6f5b23976f8208c2b1792b1688c316015d0155e2d7b90ff400fca8f83ecc09bb7c8ad62cb4b11dcd86db8c75dac2b3f8046
7
- data.tar.gz: b3770a47c869dc9d1569d77cd42b49019e06099ae47590f9f63f1ecddae67c406ad7883602c3c8dc6d12e55cfbb79095748de997a355ed855db160f5e9169533
6
+ metadata.gz: 27debb41fca6d11be9e7380f6f0b8f1c43fc30eb415b70c1f589568be0b2fa00a7c9d8d8188041f1882b7a64071e9a6e5aa5ce257d78c89c547d8b4a5fef51f7
7
+ data.tar.gz: 7b76b97c3fa020d35f8ed025c8d60a8903a6a6d5fb32c32fad88f8943ce732bf2859ae4cb9f3e3e9ff0994c0b8675526a995f7e2271e07e6c43ddbb34b85e226
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  <h3 align="center">
2
2
  <img src="/assets_readme/logo.png" alt="xcov Logo" />
3
3
  </h3>
4
+
4
5
  -------
6
+
5
7
  [![Twitter: @carlostify](https://img.shields.io/badge/contact-@carlostify-blue.svg?style=flat)](https://twitter.com/carlostify)
6
8
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
7
9
  [![Gem](https://img.shields.io/gem/v/danger-xcov.svg?style=flat)](http://rubygems.org/gems/danger-xcov)
data/lib/danger_plugin.rb CHANGED
@@ -77,7 +77,8 @@ module Danger
77
77
 
78
78
  # Filters the files that haven't been modified in the current PR
79
79
  def process_report(report)
80
- file_names = @dangerfile.git.modified_files.map { |file| File.basename(file) }
80
+ file_names = @dangerfile.git.modified_files.map { |file| File.basename(file) }
81
+ file_names += @dangerfile.git.added_files.map { |file| File.basename(file) }
81
82
  report.targets.each do |target|
82
83
  target.files = target.files.select { |file| file_names.include?(file.name) }
83
84
  end
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module DangerXcov
2
- VERSION = "0.2.4"
2
+ VERSION = "0.3.0"
3
3
  DESCRIPTION = "Danger plugin to validate the code coverage of the files changed"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-07 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger