foobara 0.0.40 → 0.0.41
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda698679edac42fcee6ab465b327133ffa4f4e434feace0de447c177622d606
|
4
|
+
data.tar.gz: 923e1d3e3c5eae09e16da7b256bb471e0656b2f76719c63d5ff105cc31283d8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b9d3ee2509a34e40c114f6558199d80c4b5408b7614200fab48cd19e2328eafaf2a73956d4a31a686a5cdda49e3615af3737638df4412467f99ed2ff7c9013
|
7
|
+
data.tar.gz: 71f4f90c3d98e638d722cc47f5a821b2bba17c257ada30a77769bd6f4d62abff84c775cbc1dc99f4e065939f14a488782eb34994fc2e097f07604c3272cc0eb4
|
data/CHANGELOG.md
CHANGED
@@ -7,9 +7,9 @@ module Foobara
|
|
7
7
|
|
8
8
|
# TODO: we should move these concepts out of "Monorepo" and maybe into Foobara because we sometimes need to
|
9
9
|
# be able to install!/reset foobara code that's been extracted into a gem
|
10
|
-
def initialize(symbol, project_path:
|
10
|
+
def initialize(symbol, project_path: nil)
|
11
11
|
self.symbol = symbol
|
12
|
-
self.project_path = project_path
|
12
|
+
self.project_path = project_path || "#{__dir__}/../../../../../projects/#{symbol}"
|
13
13
|
end
|
14
14
|
|
15
15
|
def require_path
|
@@ -27,14 +27,14 @@ module Foobara
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
def project(symbol)
|
30
|
+
def project(symbol, project_path: nil)
|
31
31
|
if all_projects.key?(symbol)
|
32
32
|
# :nocov:
|
33
33
|
raise ArgumentError, "Project #{symbol} already loaded"
|
34
34
|
# :nocov:
|
35
35
|
end
|
36
36
|
|
37
|
-
project = Project.new(symbol)
|
37
|
+
project = Project.new(symbol, project_path:)
|
38
38
|
project.load
|
39
39
|
|
40
40
|
all_projects[symbol] = project
|