vagrant-berkshelf 5.1.0 → 5.1.1

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: e3a2450761b98810abf51927012c55b88ac90bf4
4
- data.tar.gz: b04465ef7dbe4f308e63963cf3c22af17f44d03c
3
+ metadata.gz: 2feaee3fa0bba53fc033e08d798eb92fea7a7d67
4
+ data.tar.gz: 118dc4a9f16781b91c4a48cb2e6ae42a548d9a18
5
5
  SHA512:
6
- metadata.gz: 09926641b9e5cdfff95d753cca85f18163fcdeeff73376c238aa558f99ebec209ecc9fd69b5ef61ece9b3d5a75c9bcfd57183fefa892cd8afb2b8ff8cae72499
7
- data.tar.gz: fb4de06ffc0c8a2326d884b6bef6befb92a0034fad0f7b2526eb312e13c917232fe660e5c75640bd777e141548dce43cfdc9f19d19f2e48db9038234896cb22d
6
+ metadata.gz: 3183d6bbb5f5e9e5fe1570ec152b37fc38810452965077d2238325c89183d48945ed7b14e03da87b36c1818b54f2d7334230b9d552e4ee2f81867197e7f757c1
7
+ data.tar.gz: 1a35670f803c4785f54b0fd0b2c68c95ea4ae620b417fac1aa1aa742ef3cb3ae7b44eddb40a48d88c4df57359914ee55b0c1f0dfdae8ee63867d94e759e3c304
@@ -2,6 +2,10 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
 
5
+ branches:
6
+ only:
7
+ master
8
+
5
9
  matrix:
6
10
  include:
7
11
  - rvm: 2.2.5
data/Gemfile CHANGED
@@ -1,9 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
4
-
5
3
  group :development do
6
- gem 'vagrant', github: 'mitchellh/vagrant'
4
+ gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
5
+ gem 'spork'
6
+ gem 'rspec'
7
+ gem 'rake'
7
8
  end
8
9
 
9
10
  group :plugins do
@@ -59,7 +59,7 @@ module VagrantPlugins
59
59
 
60
60
  final_command = [berks_bin, command, *args]
61
61
 
62
- Bundler.with_clean_env do
62
+ Vagrant::Util::Env.with_clean_env do
63
63
  r = Subprocess.execute(*final_command)
64
64
  if r.exit_code != 0
65
65
  raise BerksCommandFailed.new(final_command.join(' '), r.stdout, r.stderr)
@@ -146,43 +146,6 @@ module VagrantPlugins
146
146
  env[:machine].data_dir.join("berkshelf")
147
147
  end
148
148
 
149
- #
150
- # Execute the given command, removing any Ruby-specific environment
151
- # variables. This is an "enhanced" version of +Bundler.with_clean_env+,
152
- # which only removes Bundler-specific values. We need to remove all
153
- # values, specifically:
154
- #
155
- # - _ORIGINAL_GEM_PATH
156
- # - GEM_PATH
157
- # - GEM_HOME
158
- # - GEM_ROOT
159
- # - BUNDLE_BIN_PATH
160
- # - BUNDLE_GEMFILE
161
- # - RUBYLIB
162
- # - RUBYOPT
163
- # - RUBY_ENGINE
164
- # - RUBY_ROOT
165
- # - RUBY_VERSION
166
- #
167
- # This will escape Vagrant's environment entirely, which is required if
168
- # calling an executable that lives in another Ruby environment. The
169
- # original environment restored at the end of this call.
170
- #
171
- # @param [Proc] block
172
- # the block to execute with the cleaned environment
173
- #
174
- def with_clean_env(&block)
175
- original = ENV.to_hash
176
-
177
- ENV.delete("_ORIGINAL_GEM_PATH")
178
- ENV.delete_if { |k,_| k.start_with?("BUNDLE_") }
179
- ENV.delete_if { |k,_| k.start_with?("GEM_") }
180
- ENV.delete_if { |k,_| k.start_with?("RUBY") }
181
-
182
- yield
183
- ensure
184
- ENV.replace(original.to_hash)
185
- end
186
149
  end
187
150
  end
188
151
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Berkshelf
3
- VERSION = "5.1.0"
3
+ VERSION = "5.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-berkshelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-11 00:00:00.000000000 Z
13
+ date: 2016-12-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: spork