vagrantup 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5f7061a128467581a0f3bbe3484e10f2b332a59
4
- data.tar.gz: c4ca80503ed7c9f7efcfbbd013cc620609b9afc9
3
+ metadata.gz: b1d7e8f9a0b6d47c68c8cfb4192bd3afa8d9d2ce
4
+ data.tar.gz: a8865e244a54fc4dcd14b54a27c87ad0740df019
5
5
  SHA512:
6
- metadata.gz: f704bbfdd79516995b74e33b8bc556666042b0fb382e46f2c0be2dddc097a8c51adfeebf495de6ec98ed871345c24918ad860389a0de88d4b9cba86957f0c56d
7
- data.tar.gz: 6ea39a6687508855b292af0319069c8b029b69e159da4aa6e68f883518b98edbeca49fb0170ec72dabe019174ee69b01e4535d5f556c95ea30f08cfd09647fc4
6
+ metadata.gz: 1bbd300b908863fc8a714108f1e9d11a29cbde5d9cd0ffe2be1b8e669fde5222fde1a35b05ba412ce7b3627aa3f979fcd31b1fa5b9b8a200705a1599886562cb
7
+ data.tar.gz: 7c2c4860f428ffecca43814ff4929a6b2019cc89eba5fc6b4f14da7025513ba81af1a83c00fe80a332d491fea287ffe3575970ec7ab29bbe5a361ca38779de60
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.9.7 (February 9, 2012)
2
+
3
+ - Fix regression where all subprocess IO simply didn't work with
4
+ Windows. [GH-721]
5
+
1
6
  ## 0.9.6 (February 7, 2012)
2
7
 
3
8
  - Fix strange issue with inconsistent childprocess reads on JRuby. [GH-711]
@@ -64,6 +64,14 @@ module Vagrant
64
64
  # Make sure the stdin does not buffer
65
65
  process.io.stdin.sync = true
66
66
 
67
+ if RUBY_PLATFORM != "java"
68
+ # On Java, we have to close after. See down the method...
69
+ # Otherwise, we close the writers right here, since we're
70
+ # not on the writing side.
71
+ stdout_writer.close
72
+ stderr_writer.close
73
+ end
74
+
67
75
  # Create a dictionary to store all the output we see.
68
76
  io_data = { :stdout => "", :stderr => "" }
69
77
 
@@ -136,11 +144,12 @@ module Vagrant
136
144
  yield io_name, extra_data if block_given?
137
145
  end
138
146
 
139
- # Close the writer pipes. Note that we do this so late (after the process
140
- # has quit) to work around an issue with childprocess and JRuby. It is
141
- # bizarre but it works.
142
- stdout_writer.close
143
- stderr_writer.close
147
+ if RUBY_PLATFORM == "java"
148
+ # On JRuby, we need to close the writers after the process,
149
+ # for some reason. See GH-711.
150
+ stdout_writer.close
151
+ stderr_writer.close
152
+ end
144
153
 
145
154
  # Return an exit status container
146
155
  return Result.new(process.exit_code, io_data[:stdout], io_data[:stderr])
@@ -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.9.6"
5
+ VERSION = "0.9.7"
6
6
  end
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.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto