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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07b95bed1d5e25b2e7643cd39dad69c98b29d7c890ef4d8438e9f1d2464b97dc
4
- data.tar.gz: c88884879dc4c99f53616d7cc37c8549b0fde70bd746c29c30ff215a6fb41206
3
+ metadata.gz: 3be68fcb9db04232974861f121d822dec6236d7b45a6ed3eec003d1814811e77
4
+ data.tar.gz: 3962f200a155fe9931eafc6664c3fb1787d6c25378fcd54c45b38b013bf7da5d
5
5
  SHA512:
6
- metadata.gz: 31d41d66a2011c50a70d2b0e6bf48661456bb5207a02ee31bf9e2c07afb91126e4158cbf736b8502945bcbae549206fe60bc5caee0655a20fb2658efffd1308f
7
- data.tar.gz: 2cb77bc217b3b140f589374e27e7b3068058412b1e6bf978855ff8bc50a8bd3ad0fb46f1b143fd9de994eda5b5330e71f0612cf0761850281ff3ecbee47096c9
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
- (@config = Config.new(self.path, env: env).freeze).tap do |config|
43
- Pathname.new(config.fetch('BUNDLE_PATH')).expand_path.tap do |directory_path|
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
- Pathname.new(config.fetch('BUNDLE_PATH')).yield_self do |bundle_path|
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: 5
4
+ patch: 6
5
5
  authors: ['Dimitri Arrigoni']
6
6
  email: 'dimitri@arrigoni.me'
7
- date: '2021-02-09'
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.5
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-09 00:00:00.000000000 Z
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.