subbundle 0.1.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subbundle/version.rb +1 -1
- data/lib/subbundle.rb +9 -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: becbb56b5711721febdcec6b3beb98ce112a836773ba61a8cb243ffd260b5354
|
4
|
+
data.tar.gz: 93e1ea03033b96b6af57bebec8a13ca9fe26a3b9eaadf0647fdb70d5790ef942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '058f77db697842bd92bc086df81d58fec633b59e2dcd21f3f9dbd10cbcc837bb2b4f7ca73ee19a376266936a3e585b7ea38436b8736df2651cbc55bcd2d6037b'
|
7
|
+
data.tar.gz: c3d15af9d81f1bd96260cca07a6bce13d8b1686ef145b40e318fb66ae71c18ac0f2abf9b77e6e19d60ba54e5719de04ca5da8dc78cb3a73754fdff115ba8ed39
|
data/lib/subbundle/version.rb
CHANGED
data/lib/subbundle.rb
CHANGED
@@ -31,6 +31,11 @@ module Subbundle
|
|
31
31
|
subbundle_lockfile_path.dirname.mkpath
|
32
32
|
subbundle_lockfile_path.write(Bundler.ui.silence { definition.to_lock })
|
33
33
|
|
34
|
+
# Delete old caches.
|
35
|
+
Bundler.app_config_path.glob("subbundles/#{name}.*.lock").each do |path|
|
36
|
+
path.delete if path != subbundle_lockfile_path
|
37
|
+
end
|
38
|
+
|
34
39
|
setup_from_subbundle(gems, subbundle_lockfile_path)
|
35
40
|
end
|
36
41
|
|
@@ -65,6 +70,9 @@ module Subbundle
|
|
65
70
|
end
|
66
71
|
|
67
72
|
def self.setup_runtime(definition)
|
68
|
-
|
73
|
+
runtime = Bundler::Runtime.new(Bundler.root, definition)
|
74
|
+
# This is not ideal, let's revisit later.
|
75
|
+
Bundler.instance_variable_set(:@load, runtime)
|
76
|
+
Bundler.ui.silence { runtime.setup }
|
69
77
|
end
|
70
78
|
end
|