simplecov_json_formatter 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -2
- data/lib/simplecov_json_formatter/source_file_formatter.rb +2 -1
- data/lib/simplecov_json_formatter/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f757b923131938814f1ca967951168fc1eebca119b011707e0f45dc88d0c712
|
4
|
+
data.tar.gz: 927a0afbefee689ce71d15f6a21748a8e3e0daad14b6523ed9e6da6cfb791629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cce22c5ccf66888f8185e83495ddaa6f01781e5948aae9fe179b615dad6210694d3e3e981640cb6be0fe84912be9062da37f4f48f132a37c3239794174f067d7
|
7
|
+
data.tar.gz: e53dcc9371a5436a96b337ea3123b0f4b51f8074313d6ed545049d31368ba349e8fb14222da2150a1a60b017d1d06930d9199f875d4e5dd53b398c312c4e576e
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Depending on your `SimpleCoV`'s settings you will experiment different outcomes.
|
|
15
15
|
|
16
16
|
## Development
|
17
17
|
|
18
|
-
We encourage you to use docker for common operations like running tests, or debugging your code. Running `make sh` will
|
18
|
+
We encourage you to use docker for common operations like running tests, or debugging your code. Running `make sh` will start a new container instance based on the `Dockerfile` provided at root, finally a shell prompt will be displayed on your terminal. Also, syncronization with your local files will be already set.
|
19
19
|
### Tests
|
20
20
|
`make test` will trigger the excution of both running tests and running rubocop as linter, by simply running `rake`, this actions will be run inside a new container but using your local files.
|
21
21
|
|
@@ -25,4 +25,4 @@ We encourage you to use docker for common operations like running tests, or debu
|
|
25
25
|
|
26
26
|
## Copyright
|
27
27
|
|
28
|
-
See License
|
28
|
+
See [License](https://github.com/codeclimate-community/simplecov_json_formatter/blob/master/LICENSE)
|
@@ -4,6 +4,7 @@ module SimpleCovJSONFormatter
|
|
4
4
|
class SourceFileFormatter
|
5
5
|
def initialize(source_file)
|
6
6
|
@source_file = source_file
|
7
|
+
@line_coverage = nil
|
7
8
|
end
|
8
9
|
|
9
10
|
def format
|
@@ -17,7 +18,7 @@ module SimpleCovJSONFormatter
|
|
17
18
|
private
|
18
19
|
|
19
20
|
def line_coverage
|
20
|
-
@line_coverage
|
21
|
+
@line_coverage ||= {
|
21
22
|
lines: lines
|
22
23
|
}
|
23
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov_json_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Federico Moya
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: JSON formatter for SimpleCov
|
14
14
|
email:
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- CHANGELOG.md
|
20
21
|
- README.md
|
21
22
|
- lib/simplecov_json_formatter.rb
|
22
23
|
- lib/simplecov_json_formatter/result_exporter.rb
|
@@ -27,7 +28,7 @@ homepage: https://github.com/fede-moya/simplecov_json_formatter
|
|
27
28
|
licenses:
|
28
29
|
- MIT
|
29
30
|
metadata: {}
|
30
|
-
post_install_message:
|
31
|
+
post_install_message:
|
31
32
|
rdoc_options: []
|
32
33
|
require_paths:
|
33
34
|
- lib
|
@@ -42,8 +43,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
43
|
- !ruby/object:Gem::Version
|
43
44
|
version: '0'
|
44
45
|
requirements: []
|
45
|
-
rubygems_version: 3.0.
|
46
|
-
signing_key:
|
46
|
+
rubygems_version: 3.0.3
|
47
|
+
signing_key:
|
47
48
|
specification_version: 4
|
48
49
|
summary: JSON formatter for SimpleCov
|
49
50
|
test_files: []
|