stibium-bundled 0.0.5 → 0.0.6
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/stibium/bundled/bundle.rb +10 -8
- data/lib/stibium/bundled/version.yml +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3be68fcb9db04232974861f121d822dec6236d7b45a6ed3eec003d1814811e77
|
4
|
+
data.tar.gz: 3962f200a155fe9931eafc6664c3fb1787d6c25378fcd54c45b38b013bf7da5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc8e6621dabc968957985f69253abae2f02c5909f51c906b8298b1cd4e9ef19ad038a9bab0aa743272f06e59d3baed1bf7155c83ee888762e5ef10e0a5d1a1c4
|
7
|
+
data.tar.gz: '08eb70137990b8174da7d5165c965d45b4c9820d0469ed5601aafecffd1378615aff8f97398e1ac6db75cce28c290cf5d98fa1c6711332ccb75dc715c3d5a7d2'
|
@@ -39,11 +39,8 @@ class Stibium::Bundled::Bundle
|
|
39
39
|
raise ArgumentError, 'path is not a directory' unless base_path.directory?
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
@directory = Directory.new(directory_path, ruby_config: ruby_config)
|
45
|
-
end
|
46
|
-
end
|
42
|
+
@config = Config.new(self.path, env: env).freeze
|
43
|
+
@directory = Directory.new(self.bundle_path, ruby_config: ruby_config).freeze
|
47
44
|
end.freeze
|
48
45
|
end
|
49
46
|
|
@@ -154,6 +151,13 @@ class Stibium::Bundled::Bundle
|
|
154
151
|
end
|
155
152
|
end
|
156
153
|
|
154
|
+
# @return [Pathname]
|
155
|
+
def bundle_path
|
156
|
+
Pathname.new(config.fetch('BUNDLE_PATH')).yield_self do |bundle_path|
|
157
|
+
(bundle_path.absolute? ? bundle_path : path.join(bundle_path))
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
157
161
|
# Standalone setup file.
|
158
162
|
#
|
159
163
|
# ``bundle install --standalone[=<list>]`` makes a bundle that can work without depending on
|
@@ -168,8 +172,6 @@ class Stibium::Bundled::Bundle
|
|
168
172
|
#
|
169
173
|
# @return [Pathname]
|
170
174
|
def bundler_setup
|
171
|
-
|
172
|
-
(bundle_path.absolute? ? bundle_path : path.join(bundle_path)).join('bundler/setup.rb')
|
173
|
-
end
|
175
|
+
bundle_path.join('bundler/setup.rb')
|
174
176
|
end
|
175
177
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
---
|
2
2
|
major: 0
|
3
3
|
minor: 0
|
4
|
-
patch:
|
4
|
+
patch: 6
|
5
5
|
authors: ['Dimitri Arrigoni']
|
6
6
|
email: 'dimitri@arrigoni.me'
|
7
|
-
date: '2021-02-
|
7
|
+
date: '2021-02-22'
|
8
8
|
summary: 'Denote bundle state'
|
9
9
|
description: 'Denote bundle state and (optionally) load bundler/setup according to the configuration.'
|
10
10
|
homepage: 'https://github.com/SwagDevOps/stibium-bundled'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stibium-bundled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitri Arrigoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Denote bundle state and (optionally) load bundler/setup according to
|
14
14
|
the configuration.
|