xcov 1.4.0 → 1.4.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
  SHA1:
3
- metadata.gz: da2758b99e44d950c2911d36f08b1aac504c88ef
4
- data.tar.gz: 271d955103fb0d6d932a99352e44d91442809b9d
3
+ metadata.gz: ecef034b662be731adafd706521069f71eb290f4
4
+ data.tar.gz: 43d3f8812d0a8dd0863dd5969cef486ac5fa7f3d
5
5
  SHA512:
6
- metadata.gz: f40a3c1f8964eeea59e200af826a8b6672fe17462c9e96ca0c68356f184dc55b3990bcfe46d1ded3f9c00727162c9dde6ddda8e425ff9a9f6385b7f59bc1e2da
7
- data.tar.gz: 50f0692e00f140a4d37ddaec13220094077116131caa38b3975611fda65bc3d87439b70f3ad20f931406bebc8b8db16886624f9a31ad254977a3d86d9f038e60
6
+ metadata.gz: 37dc5167f58ed74df96558cd613c3556f4a068fa70746a4e6a19444b846e35da8b635fb5800c349f908fd9e3161162f3b5a03083a7a16f253d0fada0326eb89b
7
+ data.tar.gz: 28e691c1103a4784af79eda99b2eb213c52c32d785b9f20ac5437e9eb436a97c1b3eac8e9ad2c88049cd560e6636bd8390859b6d2cc08ddc5e7939f0578e3626
data/README.md CHANGED
@@ -70,6 +70,7 @@ xcov -w LystSDK.xcworkspace -s LystSDK -o xcov_output
70
70
  * `--markdown_report`: Enables the creation of a markdown report (optional).
71
71
  * `--skip_slack`: Add this flag to avoid publishing results on Slack (optional).
72
72
  * `--only_project_targets`: Display the coverage only for main project targets (e.g. skip Pods targets).
73
+ * `--disable_coveralls`: Add this flag to disable automatic submission to Coveralls.
73
74
  * `--coveralls_service_name`: Name of the CI service compatible with Coveralls. i.e. travis-ci. This option must be defined along with coveralls_service_job_id (optional).
74
75
  * `--coveralls_service_job_id`: Name of the current job running on a CI service compatible with Coveralls. This option must be defined along with coveralls_service_name (optional).
75
76
  * `--coveralls_repo_token`: Repository token to be used by integrations not compatible with Coveralls (optional).
@@ -147,6 +148,8 @@ If you want to keep track of the coverage evolution and get some extra features,
147
148
  [![KrauseFx](https://avatars1.githubusercontent.com/u/869950?v=3&s=50)](https://github.com/KrauseFx)
148
149
  [![BennX](https://avatars1.githubusercontent.com/u/4281635?v=3&s=50)](https://github.com/BennX)
149
150
  [![initFabian](https://avatars1.githubusercontent.com/u/8469495?v=3&s=50)](https://github.com/initFabian)
151
+ [![revolter](https://avatars1.githubusercontent.com/u/5748627?v=3&s=50)](https://github.com/revolter)
152
+ [![chrisballinger](https://avatars1.githubusercontent.com/u/518687?v=3&s=50)](https://github.com/chrisballinger)
150
153
 
151
154
 
152
155
  ## License
@@ -26,10 +26,13 @@ module Xcov
26
26
  next if file.ignored
27
27
 
28
28
  # Iterate through file lines
29
+
29
30
  lines = []
30
- file.lines.each do |line|
31
- lines << line.execution_count if line.executable
32
- lines << nil unless line.executable
31
+ if !file.lines.nil?
32
+ file.lines.each do |line|
33
+ lines << line.execution_count if line.executable
34
+ lines << nil unless line.executable
35
+ end
33
36
  end
34
37
 
35
38
  relative_path = file.location
@@ -22,7 +22,7 @@ module Xcov
22
22
  Xcov.ignore_handler = IgnoreHandler.new
23
23
 
24
24
  # Print summary
25
- FastlaneCore::PrintTable.print_values(config: options, hide_keys: [:slack_url], title: "Summary for xcov #{Xcov::VERSION}")
25
+ FastlaneCore::PrintTable.print_values(config: options, hide_keys: [:slack_url, :coveralls_repo_token], title: "Summary for xcov #{Xcov::VERSION}")
26
26
  end
27
27
 
28
28
  def run
@@ -132,6 +132,9 @@ module Xcov
132
132
  end
133
133
 
134
134
  def submit_to_coveralls(report)
135
+ if Xcov.config[:disable_coveralls]
136
+ return
137
+ end
135
138
  if !Xcov.config[:coveralls_repo_token].nil? || !(Xcov.config[:coveralls_service_name].nil? && Xcov.config[:coveralls_service_job_id].nil?)
136
139
  CoverallsHandler.submit(report)
137
140
  end
@@ -78,7 +78,8 @@ module Xcov
78
78
  short_option: "-o",
79
79
  env_name: "XCOV_OUTPUT_DIRECTORY",
80
80
  description: "The directory in which all reports will be stored",
81
- default_value: File.join(containing, "xcov_report")
81
+ default_value: File.join(containing, "xcov_report"),
82
+ default_value_dynamic: true
82
83
  ),
83
84
 
84
85
  # Report options
@@ -158,7 +159,8 @@ module Xcov
158
159
  short_option: "-x",
159
160
  env_name: "XCOV_IGNORE_FILE_PATH",
160
161
  description: "Relative or absolute path to the file containing the list of ignored files",
161
- default_value: File.join(containing, ".xcovignore")
162
+ default_value: File.join(containing, ".xcovignore"),
163
+ default_value_dynamic: true
162
164
  ),
163
165
  FastlaneCore::ConfigItem.new(
164
166
  key: :include_test_targets,
@@ -189,6 +191,14 @@ module Xcov
189
191
  ),
190
192
 
191
193
  # Coveralls options
194
+ FastlaneCore::ConfigItem.new(
195
+ key: :disable_coveralls,
196
+ env_name: "DISABLE_COVERALLS",
197
+ default_value: false,
198
+ type: Boolean,
199
+ optional: true,
200
+ description: "Add this flag to disable automatic submission to Coveralls."
201
+ ),
192
202
  FastlaneCore::ConfigItem.new(
193
203
  key: :coveralls_service_name,
194
204
  env_name: "COVERALLS_SERVICE_NAME",
@@ -228,13 +238,15 @@ module Xcov
228
238
  env_name: "XCOV_IDE_FOUNDATION_PATH",
229
239
  description: "Absolute path to the IDEFoundation.framework binary",
230
240
  optional: true,
231
- default_value: File.join(`/usr/bin/xcode-select -p`.delete!("\n"), "../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation")
241
+ default_value: File.join(`/usr/bin/xcode-select -p`.delete!("\n"), "../Frameworks/IDEFoundation.framework/Versions/A/IDEFoundation"),
242
+ default_value_dynamic: true
232
243
  ),
233
244
  FastlaneCore::ConfigItem.new(
234
245
  key: :legacy_support,
235
246
  env_name: "XCOV_LEGACY_SUPPORT",
236
247
  description: "Whether xcov should parse a xccoverage file instead on xccovreport",
237
248
  optional: true,
249
+ is_string: false,
238
250
  default_value: false
239
251
  )
240
252
  ]
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Vidal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-03 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane
@@ -196,8 +196,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project:
199
- rubygems_version: 2.6.12
199
+ rubygems_version: 2.4.8
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: xcov is a friendly visualizer for Xcode's code coverage files
203
203
  test_files: []
204
+ has_rdoc: