vagrant_box_version 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +5 -0
- data/lib/vagrant_box_version/version-checking.rb +20 -18
- data/lib/vagrant_box_version/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89cf93ce1c691b957eba834be12e35b83beda79d
|
4
|
+
data.tar.gz: f35f594cf9c0094053f9f04de314f3be554f8dd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9bc1dbce9dc2476c4ae3a1dc82181bc1f2609fad337e2dd2ca21d4dd19fcba0acb8ba007a6b0d79fcede1a0b959c7c326ca44f34d3aab82411053f224b95281
|
7
|
+
data.tar.gz: 265053dc0f1087bf2828c6f4f58aade945c94cc081cdc5170033dff1f51a312d359f6c39f8ea8635396bfa395d93914dae483059998c6eeaef3b09e8c92cd920
|
data/README.md
CHANGED
@@ -65,4 +65,9 @@ This is always going to be minimal. However in the future it might:
|
|
65
65
|
Contributions in the form of pull requests are are very welcome, though anyone
|
66
66
|
wanting to produce a full box package manager might want to start again.
|
67
67
|
|
68
|
+
## Changes
|
69
|
+
|
70
|
+
- v.0.0.6: Play even nicer with vagrantfiles without required config
|
71
|
+
(some reports of those boxes not even starting.)
|
72
|
+
|
68
73
|
[fowler]: http://chadfowler.com/blog/2013/06/23/immutable-deployments/
|
@@ -28,28 +28,30 @@ module VagrantBoxVersion
|
|
28
28
|
module VersionChecking
|
29
29
|
def check(machine, ui)
|
30
30
|
if (machine.config.version.url.empty?)
|
31
|
-
ui.
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
ui.warn("to use the vagrant version plugin, config.version.url must be set",
|
32
|
+
scope: machine.name)
|
33
|
+
else
|
34
|
+
box = machine.box
|
35
|
+
unless box.nil?
|
36
|
+
version = local_version(box.directory)
|
37
|
+
remote = remote_version(machine.config.version.url, box.name)
|
37
38
|
|
38
|
-
|
39
|
+
ui.info("Local version is #{version || "unknown"}", scope: machine.name)
|
39
40
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
if (version || VersionString.new("0")) < (remote || VersionString.new("0"))
|
42
|
+
ui.warn("Version #{remote} is available!", scope: machine.name)
|
43
|
+
ui.info("To update, run:")
|
44
|
+
ui.info(" vagrant destroy #{machine.name} && vagrant box remove #{box.name} #{box.provider.to_s}")
|
45
|
+
elsif version.nil?
|
46
|
+
ui.warn("Local version couldn't be determined. You should probably upgrade your box.", scope: machine.name)
|
47
|
+
elsif remote.nil?
|
48
|
+
ui.warn("Remote version couldn't be determined. Try again later.", scope: machine.name)
|
49
|
+
else
|
50
|
+
ui.success("You are up to date!", scope: machine.name)
|
51
|
+
end
|
48
52
|
else
|
49
|
-
ui.success("
|
53
|
+
ui.success("There is no local box yet. Nothing to do.", scope: machine.name)
|
50
54
|
end
|
51
|
-
else
|
52
|
-
ui.success("There is no local box yet. Nothing to do.", scope: machine.name)
|
53
55
|
end
|
54
56
|
end
|
55
57
|
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant_box_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edd Steel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Plugin to provide version information for boxes
|
@@ -45,17 +45,17 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- Gemfile
|
49
|
+
- LICENSE.txt
|
50
|
+
- README.md
|
51
|
+
- Rakefile
|
52
|
+
- lib/vagrant_box_version.rb
|
48
53
|
- lib/vagrant_box_version/action.rb
|
49
54
|
- lib/vagrant_box_version/command.rb
|
50
55
|
- lib/vagrant_box_version/config.rb
|
51
56
|
- lib/vagrant_box_version/plugin.rb
|
52
57
|
- lib/vagrant_box_version/version-checking.rb
|
53
58
|
- lib/vagrant_box_version/version.rb
|
54
|
-
- lib/vagrant_box_version.rb
|
55
|
-
- Gemfile
|
56
|
-
- LICENSE.txt
|
57
|
-
- README.md
|
58
|
-
- Rakefile
|
59
59
|
- vagrant_box_version.gemspec
|
60
60
|
homepage: ''
|
61
61
|
licenses:
|
@@ -67,17 +67,17 @@ require_paths:
|
|
67
67
|
- lib
|
68
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.2.0
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Plugin to provide version information for boxes
|