danger-xcov 0.4.1 → 0.5.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
- SHA1:
3
- metadata.gz: 3a4ce49266ab4fdb0fee7304595c41c132b16b0c
4
- data.tar.gz: b013e44b9434eeae63f63dc2cf1a7f0eb99affb4
2
+ SHA256:
3
+ metadata.gz: '0990e46e94587e0e89f65c137b498a58a4c7872d7930417208e3c706f9197321'
4
+ data.tar.gz: 0f13f368543ee90bbf084aea8869b63c15a43751c1671b263356fe16a66aa6bc
5
5
  SHA512:
6
- metadata.gz: 911d8bf3d03946b018933b3c5386d112d98afa76492c00a2f357693a2113218dd52c5d8f9ceed16fc10bcfde659135dd3adf0a73bcd790867584afdf9c926394
7
- data.tar.gz: d7291a363937ec7db78ee75ebac6a05d3715eea4e4d012231ffd4cf980745c9c27c86a5602cfc643938dd0834696972f927ac5eb8bf24cab2e4bb726a6fe6cc2
6
+ metadata.gz: 621e4983d04466ebb6583279c1a15c45d8be430d214ec69fcbfe7c83e84f39504f6462aaa0ccdf2feb54b8fb6f201f08c774beca5256dd3bdcd6ddc0bfef6b81
7
+ data.tar.gz: e1365d25e2e12288f37c1f028b0b93a79ff3d7931cf558ce0c361f5e0ba9d2c4d98b9e203f16e47b6196a57f579f8aac1cf4f9d07c26506e0ba06ba213aaa0e3
@@ -0,0 +1 @@
1
+ ko_fi: nakiostudio
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/danger-xcov.svg?style=flat)](http://rubygems.org/gems/danger-xcov)
10
10
  [![Gem Downloads](https://img.shields.io/gem/dt/danger-xcov.svg?style=flat)](http://rubygems.org/gems/danger-xcov)
@@ -13,6 +13,12 @@
13
13
  [xcov](https://github.com/nakiostudio/xcov), a friendly visualizer for Xcode's
14
14
  code coverage files.
15
15
 
16
+ <h3 align="center">
17
+ <a href="https://grnh.se/5f21b9701">
18
+ <img src="/assets_readme/monzo.png" alt="Join me and the amazing Mobile Team at monzo"/>
19
+ </a>
20
+ </h3>
21
+
16
22
  ## Installation
17
23
 
18
24
  ```
Binary file
@@ -10,14 +10,14 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['nakioparkour@gmail.com']
11
11
  spec.description = %q{Danger plugin to validate the code coverage of the files changed.}
12
12
  spec.summary = %q{Danger plugin to validate the code coverage of the files changed}
13
- spec.homepage = 'https://github.com/nakiostudio/danger-xcov'
13
+ spec.homepage = 'https://github.com/fastlane-community/danger-xcov'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.require_paths = ['lib']
18
18
 
19
19
  spec.add_dependency 'danger', '>= 2.1'
20
- spec.add_dependency 'xcov', '>= 1.1.2'
20
+ spec.add_dependency 'xcov', '>= 1.7.3'
21
21
  spec.add_development_dependency 'bundler', '~> 1.3'
22
22
  spec.add_development_dependency 'rake'
23
23
  end
@@ -58,10 +58,16 @@ module Danger
58
58
  Xcov.ignore_handler = Xcov::IgnoreHandler.new
59
59
 
60
60
  # Init project
61
- manager = Xcov::Manager.new(config)
61
+ report_json = nil
62
+ manager = Xcov::Manager.new(config)
62
63
 
63
- # Parse .xccoverage
64
- report_json = manager.parse_xccoverage
64
+ if Xcov.config[:html_report] || Xcov.config[:markdown_report] || Xcov.config[:json_report]
65
+ # Parse .xccoverage and create local report
66
+ report_json = manager.run
67
+ else
68
+ # Parse .xccoverage
69
+ report_json = manager.parse_xccoverage
70
+ end
65
71
 
66
72
  # Map and process report
67
73
  process_report(Xcov::Report.map(report_json))
@@ -91,10 +97,10 @@ module Danger
91
97
 
92
98
  # Filters the files that haven't been modified in the current PR
93
99
  def process_report(report)
94
- file_names = @dangerfile.git.modified_files.map { |file| File.basename(file) }
95
- file_names += @dangerfile.git.added_files.map { |file| File.basename(file) }
100
+ file_names = @dangerfile.git.modified_files.map { |file| File.expand_path(file) }
101
+ file_names += @dangerfile.git.added_files.map { |file| File.expand_path(file) }
96
102
  report.targets.each do |target|
97
- target.files = target.files.select { |file| file_names.include?(file.name) }
103
+ target.files = target.files.select { |file| file_names.include?(file.location) }
98
104
  end
99
105
 
100
106
  report
@@ -1,4 +1,4 @@
1
1
  module DangerXcov
2
- VERSION = "0.4.1"
2
+ VERSION = "0.5.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.4.1
4
+ version: 0.5.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-12-29 00:00:00.000000000 Z
11
+ date: 2020-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.1.2
33
+ version: 1.7.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.1.2
40
+ version: 1.7.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -73,17 +73,19 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/FUNDING.yml"
76
77
  - ".gitignore"
77
78
  - Gemfile
78
79
  - LICENSE
79
80
  - README.md
80
81
  - Rakefile
81
82
  - assets_readme/logo.png
83
+ - assets_readme/monzo.png
82
84
  - assets_readme/xcov_danger.png
83
85
  - danger-xcov.gemspec
84
86
  - lib/danger_plugin.rb
85
87
  - lib/version.rb
86
- homepage: https://github.com/nakiostudio/danger-xcov
88
+ homepage: https://github.com/fastlane-community/danger-xcov
87
89
  licenses:
88
90
  - MIT
89
91
  metadata: {}
@@ -102,8 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
104
  - !ruby/object:Gem::Version
103
105
  version: '0'
104
106
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.4.8
107
+ rubygems_version: 3.0.6
107
108
  signing_key:
108
109
  specification_version: 4
109
110
  summary: Danger plugin to validate the code coverage of the files changed