countless 1.4.0 → 1.4.2
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 +3 -3
- data/lib/countless/version.rb +1 -1
- data/lib/countless.rb +6 -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: 11bb83e635d33305cf87f38392fddd956a719cd1e241cd200dbbd7b9d2fbca96
|
4
|
+
data.tar.gz: 7dfaed1f487f596788b37b0278ab1c479fbfecf1b8af8eb5edbcf750cec57d99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cedd63e5d65ebe00c46508a03a4c5507aa1cf755bcf5c725e8fa95d0e1e189c33ee32ba578ecff7c06f3fc35fee6c995b7842063483df7f0252b87c516f8ef
|
7
|
+
data.tar.gz: 5095cd9e25e0e1e519913a5f5deadd9fd8cfafb426a43e45321108908443374caf1cef7489612373042455cf0f5ffcfb814294a2432a7d00f98c4165c958f747
|
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
|
+
### 1.4.2 (17 January 2025)
|
6
|
+
|
7
|
+
* Added the logger dependency, see: https://bit.ly/3E8Zqg0 (#7)
|
8
|
+
|
9
|
+
### 1.4.1 (13 January 2025)
|
10
|
+
|
11
|
+
* Do not eager load the configuration (#6)
|
12
|
+
|
5
13
|
### 1.4.0 (3 January 2025)
|
6
14
|
|
7
15
|
* Raised minimum supported Ruby/Rails version to 2.7/6.1 (#5)
|
@@ -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
|
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
|
data/lib/countless/version.rb
CHANGED
data/lib/countless.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'zeitwerk'
|
4
|
+
require 'logger'
|
4
5
|
require 'active_support'
|
5
6
|
require 'active_support/concern'
|
6
7
|
require 'active_support/core_ext/module/delegation'
|
@@ -15,11 +16,15 @@ require 'shellwords'
|
|
15
16
|
|
16
17
|
# The top level namespace for the countless gem.
|
17
18
|
module Countless
|
19
|
+
# Configure the relative gem code base location
|
20
|
+
root_path = Pathname.new("#{__dir__}/countless")
|
21
|
+
|
18
22
|
# Setup a Zeitwerk autoloader instance and configure it
|
19
23
|
loader = Zeitwerk::Loader.for_gem
|
20
24
|
|
21
25
|
# Do not automatically load the Rake tasks
|
22
26
|
loader.ignore("#{__dir__}/countless/rake_tasks.rb")
|
27
|
+
loader.do_not_eager_load(root_path.join('configuration.rb'))
|
23
28
|
|
24
29
|
# Finish the auto loader configuration
|
25
30
|
loader.setup
|
@@ -30,6 +35,6 @@ module Countless
|
|
30
35
|
# Include top-level features
|
31
36
|
include Extensions::ConfigurationHandling
|
32
37
|
|
33
|
-
# Make sure to eager load all
|
38
|
+
# Make sure to eager load all constants
|
34
39
|
loader.eager_load
|
35
40
|
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.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hermann Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|