vbox-ng 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -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
@@ -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
@@ -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: ",\n\t", max_length: 64 )
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")
@@ -110,7 +110,7 @@ module VBOX
110
110
  end
111
111
 
112
112
  COMMANDS.each do |cmd|
113
- class_eval <<-EOF unless instance_methods.include?(cmd.to_sym)
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "vbox-ng"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrey \"Zed\" Zaikin"]
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.2
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: 2254769161339686760
121
+ hash: -3292609850369803301
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  none: false
124
124
  requirements: