kennel 1.120.0 → 1.121.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: 5cbbb48418612701154d8a4aef95ef0267ca8993425b23977f550b91f185a0cb
4
- data.tar.gz: d50f6890094e8af69346047cdae827ea5ca63d28e119c0de58792f7dc969a11d
3
+ metadata.gz: c3eb87db53998806797dc41a7a73bacc01e1134655c7165c0498e30d7344e8fb
4
+ data.tar.gz: 5ce8b48a088fdae20fc4b49211ca229f3f8e028f654eaa489b49ebf6de980646
5
5
  SHA512:
6
- metadata.gz: eac3443d6277ff33da2c1b4dec30ad389ecae8b6c211b65eb6e5b4c19404d2b32adc1299d6d207de58839b321f1343ee3186f2b488d375db92db411735e3bf69
7
- data.tar.gz: 83e9083b77bbe269985986478a2a021ee32f9ac88712e662b3e817c6a70f1020ac68f0484944d8c9e7e4920c88440baf5e4cd111cc7be80bb943fdfd17f3a854
6
+ metadata.gz: a22b79c15a1e7c29947011de54e58fbc5a3c71d988bf2a65e046304d6c890e0472405b548c06144b6f1f9f9fe2a6a91ed1a0608e59dcd925fe73b7023f9f91fd
7
+ data.tar.gz: a3afc60d010f1364a46439d4f649d770cb1a76bb720856c9beada4cd89f4ab932b9aa1dfa8470feb97de969a0230752f94ec3a92f4e5a00275fa18fecdb46651
@@ -264,6 +264,7 @@ module Kennel
264
264
  return if used.empty?
265
265
  used.flatten!(1)
266
266
  used.uniq!
267
+ used.map! { |w| w.tr("[]", "") }
267
268
 
268
269
  # TODO
269
270
  # - also match without by
@@ -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.120.0"
3
+ VERSION = "1.121.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.120.0
4
+ version: 1.121.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs