vagrant-berkshelf 1.3.5 → 1.3.6

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: 75a7f0c862786e6c4087fe054c26746c5587c0cb
4
- data.tar.gz: 65bec1ca7219deb58c819edaf1f5b7b321c16d20
3
+ metadata.gz: cd705d7c9c906c00b2da128c11e9784f07643a79
4
+ data.tar.gz: 284c860431fa9429775f353af9ef6c58f9e47178
5
5
  SHA512:
6
- metadata.gz: 7dd3be2cac0407aa14f3068b2e0e171aab2f8235ad0d705207f7add2677807c810d417fa1d971990df4dec5674d3f66a0cd4244cf3e227e9c5097391e5f70e1a
7
- data.tar.gz: 43ddcfa088938aafe3a1d405d30ce7b7affd86fb99bc299abb29866e4c956e2df7dea7d7e6bc2f59902ad36fb9db4f59edc0a47ce2f1f4a84f35bf5a2edb3041
6
+ metadata.gz: 1ea25cec3e04e356558cc1326c05e66787c6e16319f449f9546477febe81779abb5573cfd189c95ed354dac5841c8daad6fec894fafa6e5c336a7a0c6913296a
7
+ data.tar.gz: 45a2cb211a10a754141a718237ce2de0f28f260de5221b8271b373bd95f4af24a22e266b73e39246888e533838a14dd3b886753a98a67f7f28df488517012673
@@ -54,17 +54,21 @@ module Berkshelf
54
54
  end
55
55
 
56
56
  def check_vagrant_version(env)
57
- unless Solve::Constraint.new(">= 1.1").satisfies?(::Vagrant::VERSION)
57
+ unless vagrant_version_satisfies?(">= 1.1")
58
58
  raise Berkshelf::VagrantWrapperError.new(RuntimeError.new("vagrant-berkshelf requires Vagrant 1.1 or later."))
59
59
  end
60
60
 
61
- unless Solve::Constraint.new(::Berkshelf::Vagrant::TESTED_CONSTRAINT).satisfies?(::Vagrant::VERSION)
61
+ unless vagrant_version_satisfies?(::Berkshelf::Vagrant::TESTED_CONSTRAINT)
62
62
  env[:berkshelf].ui.warn "This version of the Berkshelf plugin has not been fully tested on this version of Vagrant."
63
63
  env[:berkshelf].ui.warn "You should check for a newer version of vagrant-berkshelf."
64
64
  env[:berkshelf].ui.warn "If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues"
65
65
  env[:berkshelf].ui.warn "You can also join the discussion in #berkshelf on Freenode."
66
66
  end
67
67
  end
68
+
69
+ def vagrant_version_satisfies?(requirement)
70
+ Gem::Requirement.new(requirement).satisfied_by? Gem::Version.new(::Vagrant::VERSION)
71
+ end
68
72
  end
69
73
  end
70
74
  end
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module Vagrant
3
- VERSION = "1.3.5"
3
+ VERSION = "1.3.6"
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: 1.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-10 00:00:00.000000000 Z
12
+ date: 2013-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: berkshelf