countless 1.5.1 → 2.0.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: 2d9664ed4e59ece63018a7442d0efe49a91cde8c1de0d6558eabf81926a96b8e
4
- data.tar.gz: e397a9899834faa31a0ed2b0d0bacaa3541393b999c74d5945365cff1d7afab5
3
+ metadata.gz: b67ae45b4a8679fe8b9dbf384149c1fd3b26c780e6907d7412fd43f69097eaa2
4
+ data.tar.gz: f3cbc1403a7cf3a7fdf57999a890932a63595844266e234c5bb903d5dc25465e
5
5
  SHA512:
6
- metadata.gz: eae663a728f9aae15aec38152aebeed2a700116d7cefccf5b2160d5cc810a373c5d544b674860960b5d599ca3e9bf568f39e7a05b2203c067765c750a1b7475d
7
- data.tar.gz: 65aeae0be6f5f18ea7e1f958eed1ab0581087d9d908bbe778a0f6b07c4df777b6bcf73b9126f27b7824f848e9557f6680275f3c8860e2338f7ba60d8458e1b7d
6
+ metadata.gz: 2d6f47151bea448085de0670e45e063294225103656a42a7981043c6060456da84da87511212990ac0918cb4e7a34788167278c3a83273a5070cc5a0a017a001
7
+ data.tar.gz: a33f4f04e11242ea7a00eefb05a2d28c01eeb6833c280c0754097afde02b2d488648efcdefbc2ab07b322cd1dcd3f23a2ab6eb0c93329f6106993c36c37f47b1
@@ -20,12 +20,12 @@ jobs:
20
20
  steps:
21
21
  - uses: actions/checkout@v4
22
22
 
23
- - name: Install Ruby 2.7
23
+ - name: Install Ruby 3.2
24
24
  uses: ruby/setup-ruby@v1
25
25
  with:
26
- ruby-version: 2.7
26
+ ruby-version: 3.2
27
27
  bundler-cache: true
28
- rubygems: '3.4.22'
28
+ rubygems: '3.6.9'
29
29
 
30
30
  - name: Prepare the virtual environment
31
31
  uses: hausgold/actions/ci@master
@@ -18,8 +18,8 @@ jobs:
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
22
- rails: ['6.1', '7.1']
21
+ ruby: ['3.2', '3.3', '3.4']
22
+ rails: ['7.1', '7.2', '8.0']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
@@ -30,7 +30,7 @@ jobs:
30
30
  with:
31
31
  ruby-version: ${{ matrix.ruby }}
32
32
  bundler-cache: true
33
- rubygems: '3.4.22'
33
+ rubygems: '3.6.9'
34
34
 
35
35
  - name: Prepare the virtual environment
36
36
  uses: hausgold/actions/ci@master
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ AllCops:
9
9
  NewCops: enable
10
10
  SuggestExtensions: false
11
11
  DisplayCopNames: true
12
- TargetRubyVersion: 2.7
12
+ TargetRubyVersion: 3.2
13
13
  TargetRailsVersion: 6.1
14
14
  Exclude:
15
15
  - bin/**/*
data/Appraisals CHANGED
@@ -1,13 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-6.1' do
4
- gem 'activejob', '~> 6.1.0'
5
- gem 'activerecord', '~> 6.1.0'
6
- gem 'activesupport', '~> 6.1.0'
7
- end
8
-
9
3
  appraise 'rails-7.1' do
10
4
  gem 'activejob', '~> 7.1.0'
11
5
  gem 'activerecord', '~> 7.1.0'
12
6
  gem 'activesupport', '~> 7.1.0'
13
7
  end
8
+
9
+ appraise 'rails-7.2' do
10
+ gem 'activejob', '~> 7.2.0'
11
+ gem 'activerecord', '~> 7.2.0'
12
+ gem 'activesupport', '~> 7.2.0'
13
+ end
14
+
15
+ appraise 'rails-8.0' do
16
+ gem 'activejob', '~> 8.0.0'
17
+ gem 'activerecord', '~> 8.0.0'
18
+ gem 'activesupport', '~> 8.0.0'
19
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 2.0.0 (28 June 2025)
6
+
7
+ * Corrected some RuboCop glitches ([#11](https://github.com/hausgold/countless/pull/11))
8
+ * Drop Ruby 2 and end of life Rails (<7.1) ([#12](https://github.com/hausgold/countless/pull/12))
9
+
5
10
  ### 1.5.1 (21 May 2025)
6
11
 
7
12
  * Corrected some RuboCop glitches ([#9](https://github.com/hausgold/countless/pull/9))
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM hausgold/ruby:2.7
1
+ FROM hausgold/ruby:3.2
2
2
  LABEL org.opencontainers.image.authors="containers@hausgold.de"
3
3
 
4
4
  # Update system gem
@@ -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.4.22' --no-document --no-prerelease
14
+ gem install bundler -v '~> 2.6.9' --no-document --no-prerelease
15
15
 
16
16
  # Add new web user
17
17
  RUN mkdir /app && \
data/Gemfile CHANGED
@@ -10,7 +10,7 @@ gemspec
10
10
  # Development dependencies
11
11
  gem 'appraisal', '~> 2.4'
12
12
  gem 'benchmark-ips', '~> 2.10'
13
- gem 'bundler', '~> 2.3'
13
+ gem 'bundler', '~> 2.6'
14
14
  gem 'guard-rspec', '~> 4.7'
15
15
  gem 'irb', '~> 1.2'
16
16
  gem 'rspec', '~> 3.12'
data/Makefile CHANGED
@@ -134,7 +134,7 @@ test-style: \
134
134
  test-style-ruby:
135
135
  # Run the static code analyzer (rubocop)
136
136
  @$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
137
- || ($(TEST) $$($(RUBY_VERSION)) != '2.7' && true))
137
+ || ($(TEST) $$($(RUBY_VERSION)) != '3.2' && true))
138
138
 
139
139
  clean:
140
140
  # Clean the dependencies
data/README.md CHANGED
@@ -43,7 +43,7 @@ $ bundle
43
43
 
44
44
  ## Requirements
45
45
 
46
- * [Ruby](https://www.ruby-lang.org/) (>=2.7, tested on CRuby/MRI only, may work
46
+ * [Ruby](https://www.ruby-lang.org/) (>=3.2, tested on CRuby/MRI only, may work
47
47
  with other implementations as well)
48
48
  * [Perl](https://www.perl.org/) (>= 5.10, for the
49
49
  [cloc](https://github.com/AlDanial/cloc) utility)
data/countless.gemspec CHANGED
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
33
  spec.require_paths = ['lib']
34
34
 
35
- spec.required_ruby_version = '>= 2.7'
35
+ spec.required_ruby_version = '>= 3.2'
36
36
 
37
- spec.add_dependency 'activesupport', '>= 6.1'
37
+ spec.add_dependency 'activesupport', '>= 7.1'
38
38
  spec.add_dependency 'zeitwerk', '~> 2.6'
39
39
  end
data/docker-compose.yml CHANGED
@@ -1,4 +1,3 @@
1
- version: "3"
2
1
  services:
3
2
  test:
4
3
  build: .
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal", "~> 2.4"
6
6
  gem "benchmark-ips", "~> 2.10"
7
- gem "bundler", "~> 2.3"
7
+ gem "bundler", "~> 2.6"
8
8
  gem "guard-rspec", "~> 4.7"
9
9
  gem "irb", "~> 1.2"
10
10
  gem "rspec", "~> 3.12"
@@ -0,0 +1,21 @@
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"
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: "../"
@@ -0,0 +1,21 @@
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"
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", "~> 8.0.0"
18
+ gem "activerecord", "~> 8.0.0"
19
+ gem "activesupport", "~> 8.0.0"
20
+
21
+ gemspec path: "../"
@@ -234,7 +234,7 @@ module Countless
234
234
  #
235
235
  # @param options [Hash{Symbol => Mixed}] the additional options
236
236
  def to_s(options = {})
237
- s = +"[#{line.to_s.rjust(options[:indent])}] "
237
+ s = "[#{line.to_s.rjust(options[:indent])}] "
238
238
  s << "[#{tag}] " if options[:tag]
239
239
  s << text
240
240
  end
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Countless
5
5
  # The version of the +countless+ gem
6
- VERSION = '1.5.1'
6
+ VERSION = '2.0.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-05-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '6.1'
18
+ version: '7.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '6.1'
25
+ version: '7.1'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: zeitwerk
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -76,6 +75,8 @@ files:
76
75
  - docker-compose.yml
77
76
  - gemfiles/rails_6.1.gemfile
78
77
  - gemfiles/rails_7.1.gemfile
78
+ - gemfiles/rails_7.2.gemfile
79
+ - gemfiles/rails_8.0.gemfile
79
80
  - lib/countless.rb
80
81
  - lib/countless/annotations.rb
81
82
  - lib/countless/cloc.rb
@@ -85,7 +86,6 @@ files:
85
86
  - lib/countless/rake_tasks.rb
86
87
  - lib/countless/statistics.rb
87
88
  - lib/countless/version.rb
88
- homepage:
89
89
  licenses:
90
90
  - MIT
91
91
  metadata:
@@ -94,7 +94,6 @@ metadata:
94
94
  changelog_uri: https://github.com/hausgold/countless/blob/master/CHANGELOG.md
95
95
  bug_tracker_uri: https://github.com/hausgold/countless/issues
96
96
  documentation_uri: https://www.rubydoc.info/gems/countless
97
- post_install_message:
98
97
  rdoc_options: []
99
98
  require_paths:
100
99
  - lib
@@ -102,15 +101,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
101
  requirements:
103
102
  - - ">="
104
103
  - !ruby/object:Gem::Version
105
- version: '2.7'
104
+ version: '3.2'
106
105
  required_rubygems_version: !ruby/object:Gem::Requirement
107
106
  requirements:
108
107
  - - ">="
109
108
  - !ruby/object:Gem::Version
110
109
  version: '0'
111
110
  requirements: []
112
- rubygems_version: 3.4.22
113
- signing_key:
111
+ rubygems_version: 3.6.9
114
112
  specification_version: 4
115
113
  summary: Code statistics/annotations helpers
116
114
  test_files: []