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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f92d8847094e24c2e4715eed8e3dce8272a9fc157894211109aac8768fd42ab0
4
- data.tar.gz: a65ce8b9cd8296cf5661ec3a04efd952a2883876d590d865a1733e4502c9e76c
3
+ metadata.gz: fed3a4c629b3b60718ebbf67d3ff3b4b343851838319b0170892066a042e1497
4
+ data.tar.gz: 58c9c4022aba5643c17f918da60c5979aa80922a97e806f3375d2b81f80330d4
5
5
  SHA512:
6
- metadata.gz: c94a5c409f1e1037a344bdde223f38cb09b3e265ccf9bef28d64f2e020f19c77ecd86479ee0143575c8a520da3af8e3d904751a440021dfd0ec629dc3b259917
7
- data.tar.gz: 24d9bebafda2768929591ad62184160ad4b012d29bdcd25c3a6af95809a0eb1742c7860c6e6d12f36b5ca1768f38de78fbc284a2d972927a3db64cb4329d9192
6
+ metadata.gz: 060eaf66d345a3e9103c2f829676f6e493679606b033f31d6c855112a6827b7c3d46c2a25905020c93161badd0b6c2238abfdfc2fe984a69a12fc50594265f20
7
+ data.tar.gz: 983b976d8e7bffe7aac65b6124ec0aba0976e80e11b60a55c5eea059a2c7982ede85c0db610e106a94ffb888a4e1132518f9c5c2197baba63e89c940d6d68fd1
@@ -31,7 +31,7 @@ jobs:
31
31
  with:
32
32
  ruby-version: 3.3
33
33
  bundler-cache: true
34
- rubygems: '3.6.9'
34
+ rubygems: '3.7.2'
35
35
 
36
36
  - name: Switch to SSH remotes for the Git repository
37
37
  run: git-ssh-remotes
@@ -19,7 +19,7 @@ jobs:
19
19
  fail-fast: false
20
20
  matrix:
21
21
  ruby: ['3.3', '3.4', '4.0']
22
- rails: ['7.2', '8.0', '8.1']
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.6.9'
39
+ rubygems: '3.7.2'
40
40
 
41
41
  - name: Run the gem tests
42
42
  run: make test
data/.rubocop.yml CHANGED
@@ -15,7 +15,7 @@ AllCops:
15
15
  SuggestExtensions: false
16
16
  DisplayCopNames: true
17
17
  TargetRubyVersion: 3.3
18
- TargetRailsVersion: 7.2
18
+ TargetRailsVersion: 8.0
19
19
  Exclude:
20
20
  - bin/**/*
21
21
  - vendor/**/*
data/Appraisals CHANGED
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-7.2' do
4
- gem 'activejob', '~> 7.2.0'
5
- gem 'activerecord', '~> 7.2.0'
6
- gem 'activesupport', '~> 7.2.0'
7
- end
8
-
9
3
  appraise 'rails-8.0' do
10
4
  gem 'activejob', '~> 8.0.0'
11
5
  gem 'activerecord', '~> 8.0.0'
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.4.22'
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.6.9' --no-document --no-prerelease
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', '>= 7.2'
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
@@ -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
- .map { |conf| conf[:stats].code_lines }.sum
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
- .map { |conf| conf[:stats].code_lines }.sum
100
+ .map { |conf| conf[:stats].code_lines }.sum
101
101
  end
102
102
 
103
103
  # Convert the code statistics to a formatted string buffer.
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Countless
5
5
  # The version of the +countless+ gem
6
- VERSION = '2.6.0'
6
+ VERSION = '2.8.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
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.6.0
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: '7.2'
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: '7.2'
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.6.9
123
+ rubygems_version: 3.7.2
125
124
  specification_version: 4
126
125
  summary: Code statistics/annotations helpers
127
126
  test_files: []
@@ -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: "../"