danger-xcov 0.1.2 → 0.1.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: 20f5529b60f8603998fd838557eb9560772ea150
4
- data.tar.gz: aa89001c547cb4c8579fa98eff8210c3fc61ba8d
3
+ metadata.gz: 43334e741097abdf797377c1b554c3d0b22971e2
4
+ data.tar.gz: a3e9f5c1a228c35798ca6172ab46f5dcf31f2465
5
5
  SHA512:
6
- metadata.gz: 838e8b5c83672cbe53a84951fc700729a1006d21edede8bc63a5a59dbdeb80c7c4c1fbb9844ab243b845bb29ecb7aaac69e9803bac4ba93930b59e7015ff680d
7
- data.tar.gz: 445c2c1b0c77514e5de9d8986b6594352b9ec4ac8c520d9ea1400fc04602c5cba444a217a925215963302a081fd33554c8f6a754695d765d0546d0d5e610e238
6
+ metadata.gz: 3b4322fb2448582e5586d3959f062ff7d75e0ce01f4afcccd4879a46435c8b750d772e7a8494bd792e570311bbb683ec5f8d1b7ef1459d128c1f54350a45b16e
7
+ data.tar.gz: 8d394beb597c2613770474904314970ad8b723e5075d6d2d82ae82166191dfcdd56ac7a68c0f92df6445f9ed99051b9af1aa5bdc27a5f0256aad5c694b718938
data/danger-xcov.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.require_paths = ['lib']
18
18
 
19
- spec.add_dependency 'danger'
19
+ spec.add_dependency 'danger', '~> 2.0.0'
20
20
  spec.add_dependency 'xcov', '~> 0.9'
21
21
  spec.add_development_dependency 'bundler', '~> 1.3'
22
22
  spec.add_development_dependency 'rake'
data/lib/danger_plugin.rb CHANGED
@@ -19,7 +19,7 @@ module Danger
19
19
  # )
20
20
  #
21
21
  # @tags xcode, coverage, xccoverage, tests, ios, xcov
22
- # @see nakiostudio/EasyPeasy
22
+ # @see nakiostudio/danger-xcov
23
23
  #
24
24
  class DangerXcov < Plugin
25
25
  # Validates the code coverage of the files changed within a Pull Request.
@@ -78,7 +78,7 @@ module Danger
78
78
 
79
79
  # Filters the files that haven't been modified in the current PR
80
80
  def process_report(report)
81
- file_names = modified_files.map { |file| File.basename(file) }
81
+ file_names = git.modified_files.map { |file| File.basename(file) }
82
82
  report.targets.each do |target|
83
83
  target.files = target.files.select { |file| file_names.include?(file.name) }
84
84
  end
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module DangerXcov
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  DESCRIPTION = "Danger plugin to validate the code coverage of the files changed"
4
4
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-xcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.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: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: xcov
29
29
  requirement: !ruby/object:Gem::Requirement