vagrant-mutate 1.0.3 → 1.0.4

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: d61d3a19b58fbf87b0c6dea226cceab60232c299
4
- data.tar.gz: 8af3f8b241f7d525981d7682db1790f866596c3b
3
+ metadata.gz: 13ec603ec569b8231d5560dd29c8897ef8b13bee
4
+ data.tar.gz: 290f07e0ac8daaeb868447f0b0f157e7e8b81d0c
5
5
  SHA512:
6
- metadata.gz: ae8e9f694743c23db4c9703575fdae3401976f0482fbc11f34004995eca212b8ab8493d5fa8784ec2783695930ad0ebf5df88adba775bddbcb411840569a5f87
7
- data.tar.gz: d4f9c7b7cdccb175da5c729853dab37806255972cf356990c355146cc8999e30da1fa1a3ccd1ef9397fa0e429cc9c8f3a38d415944f1432a45b24f2644c571af
6
+ metadata.gz: 232699da95537caa799db9aac7aa2050475fa64c76cb66d9c1ede25e2666ea71a6bcc5c6707700c5e0e3d5a6f77e58893eb3a1a222abff291f501c5a594f3261
7
+ data.tar.gz: 5cef673601437980747e4490887b41f4f10c98e8211cb04e48b6b2ca7000c617425aedf118081c0ebeb61e1eac67c9d707f888754ecb812146c07d579df76d53
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.0.4 (2016-01-01)
2
+ * Support spaces in box names (#79)
3
+
1
4
  # 1.0.3 (2015-10-15)
2
5
  * Fix compatibility with qemu version in EL6 (#76)
3
6
 
@@ -1,3 +1,5 @@
1
+ require 'shellwords'
2
+
1
3
  module VagrantMutate
2
4
  module Box
3
5
  class Box
@@ -24,7 +26,7 @@ module VagrantMutate
24
26
  end
25
27
 
26
28
  def extract_from_qemu_info(expression)
27
- input_file = File.join(@dir, image_name)
29
+ input_file = File.join(@dir, image_name).shellescape
28
30
  info = `qemu-img info #{input_file}`
29
31
  @logger.debug "qemu-img info output\n#{info}"
30
32
  if info =~ expression
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'shellwords'
2
3
 
3
4
  module VagrantMutate
4
5
  module Converter
@@ -86,8 +87,8 @@ module VagrantMutate
86
87
  end
87
88
 
88
89
  def convert_disk
89
- input_file = File.join(@input_box.dir, @input_box.image_name)
90
- output_file = File.join(@output_box.dir, @output_box.image_name)
90
+ input_file = File.join(@input_box.dir, @input_box.image_name).shellescape
91
+ output_file = File.join(@output_box.dir, @output_box.image_name).shellescape
91
92
  output_format = @output_box.image_format
92
93
 
93
94
  # p for progress bar
@@ -1,3 +1,3 @@
1
1
  module VagrantMutate
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-mutate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pitts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-16 00:00:00.000000000 Z
11
+ date: 2016-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 2.2.0
108
+ rubygems_version: 2.2.2
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Convert vagrant boxes to work with different providers