rspec_metric_fu 0.0.3 → 0.0.4
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 +4 -4
- data/README.md +32 -1
- data/lib/rspec_metric_fu/version.rb +1 -1
- data/rspec_metric_fu.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3498646ab501c85326f082aa23f4c3ee3eeaf49
|
4
|
+
data.tar.gz: f112ca71582b66c8f748406386193145071d0d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc4948762a5273d5118a48fbd05d2a3723550e15a6262d6106ba4e0be608d915cf906bdcf6576c91ebf93350672e83427b1c6937886bdda61e301185ae437b51
|
7
|
+
data.tar.gz: 998a01ebbe0e4744d3366adbd6949b3400916d326665820fd9d657793f476b5a80faa10eaf655fbfed037ca06dcbf463807bb2e1591a54e5b22e135d41527213
|
data/README.md
CHANGED
@@ -16,9 +16,40 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install rspec_metric_fu
|
18
18
|
|
19
|
+
You will want to write a '.metrics' file with this content:
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
MetricFu::Configuration.run do |config|
|
23
|
+
config.configure_metric(:rcov) do |rcov|
|
24
|
+
rcov.coverage_file = MetricFu.run_path.join("coverage/rcov/rcov.txt")
|
25
|
+
rcov.enable
|
26
|
+
rcov.activate
|
27
|
+
end
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
and add these lines to your 'spec/spec_helper.rb'
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require 'rspec_metric_fu'
|
35
|
+
RspecMetricFu::Coverage.start
|
36
|
+
```
|
37
|
+
|
19
38
|
## Usage
|
39
|
+
To get awesome metrics, first run:
|
40
|
+
|
41
|
+
```bash
|
42
|
+
bundle exec rspec
|
43
|
+
```
|
44
|
+
|
45
|
+
and then:
|
46
|
+
|
47
|
+
```bash
|
48
|
+
bundle exec metric_fu
|
49
|
+
```
|
20
50
|
|
21
|
-
|
51
|
+
## Summary
|
52
|
+

|
22
53
|
|
23
54
|
## Contributing
|
24
55
|
|
data/rspec_metric_fu.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_metric_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.7.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.7.1
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- nick.thomas@mobileeventguide.de
|