countless 2.6.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/.github/workflows/release.yml +1 -1
- data/.github/workflows/test.yml +2 -2
- data/.rubocop.yml +1 -1
- data/Appraisals +0 -6
- data/CHANGELOG.md +8 -0
- data/Dockerfile +2 -2
- data/countless.gemspec +1 -1
- data/lib/countless/statistics.rb +2 -2
- data/lib/countless/version.rb +1 -1
- metadata +4 -5
- data/gemfiles/rails_7.2.gemfile +0 -21
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/.github/workflows/test.yml
CHANGED
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
fail-fast: false
|
|
20
20
|
matrix:
|
|
21
21
|
ruby: ['3.3', '3.4', '4.0']
|
|
22
|
-
rails: ['
|
|
22
|
+
rails: ['8.0', '8.1']
|
|
23
23
|
env:
|
|
24
24
|
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
|
|
25
25
|
steps:
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ${{ matrix.ruby }}
|
|
38
38
|
bundler-cache: true
|
|
39
|
-
rubygems: '3.
|
|
39
|
+
rubygems: '3.7.2'
|
|
40
40
|
|
|
41
41
|
- name: Run the gem tests
|
|
42
42
|
run: make test
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
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.8.0 (12 February 2026)
|
|
6
|
+
|
|
7
|
+
* Corrected some RuboCop glitches ([#23](https://github.com/hausgold/countless/pull/23))
|
|
8
|
+
|
|
9
|
+
### 2.7.0 (28 January 2026)
|
|
10
|
+
|
|
11
|
+
* Dropped Rails 7.1 support ([#22](https://github.com/hausgold/countless/pull/22))
|
|
12
|
+
|
|
5
13
|
### 2.6.0 (19 January 2026)
|
|
6
14
|
|
|
7
15
|
* Added the `ostruct` gem ([#21](https://github.com/hausgold/countless/pull/21))
|
data/Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM hausgold/ruby:3.3
|
|
|
2
2
|
LABEL org.opencontainers.image.authors="containers@hausgold.de"
|
|
3
3
|
|
|
4
4
|
# Update system gem
|
|
5
|
-
RUN gem update --system '3.
|
|
5
|
+
RUN gem update --system '3.7.2'
|
|
6
6
|
|
|
7
7
|
# Install system packages and the latest bundler
|
|
8
8
|
RUN apt-get update -yqqq && \
|
|
@@ -11,7 +11,7 @@ RUN apt-get update -yqqq && \
|
|
|
11
11
|
ca-certificates \
|
|
12
12
|
bash-completion inotify-tools && \
|
|
13
13
|
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && /usr/sbin/locale-gen && \
|
|
14
|
-
gem install bundler -v '~> 2.
|
|
14
|
+
gem install bundler -v '~> 2.7.2' --no-document --no-prerelease
|
|
15
15
|
|
|
16
16
|
# Add new web user
|
|
17
17
|
RUN mkdir /app && \
|
data/countless.gemspec
CHANGED
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
|
|
35
35
|
spec.required_ruby_version = '>= 3.3'
|
|
36
36
|
|
|
37
|
-
spec.add_dependency 'activesupport', '>=
|
|
37
|
+
spec.add_dependency 'activesupport', '>= 8.0'
|
|
38
38
|
spec.add_dependency 'ostruct', '>= 0.6'
|
|
39
39
|
spec.add_dependency 'zeitwerk', '~> 2.6'
|
|
40
40
|
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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hermann Mayer
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '8.0'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
25
|
+
version: '8.0'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: ostruct
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,7 +87,6 @@ files:
|
|
|
87
87
|
- countless.gemspec
|
|
88
88
|
- doc/assets/project.svg
|
|
89
89
|
- docker-compose.yml
|
|
90
|
-
- gemfiles/rails_7.2.gemfile
|
|
91
90
|
- gemfiles/rails_8.0.gemfile
|
|
92
91
|
- gemfiles/rails_8.1.gemfile
|
|
93
92
|
- lib/countless.rb
|
|
@@ -121,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
121
120
|
- !ruby/object:Gem::Version
|
|
122
121
|
version: '0'
|
|
123
122
|
requirements: []
|
|
124
|
-
rubygems_version: 3.
|
|
123
|
+
rubygems_version: 3.7.2
|
|
125
124
|
specification_version: 4
|
|
126
125
|
summary: Code statistics/annotations helpers
|
|
127
126
|
test_files: []
|
data/gemfiles/rails_7.2.gemfile
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# This file was generated by Appraisal
|
|
2
|
-
|
|
3
|
-
source "https://rubygems.org"
|
|
4
|
-
|
|
5
|
-
gem "appraisal", "~> 2.4"
|
|
6
|
-
gem "benchmark-ips", "~> 2.10"
|
|
7
|
-
gem "bundler", ">= 2.6", "< 5"
|
|
8
|
-
gem "guard-rspec", "~> 4.7"
|
|
9
|
-
gem "irb", "~> 1.2"
|
|
10
|
-
gem "rspec", "~> 3.12"
|
|
11
|
-
gem "rubocop"
|
|
12
|
-
gem "rubocop-rails"
|
|
13
|
-
gem "rubocop-rspec"
|
|
14
|
-
gem "simplecov", ">= 0.22"
|
|
15
|
-
gem "yard", ">= 0.9.28"
|
|
16
|
-
gem "yard-activesupport-concern", ">= 0.0.1"
|
|
17
|
-
gem "activejob", "~> 7.2.0"
|
|
18
|
-
gem "activerecord", "~> 7.2.0"
|
|
19
|
-
gem "activesupport", "~> 7.2.0"
|
|
20
|
-
|
|
21
|
-
gemspec path: "../"
|