covered 0.20.2 → 0.21.0

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: 78b0c761d5570d863e9a5d83188e37f136838b566e984ac949f8e9875c6fbc8a
4
- data.tar.gz: 0434dcd73729213ebb510009c435557fa13d411a4b4de7564960b12482a8811e
3
+ metadata.gz: f81a87dfa60bac921785b65464dac44223ea3a449fc4701e205dd0f8d8bfece0
4
+ data.tar.gz: 7812cbe1c1622620bcc2b8dfcc70e9a97eda3cbb84dc5bea7291ce62009f5ec6
5
5
  SHA512:
6
- metadata.gz: f2f0b4eae95375d6e3f08df7d5a064660c0453e7c64775841ea193bf57cbde51ed07145b9f2558dec6a67887b278adc00833e87f96f08621359c08599c24941e
7
- data.tar.gz: 4daa48fa88d3a028343bc055743ad60eb702c964e2a98f972478c3b0823a4766db135d118bb0b19e48653a907bbf86d08a0077b1bfa41c1844cc34a7b13ca0b2
6
+ metadata.gz: 93b23c3c8ceecffbfb48d1739d0d4fc039f9e0ac90037f0414fb0ee660509d003d52e3618d3bc6ef6151ef4161e81de95e96c780868bac016ad1e7c4fe4ab709
7
+ data.tar.gz: e933d87ab654a06c99e11ea505c520ed89f60741241dc18246dca8fb6ff7266c3ddb5fa1b47c45f246de2cc5cd1325d165767a31e5e8ec63e57835138e2b6297
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2023, by Samuel Williams.
4
+ # Copyright, 2019-2023, by Samuel Williams.
5
5
 
6
6
  require_relative 'policy'
7
7
 
data/lib/covered/files.rb CHANGED
@@ -34,6 +34,8 @@ module Covered
34
34
  end
35
35
 
36
36
  def mark(lineno, value = 1)
37
+ # As currently implemented, @counts is base-zero rather than base-one.
38
+ # Line numbers generally start at line 1, so the first line, line 1, is at index 1. This means that index[0] is usually nil.
37
39
  Array(value).each_with_index do |value, index|
38
40
  offset = lineno + index
39
41
  if @counts[offset]
data/lib/covered/sus.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2023, by Samuel Williams.
4
+ # Copyright, 2019-2023, by Samuel Williams.
5
5
 
6
6
  module Covered
7
7
  module Sus
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2022, by Samuel Williams.
4
+ # Copyright, 2018-2023, by Samuel Williams.
5
5
 
6
6
  module Covered
7
- VERSION = "0.20.2"
7
+ VERSION = "0.21.0"
8
8
  end
data/license.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Copyright, 2018-2023, by Samuel Williams.
4
4
  Copyright, 2018, by Shannon Skipper.
5
- Copyright, 2018, by chocolateboy.
6
5
  Copyright, 2019, by Cyril Roelandt.
7
6
  Copyright, 2022, by Adam Daniels.
8
7
  Copyright, 2022, by Felix Yan.
data/readme.md CHANGED
@@ -61,6 +61,10 @@ When running `rspec`, you can specify the kind of coverage analysis you would li
61
61
 
62
62
  If no `COVERAGE` is specified, coverage tracking will be finishd.
63
63
 
64
+ ### Template Coverage
65
+
66
+ Covered supports coverage of templates which are compiled into Ruby code. This is only supported on Ruby 3.2+ due to enhancements in the coverage interface.
67
+
64
68
  ### Partial Summary
65
69
 
66
70
  COVERAGE=PartialSummary rspec
@@ -73,17 +77,6 @@ This report only shows snippets of source code with incomplete coverage.
73
77
 
74
78
  This report lists several files in order of least coverage.l
75
79
 
76
- ### Coveralls/Travis Integration
77
-
78
- You can send coverage information to [Coveralls](https://coveralls.io) by editing your `.travis.yml` file:
79
-
80
- matrix:
81
- include:
82
- - rvm: 2.6
83
- env: COVERAGE=PartialSummary,Coveralls
84
-
85
- This will print out a brief report and then upload the coverage data. This integrates transparently with Travis.
86
-
87
80
  ## See Also
88
81
 
89
82
  - [coveralls-ruby](https://github.com/lemurheavy/coveralls-ruby) – the official Coveralls implementation for Ruby.
@@ -91,32 +84,18 @@ This will print out a brief report and then upload the coverage data. This integ
91
84
 
92
85
  ## Contributing
93
86
 
94
- 1. Fork it
95
- 2. Create your feature branch (`git checkout -b my-new-feature`)
96
- 3. Commit your changes (`git commit -am 'Add some feature'`)
97
- 4. Push to the branch (`git push origin my-new-feature`)
98
- 5. Create new Pull Request
99
-
100
- ## License
87
+ We welcome contributions to this project.
101
88
 
102
- Released under the MIT license.
89
+ 1. Fork it.
90
+ 2. Create your feature branch (`git checkout -b my-new-feature`).
91
+ 3. Commit your changes (`git commit -am 'Add some feature'`).
92
+ 4. Push to the branch (`git push origin my-new-feature`).
93
+ 5. Create new Pull Request.
103
94
 
104
- Copyright, 2018, by [Samuel G. D. Williams](http://www.codeotaku.com/samuel-williams).
95
+ ### Developer Certificate of Origin
105
96
 
106
- Permission is hereby granted, free of charge, to any person obtaining a copy
107
- of this software and associated documentation files (the "Software"), to deal
108
- in the Software without restriction, including without limitation the rights
109
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
110
- copies of the Software, and to permit persons to whom the Software is
111
- furnished to do so, subject to the following conditions:
97
+ This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
112
98
 
113
- The above copyright notice and this permission notice shall be included in
114
- all copies or substantial portions of the Software.
99
+ ### Contributor Covenant
115
100
 
116
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
117
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
118
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
119
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
120
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
121
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
122
- THE SOFTWARE.
101
+ This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covered
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.2
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -10,7 +10,6 @@ authors:
10
10
  - Felix Yan
11
11
  - Shannon Skipper
12
12
  - Stephen Ierodiaconou
13
- - chocolateboy
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain:
@@ -43,7 +42,7 @@ cert_chain:
43
42
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
44
43
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
45
44
  -----END CERTIFICATE-----
46
- date: 2023-03-24 00:00:00.000000000 Z
45
+ date: 2023-06-30 00:00:00.000000000 Z
47
46
  dependencies:
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: console
@@ -73,62 +72,6 @@ dependencies:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
74
  version: '1.0'
76
- - !ruby/object:Gem::Dependency
77
- name: bundler
78
- requirement: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- - !ruby/object:Gem::Dependency
91
- name: rspec
92
- requirement: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.6'
97
- type: :development
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '3.6'
104
- - !ruby/object:Gem::Dependency
105
- name: sus
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '0.14'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.14'
118
- - !ruby/object:Gem::Dependency
119
- name: trenni
120
- requirement: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '3.6'
125
- type: :development
126
- prerelease: false
127
- version_requirements: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '3.6'
132
75
  description:
133
76
  email:
134
77
  executables: []
@@ -169,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
112
  requirements:
170
113
  - - ">="
171
114
  - !ruby/object:Gem::Version
172
- version: '3.2'
115
+ version: '3.0'
173
116
  required_rubygems_version: !ruby/object:Gem::Requirement
174
117
  requirements:
175
118
  - - ">="
176
119
  - !ruby/object:Gem::Version
177
120
  version: '0'
178
121
  requirements: []
179
- rubygems_version: 3.4.6
122
+ rubygems_version: 3.2.33
180
123
  signing_key:
181
124
  specification_version: 4
182
125
  summary: A modern approach to code coverage.
metadata.gz.sig CHANGED
Binary file