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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64df8419b496fdd5bf8cf721d96631bd29c6d0ef
4
- data.tar.gz: cbc40170bce09bf2b62a72bde7884edb32dc3e4b
3
+ metadata.gz: 89cf93ce1c691b957eba834be12e35b83beda79d
4
+ data.tar.gz: f35f594cf9c0094053f9f04de314f3be554f8dd2
5
5
  SHA512:
6
- metadata.gz: c66e1cf0a1255ab8d7b22b6e827d22f481c9656b788924b3525f8811ecb1a0b5dfe37017205180beec1eddc98ffbebb62804a0677bef5214084c9f4979d7cc97
7
- data.tar.gz: f00b71e805bcfc281f4a14d6f8a01bb190a8f93e5a51bb142fe8926553d60a8db8c3424aff5504fc1afc6a6b4b276a35ab2e784535a3902b08a0dceabe98d2a1
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.error("config.version.url must be set", scope: machine.name)
32
- end
33
- box = machine.box
34
- unless box.nil?
35
- version = local_version(box.directory)
36
- remote = remote_version(machine.config.version.url, box.name)
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
- ui.info("Local version is #{version || "unknown"}", scope: machine.name)
39
+ ui.info("Local version is #{version || "unknown"}", scope: machine.name)
39
40
 
40
- if (version || VersionString.new("0")) < (remote || VersionString.new("0"))
41
- ui.warn("Version #{remote} is available!", scope: machine.name)
42
- ui.info("To update, run:")
43
- ui.info(" vagrant destroy #{machine.name} && vagrant box remove #{box.name} #{box.provider.to_s}")
44
- elsif version.nil?
45
- ui.warn("Local version couldn't be determined. You should probably upgrade your box.", scope: machine.name)
46
- elsif remote.nil?
47
- ui.warn("Remote version couldn't be determined. Try again later.", scope: machine.name)
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("You are up to date!", scope: machine.name)
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
 
@@ -1,3 +1,3 @@
1
1
  module VagrantBoxVersion
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-01-20 00:00:00.000000000 Z
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.0.0
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