xcov 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e041ba88d235c198aaae10a8b9849c29f1f6d0728bc1aa712167b093f7da2588
4
- data.tar.gz: 55815b7f8067da892383939ddca2a4a1e735b45941f8cc81fb257c7bd90b4228
3
+ metadata.gz: 45561ebb1e560099cf03c46ed407eb90bedfee812d7164d7229deed1e84d89d5
4
+ data.tar.gz: e72349b568cc6d28f82a856794377bc7da0b26cb8cc59cdd6cb2f399b1e9fbf6
5
5
  SHA512:
6
- metadata.gz: ab89c03271e1e70572a569b10de924cf4eb9139e67bad584c278abea48d1026916904547f13ea78524b453bf834f1b280a1103394c117fd5b6dd7fb61ff43757
7
- data.tar.gz: 726551c05f8ff7b8a71c3f985c01dbe3f91ff9d866921e2da947484b7909205c0466f901cefdf4b141161a497253628c5c130b25cf4181b63befa9f5b52f7ad6
6
+ metadata.gz: eb31a5ff3822e417a1a0382529d6ec9a342859ce3ca56c30ac86b4be45b11379576b4b0bcfb19ced607d0e268f6178d3645259e9e29558cec087315d7e69a793
7
+ data.tar.gz: d8deca4019f477d4cec991488f22e02a225ff37b70b677052fc8e747c33bbdc77467def3f13a6a46d31ec91009255be0e6dbc9dfcb811d10642c564a6f5f3f64
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <h3 align="center">
2
- <img src="/assets_readme/logo.png" alt="xcov Logo" />
2
+ <img src="/.github/assets_readme/logo.png" alt="xcov Logo" />
3
3
  </h3>
4
4
 
5
5
  -------
@@ -10,13 +10,6 @@
10
10
 
11
11
  **xcov** is a friendly visualizer for Xcode's code coverage files.
12
12
 
13
- > Maintainers needed
14
-
15
- ## Installation
16
- ```
17
- sudo gem install xcov
18
- ```
19
-
20
13
  ## Features
21
14
  * Built on top of [fastlane](https://fastlane.tools), you can easily plug it on to your CI environment.
22
15
  * Blacklisting of those files which coverage you want to ignore.
@@ -25,13 +18,13 @@ sudo gem install xcov
25
18
  * Nice HTML, JSON and Markdown reports.
26
19
 
27
20
  <h3 align="center">
28
- <img src="/assets_readme/report.png" />
21
+ <img src="/.github/assets_readme/report.png" />
29
22
  </h3>
30
23
 
31
24
  * Slack integration.
32
25
 
33
26
  <h3 align="center">
34
- <img src="/assets_readme/slack_integration.png" />
27
+ <img src="/.github/assets_readme/slack_integration.png" />
35
28
  </h3>
36
29
 
37
30
  ## Requirements
@@ -42,7 +35,7 @@ In order to make *xcov* run you must:
42
35
  * Enable the **Gather coverage data** setting available on your scheme settings window.
43
36
 
44
37
  <h3 align="center">
45
- <img src="/assets_readme/gather_coverage.png" />
38
+ <img src="/.github/assets_readme/gather_coverage.png" />
46
39
  </h3>
47
40
 
48
41
  ## Usage
@@ -132,7 +125,7 @@ xcov(
132
125
  With the *Danger* plugin you can receive your coverage reports directly on your pull requests. You can find more information on the plugin repository available [here](https://github.com/nakiostudio/danger-xcov).
133
126
 
134
127
  <h3 align="center">
135
- <img src="/assets_readme/xcov_danger.png" />
128
+ <img src="/.github/assets_readme/xcov_danger.png" />
136
129
  </h3>
137
130
 
138
131
  ## [Coveralls](https://coveralls.io)
@@ -140,7 +133,7 @@ With the *Danger* plugin you can receive your coverage reports directly on your
140
133
  If you want to keep track of the coverage evolution and get some extra features, *xcov* allows you to submit coverage reports to *Coveralls*. To do so, simply create an account and run *xcov* setting the options `coveralls_service_name` and `coveralls_service_job_id` for compatible CI environments. However, if you want to post to *Coveralls* from the console or any custom environment simply set the `coveralls_repo_token` option.
141
134
 
142
135
  <h3 align="center">
143
- <img src="/assets_readme/coveralls_integration.png" />
136
+ <img src="/.github/assets_readme/coveralls_integration.png" />
144
137
  </h3>
145
138
 
146
139
  ## Contributors
@@ -52,7 +52,8 @@ module Xcov
52
52
  def relative_path path
53
53
  require 'pathname'
54
54
 
55
- full_path = Pathname.new(path).realpath # /full/path/to/project/where/is/file.extension
55
+ full_path = Pathname.new(path)
56
+ full_path = full_path.absolute? ? full_path : full_path.realpath # /full/path/to/project/where/is/file.extension
56
57
  base_path = Pathname.new(source_directory).realpath # /full/path/to/project/
57
58
 
58
59
  full_path.relative_path_from(base_path).to_s # where/is/file.extension
data/lib/xcov/manager.rb CHANGED
@@ -229,9 +229,10 @@ module Xcov
229
229
 
230
230
  # Rename each file with global index
231
231
  tmp_report_paths.each_with_index do |item, i|
232
- File.rename(tmp_archive_paths[i], "#{output_path}/xccovarchive-#{index + i}.xccovarchive")
233
- File.rename(item, "#{output_path}/xccovreport-#{index + i}.xccovreport")
234
- index += 1
232
+ current_index = index + 1
233
+ File.rename(tmp_archive_paths[i], "#{output_path}/xccovarchive-#{current_index}.xccovarchive")
234
+ File.rename(item, "#{output_path}/xccovreport-#{current_index}.xccovreport")
235
+ index = current_index
235
236
  end
236
237
  rescue
237
238
  UI.error("Error occured while exporting xccovreport from xcresult '#{xcresult_path}'")
data/lib/xcov/options.rb CHANGED
@@ -163,6 +163,7 @@ module Xcov
163
163
  env_name: "SLACK_URL",
164
164
  description: "Create an Incoming WebHook for your Slack group to post results there",
165
165
  optional: true,
166
+ sensitive: true,
166
167
  verify_block: proc do |value|
167
168
  raise "Invalid URL, must start with https://" unless value.start_with? "https://"
168
169
  end
@@ -270,6 +271,7 @@ module Xcov
270
271
  key: :coveralls_repo_token,
271
272
  env_name: "COVERALLS_REPO_TOKEN",
272
273
  optional: true,
274
+ sensitive: true,
273
275
  conflicting_options: [:coveralls_service_name, :coveralls_service_job_id],
274
276
  description: "Repository token to be used by integrations not compatible with Coveralls"
275
277
  ),
data/lib/xcov/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.9.0"
3
+ VERSION = "1.10.0"
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.9.0
4
+ version: 1.10.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: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2026-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane