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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c57a22148f13120ad6cec59b71fced4af79aeb52
4
- data.tar.gz: c19aa870361f49934e51fe9c7bfea865b1164018
3
+ metadata.gz: 76d996ae2e7602e11ccaf18421fb4feca38941a2
4
+ data.tar.gz: fc1c1c4653422733dc9d4122c4c5d1c4bdae3169
5
5
  SHA512:
6
- metadata.gz: dfe9c94476bda1f93e50043fb1dadc6623362c62d5e3706e622c36bb2726cb7ef4f014e91a6d77b316b4873ebfe0eda1770b1aff3fbea87cdd784873a2e6c036
7
- data.tar.gz: f101e497f85699e4dad5407691984de9c3dc30dcda8f5117ea0e7dae8cc4c0d8bfbb5e8a114da351cbcb0bcfe3df92eb0594a5f0fc7143bd9b5bb05f5e06e831
6
+ metadata.gz: 58acfbb404d39cb116cabcd86e9d5d5a080668b3132b3433a74cfed1e91769253d8a6192483b98bfc1aebc9da4281fc9d49441c713f20dc32ed64057c5936cba
7
+ data.tar.gz: e15d0c1a3d944373c29cb053027d54ad9b1f6f6dc098c51e74690f68cbc5bdbf97fd342404c14d1ad4a0f71565b8fafb093b1ff9df4bb82e78722c6336bda74f
@@ -10,18 +10,18 @@ module Bubing
10
10
  class Bundler
11
11
  PATH_RE = /=> (.+?(?=\())/
12
12
 
13
- def initialize(binary, directory, interpreter:, plugins: [], plugin_dirs: [], files: [], file_dirs: [], ld_paths: [], envs: [], verbose: false)
13
+ def initialize(binary, directory, **options)
14
14
  @binary = binary
15
15
  @directory = directory
16
- @plugins = plugins
17
- @plugin_dirs = plugin_dirs
18
- @files = files
19
- @file_dirs = file_dirs
20
- @verbose = verbose
21
- @interpreter = interpreter
22
- @lib_dir = File.join(directory, 'lib')
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, interpreter:, plugins: [], plugin_dirs: [], files: [], file_dirs: [], ld_paths: [], envs: [], verbose: false)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bubing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Sinyavsky