toastyapps-gembox 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gembox.rb +2 -3
- data/lib/templates/dispatch.rb +1 -1
- metadata +1 -1
data/lib/gembox.rb
CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
|
|
3
3
|
require 'erb'
|
4
4
|
|
5
5
|
class Gembox
|
6
|
-
VERSION = '1.3.
|
6
|
+
VERSION = '1.3.7'
|
7
7
|
DEFAULTS = {'nodoc' => true, 'sources' => []}
|
8
8
|
attr_accessor :dir, :cfg, :box_name
|
9
9
|
|
@@ -71,9 +71,8 @@ class Gembox
|
|
71
71
|
private
|
72
72
|
|
73
73
|
def generate_gem_yaml(file)
|
74
|
-
|
74
|
+
lines = `gem env`.strip.split("\n")
|
75
75
|
config = {'gem_paths' => []}
|
76
|
-
lines = data.strip.split("\n")
|
77
76
|
lines.each_with_index do |line, i|
|
78
77
|
if line.match(/EXECUTABLE DIRECTORY:/)
|
79
78
|
config['executable_directory'] = line.match(/:\s(.*)/).captures[0]
|
data/lib/templates/dispatch.rb
CHANGED