xcov 0.1 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/xcov/model/base.rb +7 -0
- data/lib/xcov/model/source.rb +1 -1
- data/lib/xcov/model/target.rb +1 -1
- data/lib/xcov/version.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b893029cc3b696de5790c5f14b29bee1c9c4442
|
4
|
+
data.tar.gz: 13712b22f14c1460d21ba80c873a635cdd746cf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
|
-
###
|
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
|
-
* `
|
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.
|
data/lib/xcov/model/base.rb
CHANGED
@@ -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
|
data/lib/xcov/model/source.rb
CHANGED
data/lib/xcov/model/target.rb
CHANGED
data/lib/xcov/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
253
|
+
summary: xCov is a friendly visualizer for Xcode's code coverage files
|
254
254
|
test_files: []
|
255
|
+
has_rdoc:
|