toastyapps-gembox 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gembox.rb +9 -2
- 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.1.
|
6
|
+
VERSION = '1.1.2'
|
7
7
|
attr_accessor :dir
|
8
8
|
def self.create(args)
|
9
9
|
|
@@ -22,6 +22,14 @@ class Gembox
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.shell(args)
|
25
|
+
generate_gems_yaml
|
26
|
+
|
27
|
+
system("sh shell.bash")
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def generate_gems_yaml
|
25
33
|
data = `gem query -d`.split("\n")
|
26
34
|
gemdata = {}
|
27
35
|
index = 'NULL'
|
@@ -48,7 +56,6 @@ class Gembox
|
|
48
56
|
end
|
49
57
|
end
|
50
58
|
File.open("gems.yaml", "w") { |f| f.puts gemdata.to_yaml }
|
51
|
-
system("sh shell.bash")
|
52
59
|
end
|
53
60
|
|
54
61
|
end
|