countless 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/countless/configuration.rb +3 -3
- data/lib/countless/version.rb +1 -1
- data/lib/countless.rb +5 -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: fb9c1a5b2f1d61e6df2669e554d239b9aa82ab600dc6962db6efbdc67b2ea752
|
4
|
+
data.tar.gz: 2fcf5ef387406342947a231393d83cdcc0b24fa91e51223595b883442f2c5e98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82fc5ba48431ad3b5d8d9e33dd39771d84504a9823e7924e7f484c0e08c69634dc2aa7a11cde9de3376ee4c567ee51658ef2a827bbf1f6e608f1a8c00468fe1a
|
7
|
+
data.tar.gz: ef4a8b87864099b1953b92d5aebb9addb5bf5afd5ae2548f3b748a4be2f6d0b6a5ad245952b50b97c0d7d4ac4eedc49a3e12234d932e0e687c3d5e93769370b7
|
data/CHANGELOG.md
CHANGED
@@ -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
@@ -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
|
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.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: 2025-01-
|
11
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|