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 +4 -4
- data/lib/kennel/projects_provider.rb +5 -2
- 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: a0eb799adf9a9e41a5b3220147a7e348ee75583e642d0ee9aa1db6ca2a021028
|
4
|
+
data.tar.gz: 804bd718f42d35986d42ab53df20cd4ae97611f6e665553050812e24b653b833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/kennel/version.rb
CHANGED