countless 1.3.4 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c05b73b28f349e4f27cd915d3cc494e8e2814d9660e43bc74b866b560deda13
4
- data.tar.gz: 211ce6b543c50910c92c1effc03bfed4b92b49d28023ebbed5e07e201a56277f
3
+ metadata.gz: fb9c1a5b2f1d61e6df2669e554d239b9aa82ab600dc6962db6efbdc67b2ea752
4
+ data.tar.gz: 2fcf5ef387406342947a231393d83cdcc0b24fa91e51223595b883442f2c5e98
5
5
  SHA512:
6
- metadata.gz: 8c33a6f5bf509c28075e4bd94e6007cfa837a35587176ee012ada6170d639a9de9a7de9d160f8afda1b16e120eb7cacf1124131d0c7cee09df7bd766bbb773d7
7
- data.tar.gz: 9a260bad83d19e6130cf57e5b4928309d1afaa9b6dc0cce2720739fa604c383557ebfc7a6ab9bec3e2a049c8ae1345eb5409bcbbf017d36aa3ee4bd37105c91e
6
+ metadata.gz: 82fc5ba48431ad3b5d8d9e33dd39771d84504a9823e7924e7f484c0e08c69634dc2aa7a11cde9de3376ee4c567ee51658ef2a827bbf1f6e608f1a8c00468fe1a
7
+ data.tar.gz: ef4a8b87864099b1953b92d5aebb9addb5bf5afd5ae2548f3b748a4be2f6d0b6a5ad245952b50b97c0d7d4ac4eedc49a3e12234d932e0e687c3d5e93769370b7
@@ -19,7 +19,7 @@ jobs:
19
19
  fail-fast: false
20
20
  matrix:
21
21
  ruby: ['2.7', '3.0', '3.1']
22
- rails: ['5.2', '6.1', '7.1']
22
+ rails: ['6.1', '7.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ AllCops:
9
9
  SuggestExtensions: false
10
10
  DisplayCopNames: true
11
11
  TargetRubyVersion: 2.7
12
- TargetRailsVersion: 5.2
12
+ TargetRailsVersion: 6.1
13
13
  Exclude:
14
14
  - bin/**/*
15
15
  - vendor/**/*
data/.yardopts CHANGED
@@ -4,3 +4,4 @@
4
4
  -
5
5
  README.md
6
6
  doc/examples/**/*.rb
7
+ doc/*.md
data/Appraisals CHANGED
@@ -1,11 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-5.2' do
4
- gem 'activejob', '~> 5.2.0'
5
- gem 'activerecord', '~> 5.2.0'
6
- gem 'activesupport', '~> 5.2.0'
7
- end
8
-
9
3
  appraise 'rails-6.1' do
10
4
  gem 'activejob', '~> 6.1.0'
11
5
  gem 'activerecord', '~> 6.1.0'
data/CHANGELOG.md CHANGED
@@ -2,32 +2,40 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
- ### 1.3.4
5
+ ### 1.4.1 (13 January 2025)
6
+
7
+ * Do not eager load the configuration (#6)
8
+
9
+ ### 1.4.0 (3 January 2025)
10
+
11
+ * Raised minimum supported Ruby/Rails version to 2.7/6.1 (#5)
12
+
13
+ ### 1.3.4 (15 August 2024)
6
14
 
7
15
  * Just a retag of 1.3.1
8
16
 
9
- ### 1.3.3
17
+ ### 1.3.3 (15 August 2024)
10
18
 
11
19
  * Just a retag of 1.3.1
12
20
 
13
- ### 1.3.2
21
+ ### 1.3.2 (9 August 2024)
14
22
 
15
23
  * Just a retag of 1.3.1
16
24
 
17
- ### 1.3.1
25
+ ### 1.3.1 (9 August 2024)
18
26
 
19
27
  * Added API docs building to continuous integration (#4)
20
28
 
21
- ### 1.3.0
29
+ ### 1.3.0 (8 July 2024)
22
30
 
23
31
  * Moved the development dependencies from the gemspec to the Gemfile (#2)
24
32
  * Dropped support for Ruby <2.7 (#3)
25
33
 
26
- ### 1.2.0
34
+ ### 1.2.0 (24 February 2023)
27
35
 
28
36
  * Added support for Gem release automation
29
37
 
30
- ### 1.1.0
38
+ ### 1.1.0 (18 January 2023)
31
39
 
32
40
  * Bundler >= 2.3 is from now on required as minimal version (#1)
33
41
  * Dropped support for Ruby < 2.5 (#1)
@@ -35,7 +43,7 @@
35
43
  * Updated all development/runtime gems to their latest
36
44
  Ruby 2.5 compatible version (#1)
37
45
 
38
- ### 1.0.0
46
+ ### 1.0.0 (11 January 2022)
39
47
 
40
48
  * Initial gem implementation
41
49
  * Documented the whole gem and all its features
data/countless.gemspec CHANGED
@@ -34,6 +34,6 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.required_ruby_version = '>= 2.7'
36
36
 
37
- spec.add_runtime_dependency 'activesupport', '>= 5.2'
38
- spec.add_runtime_dependency 'zeitwerk', '~> 2.6'
37
+ spec.add_dependency 'activesupport', '>= 6.1'
38
+ spec.add_dependency 'zeitwerk', '~> 2.6'
39
39
  end
@@ -12,10 +12,10 @@ module Countless
12
12
  # prefix to all relative path/file configurations.
13
13
  config_accessor(:base_path) do
14
14
  # Check for a Rake invoked call
15
- if defined? Rake
15
+ if defined?(Rake) && Rake.respond_to?(:application)
16
16
  path = Rake.application.rakefile_location
17
- path = Rake.application.original_dir unless path.present?
18
- next path
17
+ path ||= Rake.application.original_dir
18
+ next path if path.present?
19
19
  end
20
20
 
21
21
  # Check for Rails as fallback
@@ -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.3.4'
6
+ VERSION = '1.4.1'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
data/lib/countless.rb CHANGED
@@ -15,11 +15,15 @@ require 'shellwords'
15
15
 
16
16
  # The top level namespace for the countless gem.
17
17
  module Countless
18
+ # Configure the relative gem code base location
19
+ root_path = Pathname.new("#{__dir__}/countless")
20
+
18
21
  # Setup a Zeitwerk autoloader instance and configure it
19
22
  loader = Zeitwerk::Loader.for_gem
20
23
 
21
24
  # Do not automatically load the Rake tasks
22
25
  loader.ignore("#{__dir__}/countless/rake_tasks.rb")
26
+ loader.do_not_eager_load(root_path.join('configuration.rb'))
23
27
 
24
28
  # Finish the auto loader configuration
25
29
  loader.setup
@@ -30,6 +34,6 @@ module Countless
30
34
  # Include top-level features
31
35
  include Extensions::ConfigurationHandling
32
36
 
33
- # Make sure to eager load all SDK constants
37
+ # Make sure to eager load all constants
34
38
  loader.eager_load
35
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: zeitwerk
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,6 @@ files:
74
74
  - countless.gemspec
75
75
  - doc/assets/project.svg
76
76
  - docker-compose.yml
77
- - gemfiles/rails_5.2.gemfile
78
77
  - gemfiles/rails_6.1.gemfile
79
78
  - gemfiles/rails_7.1.gemfile
80
79
  - lib/countless.rb
@@ -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.3"
8
- gem "guard-rspec", "~> 4.7"
9
- gem "irb", "~> 1.2"
10
- gem "rspec", "~> 3.12"
11
- gem "rubocop", "~> 1.28"
12
- gem "rubocop-rails", "~> 2.14"
13
- gem "rubocop-rspec", "~> 2.10"
14
- gem "simplecov", ">= 0.22"
15
- gem "yard", ">= 0.9.28"
16
- gem "yard-activesupport-concern", ">= 0.0.1"
17
- gem "activejob", "~> 5.2.0"
18
- gem "activerecord", "~> 5.2.0"
19
- gem "activesupport", "~> 5.2.0"
20
-
21
- gemspec path: "../"