countless 2.12.0 → 2.13.0
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/CHANGELOG.md +4 -0
- data/lib/countless/statistics.rb +2 -2
- data/lib/countless/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8796604e74e1ea93f095ef2f0078bec5ef8a81b688cc91112f4475eafc0ab9f7
|
|
4
|
+
data.tar.gz: a727b9dd4f6385ef918c3407b9b66daa41a7949a74561f10f23b6a3c55d47702
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c23384d1bb4b8fd1e0471bec8dc86c0aee17cccd325a9d936cda47a1cf9d95b1d15036f6a3035426cba7e8428d265947029d12f9cf5538636b84850b647371ca
|
|
7
|
+
data.tar.gz: fa27990f0d717cac288c1596249b36288d5847deba99f2332477106861c1f6aec8afa7d94bad9d49de31b01897c672af6fffd2278940fdbfa493e532b9b6b565
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 2.13.0 (5 August 2026)
|
|
6
|
+
|
|
7
|
+
* Corrected some RuboCop glitches ([#28](https://github.com/hausgold/countless/pull/28))
|
|
8
|
+
|
|
5
9
|
### 2.12.0 (20 May 2026)
|
|
6
10
|
|
|
7
11
|
* Corrected some RuboCop glitches ([#27](https://github.com/hausgold/countless/pull/27))
|
data/lib/countless/statistics.rb
CHANGED
|
@@ -89,7 +89,7 @@ module Countless
|
|
|
89
89
|
# @return [Integer] the total lines of code
|
|
90
90
|
def calculate_code
|
|
91
91
|
@statistics.values.reject { |conf| conf[:test] }
|
|
92
|
-
|
|
92
|
+
.map { |conf| conf[:stats].code_lines }.sum
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
# Calculate the total lines of testing code.
|
|
@@ -97,7 +97,7 @@ module Countless
|
|
|
97
97
|
# @return [Integer] the total lines of testing code
|
|
98
98
|
def calculate_tests
|
|
99
99
|
@statistics.values.select { |conf| conf[:test] }
|
|
100
|
-
|
|
100
|
+
.map { |conf| conf[:stats].code_lines }.sum
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
# Convert the code statistics to a formatted string buffer.
|
data/lib/countless/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: countless
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.13.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hermann Mayer
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
134
|
version: '0'
|
|
135
135
|
requirements: []
|
|
136
|
-
rubygems_version: 4.0.
|
|
136
|
+
rubygems_version: 4.0.16
|
|
137
137
|
specification_version: 4
|
|
138
138
|
summary: Code statistics/annotations helpers
|
|
139
139
|
test_files: []
|