mandy 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/mandy-local +6 -3
  2. metadata +1 -1
data/bin/mandy-local CHANGED
@@ -29,11 +29,14 @@ def absolute_path(path)
29
29
  path =~ /^\// ? path : File.join(Dir.pwd, path)
30
30
  end
31
31
 
32
- options.cmdenv.split(' ').each do |pair|
33
- key, value = pair.split("=")
34
- ENV[key] = value
32
+ def set_env(opts_string)
33
+ opts_string.split(' ').each do |pair|
34
+ key, value = pair.split("=")
35
+ ENV[key] = value
36
+ end
35
37
  end
36
38
 
39
+ set_env(options.cmdenv) if options.cmdenv
37
40
  file = absolute_path(ARGV[0])
38
41
  input = absolute_path(ARGV[1])
39
42
  output_folder = FileUtils.mkdir_p(absolute_path(ARGV[2]))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Kent