kennel 1.121.0 → 1.121.1
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/lib/kennel/projects_provider.rb +8 -10
- data/lib/kennel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3eb87db53998806797dc41a7a73bacc01e1134655c7165c0498e30d7344e8fb
|
|
4
|
+
data.tar.gz: 5ce8b48a088fdae20fc4b49211ca229f3f8e028f654eaa489b49ebf6de980646
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a22b79c15a1e7c29947011de54e58fbc5a3c71d988bf2a65e046304d6c890e0472405b548c06144b6f1f9f9fe2a6a91ed1a0608e59dcd925fe73b7023f9f91fd
|
|
7
|
+
data.tar.gz: a3afc60d010f1364a46439d4f649d770cb1a76bb720856c9beada4cd89f4ab932b9aa1dfa8470feb97de969a0230752f94ec3a92f4e5a00275fa18fecdb46651
|
|
@@ -8,17 +8,15 @@ module Kennel
|
|
|
8
8
|
|
|
9
9
|
private
|
|
10
10
|
|
|
11
|
+
# load_all's purpose is to "require" all the .rb files under './projects',
|
|
12
|
+
# while allowing them to resolve reference to ./teams and ./parts via autoload
|
|
11
13
|
def load_all
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# somewhat one-way: we're not providing any mechanism to *un*load things.
|
|
19
|
-
# As long as the contents of `./projects`, `./teams` and `./parts` doesn't
|
|
20
|
-
# change between calls, then simply by no-op'ing subsequent calls to `load_all`
|
|
21
|
-
# we can have `load_all` appear to be idempotent.
|
|
14
|
+
# Zeitwerk rejects second and subsequent calls.
|
|
15
|
+
# Even if we skip over the Zeitwerk part, the nature of 'require' is
|
|
16
|
+
# one-way: ruby does not provide a mechanism to *un*require things.
|
|
17
|
+
return if defined?(@@load_all) && @@load_all
|
|
18
|
+
@@load_all = true
|
|
19
|
+
|
|
22
20
|
loader = Zeitwerk::Loader.new
|
|
23
21
|
Dir.exist?("teams") && loader.push_dir("teams", namespace: Teams)
|
|
24
22
|
Dir.exist?("parts") && loader.push_dir("parts")
|
data/lib/kennel/version.rb
CHANGED