countless 2.12.0 → 2.14.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 +8 -0
- data/lib/countless/configuration.rb +1 -2
- 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: cdabee0542854afbe964a9c7d959fd9eb6752d1d10a256722b0836b3e1d914b4
|
|
4
|
+
data.tar.gz: 6fb88334a61b3d9dd2f08735d575bf35203e273e17d40814ac4537013e51fc77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6052e667ffd5a52275544ca2d2947ee37d64548b7779adfb92c1386bb1b882fa2f10d569b5bea8ea9639da8f5bc60948bc8d58cf1c2c3045afc0d8443e71dd7e
|
|
7
|
+
data.tar.gz: 2b7738d862dd00390e707c9c6ee296f9d78393fe141520f7e579a84f080e76bd7e48fe019077c55a534dd2484bb4ffe15b89ab14619b4bb268726b1229d9a3a7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
* TODO: Replace this bullet point with an actual description of a change.
|
|
4
4
|
|
|
5
|
+
### 2.14.0 (27 August 2026)
|
|
6
|
+
|
|
7
|
+
* Corrected some RuboCop glitches ([#29](https://github.com/hausgold/countless/pull/29))
|
|
8
|
+
|
|
9
|
+
### 2.13.0 (5 August 2026)
|
|
10
|
+
|
|
11
|
+
* Corrected some RuboCop glitches ([#28](https://github.com/hausgold/countless/pull/28))
|
|
12
|
+
|
|
5
13
|
### 2.12.0 (20 May 2026)
|
|
6
14
|
|
|
7
15
|
* Corrected some RuboCop glitches ([#27](https://github.com/hausgold/countless/pull/27))
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Countless
|
|
4
4
|
# The configuration for the countless gem.
|
|
5
5
|
#
|
|
6
|
-
# rubocop:disable Metrics/BlockLength -- because of the various defaults
|
|
6
|
+
# rubocop:disable-next Metrics/BlockLength -- because of the various defaults
|
|
7
7
|
class Configuration < ActiveSupport::OrderedOptions
|
|
8
8
|
# Track our configurations settings (+Symbol+ keys) and their defaults as
|
|
9
9
|
# lazy-loaded +Proc+'s values
|
|
@@ -241,5 +241,4 @@ module Countless
|
|
|
241
241
|
}.deep_merge(additional_annotation_patterns)
|
|
242
242
|
end
|
|
243
243
|
end
|
|
244
|
-
# rubocop:enable Metrics/BlockLength
|
|
245
244
|
end
|
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.14.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: []
|