vagrant-json 1.0.1 → 1.0.2

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: b8ba772afbe7faeca466fcadd7cd71e5d0c48f07
4
- data.tar.gz: 78fda6c7ce2d8a0ad79b49c2dca06f910f0880a3
3
+ metadata.gz: c83acded56c326e95a8de8d936309e293e56c6c7
4
+ data.tar.gz: 39c6d4fd61ee3976c0a94d3e011f2631ac7071c2
5
5
  SHA512:
6
- metadata.gz: 615e7d0d633e96988a8c7be9cd61b30a021a7d66b443cb5ecc79c2b037b56c660eb220d288af05ee151dc35c7490f0bcee28bcc151fd493022af5399d246420f
7
- data.tar.gz: e727f56fc2373b87d0c848927ab8274b6473f776185e5237bed90958fabe690b72aebc2f48ac2dc2d05185c3b4c6a26a24a287dbfeff7c6c7232b3024b3b532b
6
+ metadata.gz: c9d5787ebbaa81a368551f870c663133fbbf47cd81dda5a8685d709901eaf2cbb6303fcebd7a2b555d10c5f769780e9d4fbc58c3b331a6b8edf4f952921272d2
7
+ data.tar.gz: 5055c39c17653739ef8646131016810ad6dd9c8862896e2b8c54dd60285975f9ecb8e9a70571b987e74b890d32bd1514d5e5c96cdc530acf858ee859ed6ddddb
data/README.md CHANGED
@@ -1,10 +1,17 @@
1
1
  # Vagrant JSON Status
2
2
 
3
+ <span class="badges">
4
+ [![Gem Version](https://badge.fury.io/rb/vagrant-json.png)][gem]
5
+ [![Dependency Status](https://gemnasium.com/badges/github.com/nater540/vagrant-json.svg)](https://gemnasium.com/github.com/nater540/vagrant-json)
6
+ </span>
7
+
8
+ [gem]: https://rubygems.org/gems/vagrant-json
9
+
3
10
  Extremely simple Vagrant plugin that will output `global-status` in JSON instead of the current CSV format.
4
11
 
5
12
  ## Installation
6
13
 
7
- $ gem install vagrant-json
14
+ $ vagrant plugin install vagrant-json
8
15
 
9
16
  ## Usage
10
17
 
@@ -1,13 +1,7 @@
1
1
  require 'pathname'
2
2
 
3
- require 'vagrant-json/version'
4
- require 'bundler'
3
+ require 'vagrant-json/plugin'
5
4
 
6
- begin
7
- require 'vagrant'
8
- rescue LoadError
9
- Bundler.require(:default, :development)
5
+ module Vagrant
6
+ module Json; end
10
7
  end
11
-
12
- require 'vagrant-json/plugin'
13
- require 'vagrant-json/command'
@@ -1,3 +1,9 @@
1
+ begin
2
+ require 'vagrant'
3
+ rescue LoadError
4
+ raise 'The Vagrant JSON Status plugin must be run within Vagrant.'
5
+ end
6
+
1
7
  if Vagrant::VERSION < '1.9.0'
2
8
  raise 'The Vagrant JSON Status plugin is only compatible with Vagrant 1.9+'
3
9
  end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Json
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -1,6 +1,5 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
2
+ $:.unshift File.expand_path("../lib", __FILE__)
4
3
  require 'vagrant-json/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
@@ -24,6 +23,5 @@ Gem::Specification.new do |spec|
24
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
24
  spec.require_paths = ['lib']
26
25
 
27
- spec.add_development_dependency 'bundler', '~> 1.14'
28
26
  spec.add_development_dependency 'rake', '~> 10.0'
29
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Strandberg
@@ -10,20 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2017-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.14'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.14'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement