kennel 1.156.0 → 1.157.0

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: eef80c1b9898cbd9f3a319f686836b41d760abbdbacfd8fddfa6ac27cd4706dd
4
- data.tar.gz: 80f119c50ac65e3d9985588f37b41961f326b62ce4e028cdc27c6b6d333a75a8
3
+ metadata.gz: a0eb799adf9a9e41a5b3220147a7e348ee75583e642d0ee9aa1db6ca2a021028
4
+ data.tar.gz: 804bd718f42d35986d42ab53df20cd4ae97611f6e665553050812e24b653b833
5
5
  SHA512:
6
- metadata.gz: 4a35987012bf0ebf529107451e3304c92fcd7a2226078c5101ea02d1689c0bfed96d0fb0e0dc14a2c44a7274376fb3fb7b61029363ec3b5bdaf356d459253b11
7
- data.tar.gz: '049fb4c8abe6fd1e107c5343e4f9138ab2b981f405ec289ccbca0e506411d8e039310d2a428f5aaa67858c84eef36a069a74932c6a2acc4686eb9b97b013acf8'
6
+ metadata.gz: 90dccebc1bba4e4ed329cbd3a495c7808c5ee37ea5b8705e64fc132de9ea3cb62f6f49cfc4e949c77364922ff6032609fa4c3e654ce0033e3b4be81ce2475084
7
+ data.tar.gz: a5ba017d7c0887cd25ef7c9ce4effeba46dbc527c0705829cda5ce0f6deddd32fadda3856b9163ed245032c94d75e5d60bd91dcb614716da4760d956b231bb51
@@ -33,12 +33,15 @@ module Kennel
33
33
  # sorting by name and nesting level to avoid confusion
34
34
  projects_path = "#{File.expand_path("projects")}/"
35
35
  project_path = loader.all_expected_cpaths.each_key.select do |path|
36
- path.start_with?(projects_path) && path.end_with?("/#{project}.rb")
36
+ path.start_with?(projects_path) && path.end_with?("/#{project}.rb", "/#{project}/project.rb")
37
37
  end.sort.min_by { |p| p.count("/") }
38
38
  if project_path
39
39
  require project_path
40
40
  else
41
- Kennel.err.puts "No file named #{project}.rb, falling back to slow loading of all projects instead"
41
+ Kennel.err.puts(
42
+ "No file named #{project}.rb or #{project}/project.rb" \
43
+ ", falling back to slow loading of all projects instead"
44
+ )
42
45
  loader.eager_load
43
46
  end
44
47
  else
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.156.0"
3
+ VERSION = "1.157.0"
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.156.0
4
+ version: 1.157.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser