xcov 0.1 → 0.2

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
  SHA1:
3
- metadata.gz: f5af464fbf3f88a7aba070398ff79c0c099c2889
4
- data.tar.gz: 0126caf1b33c0d574927b7dfa17ad3b77c074cf9
3
+ metadata.gz: 9b893029cc3b696de5790c5f14b29bee1c9c4442
4
+ data.tar.gz: 13712b22f14c1460d21ba80c873a635cdd746cf2
5
5
  SHA512:
6
- metadata.gz: b0c0f8b4a9b75fc8618c7e875a7937bc35f67e5cd2d791e7c863eb0027469daeabd4d223f7a4f5a491483a597f277b6c70cfc28a53fa659820817d0ea4f62db4
7
- data.tar.gz: edad70173b62a3f4d172fa9ea31b8d4b856efcaf421176a8d08f6e2d802b7a01dd9bfe5f93f722560ea1d50c9ae2757cbced3a1ca215ef97fb8333c3f00f6a5f
6
+ metadata.gz: ba729410cedf50a75000e4a42010dea49d338327232ddc2db663ea1a927d4479807533f87330562b1077fa94c0b79ff4c2901b23463975a577f0cf93f61107dd
7
+ data.tar.gz: d2dc61db9a3cf662f3ef8f544df36b809f0192ec5dfafd652bd357d75213618aa6d3b08709a5efe8e9d06d2bcc6de404313466f1ca44edd78355fe4fb0fdc079
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  -------
3
3
  [![Twitter: @FastlaneTools](https://img.shields.io/badge/contact-@carlostify-blue.svg?style=flat)](https://twitter.com/carlostify)
4
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/nakiostudio/xcov/blob/master/LICENSE)
5
- [![Gem](https://img.shields.io/gem/v/xcode.svg?style=flat)](http://rubygems.org/gems/xcov)
5
+ [![Gem](https://img.shields.io/gem/v/xcov.svg?style=flat)](http://rubygems.org/gems/xcov)
6
6
 
7
7
  **xCov** is a friendly visualizer for Xcode's code coverage files.
8
8
 
@@ -36,15 +36,25 @@ In order to make *xCov* run you must:
36
36
  xcov -w LystSDK.xcworkspace -s LystSDK -o xcov_output
37
37
  ```
38
38
 
39
- ### List of parameters allowed
39
+ ### Parameters allowed
40
40
  * `workspace` `-w`: Path of your `xcworkspace` file.
41
41
  * `project` `-p`: Path of your `xcodeproj` file (optional).
42
42
  * `scheme` `-s`: Scheme of the project to analyze.
43
- * `output` `-o`: Path for the output folder where the report files will be saved.
43
+ * `output_directory` `-o`: Path for the output folder where the report files will be saved.
44
44
  * `derived_data_path` `-j`: Path of your project `Derived Data` folder (optional).
45
45
  * `slack_url` `-i`: Incoming WebHook for your Slack group to post results (optional).
46
46
  * `slack_channel` `-e`: Slack channel where the results will be posted (optional).
47
47
  * `skip_slack`: Add this flag to avoid publishing results on Slack (optional).
48
48
 
49
+ ### [Fastlane](https://github.com/fastlane/fastlane/blob/master/docs/Actions.md)
50
+ *Fastlane 1.61.0* includes *xCov* as a custom action. You can easily create your coverage reports as follows:
51
+ ```ruby
52
+ xcov(
53
+ workspace: "YourWorkspace.xcworkspace",
54
+ scheme: "YourScheme",
55
+ output_directory: "xcov_output"
56
+ )
57
+ ```
58
+
49
59
  # License
50
60
  This project is licensed under the terms of the MIT license. See the LICENSE file.
@@ -43,5 +43,12 @@ module Xcov
43
43
  ERB.new(File.read(File.join(File.dirname(__FILE__), "../../../views/", "#{name}.erb")))
44
44
  end
45
45
 
46
+ def self.create_id(name)
47
+ char_map = [('a'..'z'), ('A'..'Z')].map { |i| i.to_a }.flatten
48
+ random = (0...50).map { char_map[rand(char_map.length)] }.join
49
+ pre_hash = "#{random}_#{name}"
50
+ Digest::SHA1.hexdigest(pre_hash)
51
+ end
52
+
46
53
  end
47
54
  end
@@ -15,7 +15,7 @@ module Xcov
15
15
  @functions = functions
16
16
  @displayable_coverage = self.create_displayable_coverage
17
17
  @coverage_color = self.create_coverage_color
18
- @id = Digest::SHA1.hexdigest(name)
18
+ @id = Source.create_id(name)
19
19
  @type = Source.type(name)
20
20
  end
21
21
 
@@ -14,7 +14,7 @@ module Xcov
14
14
  @files = files
15
15
  @displayable_coverage = self.create_displayable_coverage
16
16
  @coverage_color = self.create_coverage_color
17
- @id = Digest::SHA1.hexdigest(name)
17
+ @id = Target.create_id(name)
18
18
  end
19
19
 
20
20
  def print_description
@@ -1,6 +1,6 @@
1
1
  module Xcov
2
2
 
3
- VERSION = "0.1"
4
- DESCRIPTION = "Nice coverage reporting without hassle"
3
+ VERSION = "0.2"
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: '0.1'
4
+ version: '0.2'
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-02-13 00:00:00.000000000 Z
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -184,7 +184,7 @@ dependencies:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
- description: Nice coverage reporting without hassle
187
+ description: xCov is a friendly visualizer for Xcode's code coverage files
188
188
  email:
189
189
  - nakioparkour@gmail.com
190
190
  executables:
@@ -250,5 +250,6 @@ rubyforge_project:
250
250
  rubygems_version: 2.4.8
251
251
  signing_key:
252
252
  specification_version: 4
253
- summary: Nice coverage reporting without hassle
253
+ summary: xCov is a friendly visualizer for Xcode's code coverage files
254
254
  test_files: []
255
+ has_rdoc: