simplecov-oj 0.18.3 → 0.18.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c79725e77c65ffc720f386f1fc92a5bb131c3ed85253f5020b211397cf51c864
4
- data.tar.gz: 41c1cf717b408c4b6e8e7abf1504178d2d020b662d6a256cd55b7477d301ab4c
3
+ metadata.gz: a52b58ac549b3d82b715da3fa43d20c652c8c22cdc8bf98670d57a14814baf2a
4
+ data.tar.gz: e43b431dbf0f1be41ae3dd0689db0a470be28d3881360dace7f7d6f27566333b
5
5
  SHA512:
6
- metadata.gz: ea9788ab04d7a288938cfd83298991d94b24801acfe9397809345a0c200ad5e2c05ffde92e6079477bdbe2806cdac203f59c9f9767998c94ec6a5d1f91a92f1f
7
- data.tar.gz: 1a5cc01c0056abada359228d2681fb50d67c2a17f75597241908e33b4004d06c5b3804ed60b353489105cad1ff81dd98cc3108c4fe1d1ae412433e5406deec9a
6
+ metadata.gz: 1d381f4bca2f0cbbed401b46a21159558044edb8db4e8899377d626065f2be66f87e7037ffd217326bbc921526571049a41e00746dfe0ff268d04f2e6f0067ff
7
+ data.tar.gz: 9294869a32134d92899e05ab84395746499f9e95890762bbf8995ebdf720bc5fb6a6a4a78880891924ba192a92c44ebacea45ea387a39c1ae94e98097a914989
data/README.md CHANGED
@@ -1,17 +1,21 @@
1
- # simplecov-json
1
+ # simplecov-oj
2
2
 
3
- JSON formatter for the ruby 1.9+ code coverage gem SimpleCov
3
+ JSON formatter for the ruby 2.5+ code coverage gem SimpleCov
4
4
 
5
5
  ## Usage
6
6
 
7
- 1. Add simplecov-json to your `Gemfile` and `bundle install`:
7
+ 1. Add simplecov-oj to your `Gemfile` and `bundle install`:
8
8
 
9
- gem 'simplecov-json', :require => false, :group => :test
9
+ ```ruby
10
+ gem 'simplecov-oj', require: false, group: :test
11
+ ```
10
12
 
11
- 2. Require simplecov-json and set it up as SimpleCov's formatter:
13
+ 2. Require simplecov-oj and set it up as SimpleCov's formatter:
12
14
 
13
- require 'simplecov-json'
14
- SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
15
+ ```ruby
16
+ require 'simplecov-oj'
17
+ SimpleCov.formatter = SimpleCov::Formatter::OjFormatter
18
+ ```
15
19
 
16
20
  ## Result
17
21
 
@@ -61,4 +65,4 @@ If you want to contribute, please:
61
65
 
62
66
  ## Copyright
63
67
 
64
- Copyright (c) 2013 Mikael Llongo. See LICENSE for details.
68
+ Copyright (c) 2020 Mikael Henriksson. See LICENSE for details.
@@ -41,7 +41,7 @@ module SimpleCov
41
41
  def coverage_data
42
42
  return coverage if coverage.is_a?(Array)
43
43
 
44
- coverage['lines']
44
+ coverage.transform_keys(&:to_sym)[:lines]
45
45
  end
46
46
 
47
47
  def coverage
@@ -9,6 +9,6 @@ module SimpleCov
9
9
  module Oj
10
10
  #
11
11
  # @return [String] the current version of the gem
12
- VERSION = '0.18.3'
12
+ VERSION = '0.18.4'
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-oj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.3
4
+ version: 0.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-06 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -134,20 +134,6 @@ dependencies:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '3.9'
137
- - !ruby/object:Gem::Dependency
138
- name: simplecov-json
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: '0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- version: '0'
151
137
  - !ruby/object:Gem::Dependency
152
138
  name: github-markup
153
139
  requirement: !ruby/object:Gem::Requirement