bubing 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bubing/bundler.rb +9 -9
- data/lib/bubing/executable_bundler.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76d996ae2e7602e11ccaf18421fb4feca38941a2
|
4
|
+
data.tar.gz: fc1c1c4653422733dc9d4122c4c5d1c4bdae3169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58acfbb404d39cb116cabcd86e9d5d5a080668b3132b3433a74cfed1e91769253d8a6192483b98bfc1aebc9da4281fc9d49441c713f20dc32ed64057c5936cba
|
7
|
+
data.tar.gz: e15d0c1a3d944373c29cb053027d54ad9b1f6f6dc098c51e74690f68cbc5bdbf97fd342404c14d1ad4a0f71565b8fafb093b1ff9df4bb82e78722c6336bda74f
|
data/lib/bubing/bundler.rb
CHANGED
@@ -10,18 +10,18 @@ module Bubing
|
|
10
10
|
class Bundler
|
11
11
|
PATH_RE = /=> (.+?(?=\())/
|
12
12
|
|
13
|
-
def initialize(binary, directory,
|
13
|
+
def initialize(binary, directory, **options)
|
14
14
|
@binary = binary
|
15
15
|
@directory = directory
|
16
|
-
@
|
17
|
-
@
|
18
|
-
@
|
19
|
-
@
|
20
|
-
@
|
21
|
-
@
|
22
|
-
@
|
23
|
-
@ld_paths = ld_paths
|
16
|
+
@interpreter = options[:interpreter]
|
17
|
+
@plugins = options[:plugins]
|
18
|
+
@plugin_dirs = options[:plugin_dirs]
|
19
|
+
@files = options[:files]
|
20
|
+
@file_dirs = options[:file_dirs]
|
21
|
+
@ld_paths = options[:ld_paths]
|
22
|
+
@verbose = options[:verbose]
|
24
23
|
|
24
|
+
@lib_dir = File.join(directory, 'lib')
|
25
25
|
@copied = []
|
26
26
|
end
|
27
27
|
|
@@ -2,11 +2,11 @@ module Bubing
|
|
2
2
|
class ExecutableBundler < Bubing::Bundler
|
3
3
|
RUN_TEMPLATE = '%{envs} ./lib/%{interpreter} ./bin/%{binary}'
|
4
4
|
|
5
|
-
def initialize(binary, directory,
|
5
|
+
def initialize(binary, directory, **options)
|
6
6
|
super
|
7
7
|
@bin_dir = File.join(@directory, 'bin')
|
8
8
|
|
9
|
-
@envs = envs.each_with_object({}) do |env, h|
|
9
|
+
@envs = options[:envs].each_with_object({}) do |env, h|
|
10
10
|
k, v = env.split('=')
|
11
11
|
h[k] = v
|
12
12
|
end
|