vagrantup 0.6.0 → 0.6.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82b529a23ccf9c52bcd92e0eab69645185f6aa8b
4
- data.tar.gz: a56abb4b63b9bcb3ee776d012bff74ac979c92f4
3
+ metadata.gz: 9abdaab5dda1bb7cf6daccb20446577e9e813b61
4
+ data.tar.gz: f99e14d27aff73cbda06e3a85d0db22dbbc6ceb5
5
5
  SHA512:
6
- metadata.gz: 6b5fff4324418d3bc4aabffcf9f561c9a4e8968905fc5c6a80300d44a2995621003fe3056da94a8fa96017d211e3896fccec8527364428a8eb4e78b65f86a3a2
7
- data.tar.gz: ddfca94b2a49f9cc5dc40e229a18a30d0d28a34465a25cbe30c8f5deae3caa9beb16a05dae4c18444bf344135133d1d52282b962adc8d07d8810aaa76284b9fc
6
+ metadata.gz: 3dce66d42750b8c111c5c9dcd619739c8bc655d18ab2074caf853dbaf3ca473e575d0c80116b82839c34879a641b5698efd582536da4b1a12d30b2d4864d91d9
7
+ data.tar.gz: 65072fa776344a6b2691823fd785f529458fc7dcb23b6dc167396841c34e164fd4c259998936e0e9a4c3505a5e45d9718096b6f1adefd378fb8ed8ac9a472b04
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## 0.6.0 (unreleased)
1
+ ## 0.6.1 (September 27, 2010)
2
+
3
+ - Fix issues with Ruby 1.8.7 where Vagrant simply failed.
4
+
5
+ ## 0.6.0 (September 27, 2010)
2
6
 
3
7
  - VM name now defaults to the name of the containing folder, plus a timestamp.
4
8
  This should make it easier to identify VMs in the VirtualBox GUI.
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- vagrant (0.6.0)
11
+ vagrant (0.6.1)
12
12
  archive-tar-minitar (= 0.5.2)
13
13
  erubis (~> 2.6.6)
14
14
  i18n (~> 0.4.1)
@@ -116,19 +116,19 @@ module Vagrant
116
116
  #
117
117
  # If you're looking to create your own configuration class, see {Base}.
118
118
  class Top < Base
119
- @@configures = []
119
+ @@configures = {} if !defined?(@@configures)
120
120
 
121
121
  class << self
122
122
  # The list of registered configuration classes as well as the key
123
123
  # they're registered under.
124
124
  def configures_list
125
- @@configures ||= []
125
+ @@configures ||= {}
126
126
  end
127
127
 
128
128
  # Registers a configuration class with the given key. This method shouldn't
129
129
  # be called. Instead, inherit from {Base} and call {Base.configures}.
130
130
  def configures(key, klass)
131
- configures_list << [key, klass]
131
+ configures_list[key] = klass
132
132
  attr_reader key.to_sym
133
133
  end
134
134
  end
data/lib/vagrant/ui.rb CHANGED
@@ -26,16 +26,20 @@ module Vagrant
26
26
  end
27
27
 
28
28
  [[:warn, :yellow], [:error, :red], [:info, nil], [:confirm, :green]].each do |method, color|
29
- define_method(method) do |message, opts=nil|
30
- @shell.say("#{line_reset}#{format_message(message, opts)}", color)
31
- end
29
+ class_eval <<-CODE
30
+ def #{method}(message, opts=nil)
31
+ @shell.say("\#{line_reset}\#{format_message(message, opts)}", "#{color}")
32
+ end
33
+ CODE
32
34
  end
33
35
 
34
36
  [:ask, :no?, :yes?].each do |method|
35
- define_method(method) do |message, opts=nil|
36
- opts ||= {}
37
- @shell.send(method, format_message(message, opts), opts[:color])
38
- end
37
+ class_eval <<-CODE
38
+ def #{method}(message, opts=nil)
39
+ opts ||= {}
40
+ @shell.send(method, format_message(message, opts), opts[:color])
41
+ end
42
+ CODE
39
43
  end
40
44
 
41
45
  def report_progress(progress, total, show_parts=true)
@@ -2,5 +2,5 @@ module Vagrant
2
2
  # This will always be up to date with the current version of Vagrant,
3
3
  # since it is used to generate the gemspec and is also the source of
4
4
  # the version for `vagrant -v`
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
@@ -138,7 +138,7 @@ class ConfigTest < Test::Unit::TestCase
138
138
 
139
139
  context "top config class" do
140
140
  setup do
141
- @configures_list = []
141
+ @configures_list = {}
142
142
  @klass::Top.stubs(:configures_list).returns(@configures_list)
143
143
  end
144
144
 
@@ -149,8 +149,8 @@ class ConfigTest < Test::Unit::TestCase
149
149
  end
150
150
 
151
151
  should "add key and klass to configures list" do
152
- @configures_list.expects(:<<).with([@key, @config_klass])
153
152
  @klass::Top.configures(@key, @config_klass)
153
+ assert_equal @config_klass, @configures_list[@key]
154
154
  end
155
155
  end
156
156
 
@@ -168,7 +168,7 @@ class ConfigTest < Test::Unit::TestCase
168
168
  instance = mock("instance#{i}")
169
169
  instance.expects(:env=).with(env)
170
170
  klass.expects(:new).returns(instance)
171
- @configures_list << [key, klass]
171
+ @configures_list[key] = klass
172
172
  end
173
173
 
174
174
  @klass::Top.new(env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrantup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto