simplecov_json_formatter 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 3bb4ce8f54bfadfbfc8c17bb86f771c95eb74e5ebf3f6420e00262d250a9a2fc
4
- data.tar.gz: d1651d433ae0200db0680f2c5e6fddae353327e6205b9819a7ce2046a05b571e
3
+ metadata.gz: 2f757b923131938814f1ca967951168fc1eebca119b011707e0f45dc88d0c712
4
+ data.tar.gz: 927a0afbefee689ce71d15f6a21748a8e3e0daad14b6523ed9e6da6cfb791629
5
5
  SHA512:
6
- metadata.gz: 8860014029cfed44306d0122cb29d490587d9be9b2041c39aa219f9e99001fa5cad44322a2cd3e154a9673e8edc04cdea5c530ac222c5dcea88d7ce3da18ea1e
7
- data.tar.gz: '09e2be169fb13c17238480d1af43ad3c915cbfb55028a89c9f28c6e55c926169ec627b30e35979c4154dd1dadef51587f662747f5e22f7ea801b4d146d038fa6'
6
+ metadata.gz: cce22c5ccf66888f8185e83495ddaa6f01781e5948aae9fe179b615dad6210694d3e3e981640cb6be0fe84912be9062da37f4f48f132a37c3239794174f067d7
7
+ data.tar.gz: e53dcc9371a5436a96b337ea3123b0f4b51f8074313d6ed545049d31368ba349e8fb14222da2150a1a60b017d1d06930d9199f875d4e5dd53b398c312c4e576e
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ 0.1.3 (2021-05-02)
2
+ ==========
3
+
4
+ ## Bugfixes
5
+ * avoid emitting warnings when ruby is run with -w [#1](https://github.com/codeclimate-community/simplecov_json_formatter/pull/1) @flavorjones
6
+
7
+
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 run 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.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCovJSONFormatter
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  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.2
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: 2020-08-31 00:00:00.000000000 Z
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.8
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: []