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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb8230c7d3bd7abc24f4c0a1b18de96b7ef892d2f54bdc2ccc010d9ba10a80c6
4
- data.tar.gz: b2793e6ac6a79cdb809f77f749b5210501e48bfefb5baa38c2f16ed7043c75ed
3
+ metadata.gz: c3eb87db53998806797dc41a7a73bacc01e1134655c7165c0498e30d7344e8fb
4
+ data.tar.gz: 5ce8b48a088fdae20fc4b49211ca229f3f8e028f654eaa489b49ebf6de980646
5
5
  SHA512:
6
- metadata.gz: 24d20844e2b74bee9f13c2daf5a80d4a366e7251b826b61e1dd4d5172918cf5fc5b5d694bc7604c7f64d3543150a2f1a8d1884c5c6f462e48b52b74a51267c5f
7
- data.tar.gz: 1c52708d519c711b55aa62cb9016ec7124b52634526343ee4140422223e90da351aadd466238bff5e07031dac8b14312cafecde3917e7308193d2c3af9119aeb
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
- # load_all's purpose is to "require" all the .rb files under './projects',
13
- # also with reference to ./teams and ./parts. What happens if you call it
14
- # more than once?
15
- #
16
- # For a reason yet to be investigated, Zeitwerk rejects second and subsequent calls.
17
- # But even if we skip over the Zeitwerk part, the nature of 'require' is
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")
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.121.0"
3
+ VERSION = "1.121.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.121.0
4
+ version: 1.121.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser