vbox-ng 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/vbox-ng.rb +2 -1
- data/lib/vbox.rb +2 -1
- data/lib/vbox/cli.rb +1 -1
- data/lib/vbox/cmdlineapi.rb +1 -1
- data/vbox-ng.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/vbox-ng.rb
CHANGED
@@ -2,7 +2,8 @@ require 'vbox/vm'
|
|
2
2
|
require 'vbox/cmdlineapi'
|
3
3
|
|
4
4
|
module VBOX
|
5
|
-
UUID_RE = /\{\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\}/
|
5
|
+
# UUID_RE = /\{\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\}/ # only in ruby 1.9 :(
|
6
|
+
UUID_RE = /\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}/i
|
6
7
|
|
7
8
|
def self.api
|
8
9
|
@@api ||= CmdLineAPI.new
|
data/lib/vbox.rb
CHANGED
@@ -2,7 +2,8 @@ require 'vbox/vm'
|
|
2
2
|
require 'vbox/cmdlineapi'
|
3
3
|
|
4
4
|
module VBOX
|
5
|
-
UUID_RE = /\{\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\}/
|
5
|
+
# UUID_RE = /\{\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\}/ # only in ruby 1.9 :(
|
6
|
+
UUID_RE = /\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}/i
|
6
7
|
|
7
8
|
def self.api
|
8
9
|
@@api ||= CmdLineAPI.new
|
data/lib/vbox/cli.rb
CHANGED
@@ -42,7 +42,7 @@ module VBOX
|
|
42
42
|
# (COMMANDS+['snapshots']).sort.each do |c|
|
43
43
|
# r << "\t#{c}"
|
44
44
|
# end
|
45
|
-
r << "\t" + _join_by_width(COMMANDS+['snapshots'], newline
|
45
|
+
r << "\t" + _join_by_width(COMMANDS+['snapshots'], :newline => ",\n\t", :max_length => 64 )
|
46
46
|
r << ""
|
47
47
|
r << "OPTIONS:"
|
48
48
|
r.join("\n")
|
data/lib/vbox/cmdlineapi.rb
CHANGED
@@ -110,7 +110,7 @@ module VBOX
|
|
110
110
|
end
|
111
111
|
|
112
112
|
COMMANDS.each do |cmd|
|
113
|
-
class_eval <<-EOF unless
|
113
|
+
class_eval <<-EOF unless method_defined?(cmd.to_sym)
|
114
114
|
def #{cmd} name
|
115
115
|
system "VBoxManage", "controlvm", name, "#{cmd}"
|
116
116
|
end
|
data/vbox-ng.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vbox-ng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
version: '0'
|
119
119
|
segments:
|
120
120
|
- 0
|
121
|
-
hash:
|
121
|
+
hash: -3292609850369803301
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
none: false
|
124
124
|
requirements:
|