countless 2.7.0 → 2.8.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 +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fed3a4c629b3b60718ebbf67d3ff3b4b343851838319b0170892066a042e1497
|
|
4
|
+
data.tar.gz: 58c9c4022aba5643c17f918da60c5979aa80922a97e806f3375d2b81f80330d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 060eaf66d345a3e9103c2f829676f6e493679606b033f31d6c855112a6827b7c3d46c2a25905020c93161badd0b6c2238abfdfc2fe984a69a12fc50594265f20
|
|
7
|
+
data.tar.gz: 983b976d8e7bffe7aac65b6124ec0aba0976e80e11b60a55c5eea059a2c7982ede85c0db610e106a94ffb888a4e1132518f9c5c2197baba63e89c940d6d68fd1
|
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.8.0 (12 February 2026)
|
|
6
|
+
|
|
7
|
+
* Corrected some RuboCop glitches ([#23](https://github.com/hausgold/countless/pull/23))
|
|
8
|
+
|
|
5
9
|
### 2.7.0 (28 January 2026)
|
|
6
10
|
|
|
7
11
|
* Dropped Rails 7.1 support ([#22](https://github.com/hausgold/countless/pull/22))
|
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