vagrant_cloud 0.4.0 → 0.4.1

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: 6a617453ddbb1ae2c011a4bfefc491b5d4bbb9ae
4
- data.tar.gz: 9c29257f990145ffa7d0dcae07b4eef07d9e105b
3
+ metadata.gz: 6f775de1cb62e00b46563d91fac4dd85dec7c55c
4
+ data.tar.gz: 3dda5f311191047248d72c56477adfc16ccb425f
5
5
  SHA512:
6
- metadata.gz: f24a18bc5a0bbdc4d15ea65971ae3cc938f4edb248866c03fc07381b5856e4db516d687d423f9f62312b61278afc8e20ef505d8924c030516100f070d7d44d44
7
- data.tar.gz: a431af85399f329ce7d30289d3140f7d58b53339b3db6dd3f466b3dddb889e376275eec9ab5af8d69814cced872c488d2265ea844066c0bb21c59ef8093f233d
6
+ metadata.gz: d64b1d9e391b675dd2fd5fc61abe9293558b9f42b30abeb90c3ed8ff761e940e38881f16098860581378ff681b322b2d62d74d77af8a198d2cf2ededc0f7391d
7
+ data.tar.gz: 58c5acdae88765dff652da9756cab38a79a02d7d7d626ee4df0f84fee1a75401648cef4c2fbf6f9fd6c66f272488a770bff0c291358cbe0f4ab9730b901c8e59
data/README.md CHANGED
@@ -1,22 +1,23 @@
1
- vagrant_cloud [![Build Status](https://travis-ci.org/cargomedia/vagrant_cloud.svg)](https://travis-ci.org/cargomedia/vagrant_cloud)
1
+ vagrant_cloud
2
2
  =============
3
+ Minimalistic ruby client for the [HashiCorp Atlas API](https://atlas.hashicorp.com/docs) (previously *Vagrant Cloud API*).
3
4
 
4
- *Very* minimalistic ruby wrapper for the [Vagrant Cloud API](https://atlas.hashicorp.com/docs).
5
+ [![Build Status](https://img.shields.io/travis/cargomedia/vagrant_cloud/master.svg)](https://travis-ci.org/cargomedia/vagrant_cloud)
6
+ [![Gem Version](https://img.shields.io/gem/v/vagrant_cloud.svg)](https://rubygems.org/gems/vagrant_cloud)
5
7
 
6
- Consisting of four basic classes for your *account*, *boxes*, *versions* and *providers*.
8
+
9
+ This client allows to create, modify and delete *boxes*, *versions* and *providers*.
10
+ The main entry point is an object referencing your *account*.
7
11
 
8
12
  Usage
9
13
  -----
10
- The *vagrant_cloud* gem is hosted on [RubyGems](https://rubygems.org/gems/vagrant_cloud), see installation instructions there.
11
-
12
14
  Example usage:
13
15
  ```ruby
14
16
  account = VagrantCloud::Account.new('<username>', '<access_token>')
15
- box = vagrant_cloud.ensure_box('my_box')
17
+ box = account.ensure_box('my_box')
16
18
  version = box.ensure_version('0.0.1')
17
- provider_foo = version.ensure_provider('foo', 'http://example.com/foo.box')
18
- provider_bar = version.ensure_provider('bar', 'http://example.com/bar.box')
19
+ provider = version.ensure_provider('virtualbox', 'http://example.com/foo.box')
19
20
 
20
21
  version.release
21
- puts provider_foo.download_url
22
+ puts provider.download_url
22
23
  ```
@@ -79,7 +79,7 @@ module VagrantCloud
79
79
 
80
80
  # @return [String]
81
81
  def url_base
82
- 'https://vagrantcloud.com/api/v1'
82
+ 'https://atlas.hashicorp.com/api/v1'
83
83
  end
84
84
 
85
85
  # @param [Array] args
@@ -103,7 +103,7 @@ module VagrantCloud
103
103
  end
104
104
 
105
105
  # Default boxes to public can be overridden by providing :is_private
106
- params[:is_private] = false unless defined? params[:is_private]
106
+ params[:is_private] = false unless params.has_key?(:is_private)
107
107
 
108
108
  params
109
109
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2016-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -66,8 +66,9 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.21'
69
- description: Very minimalistic ruby wrapper for the Vagrant Cloud API
70
- email: hello@cargomedia.ch
69
+ description: Minimalistic ruby client for the HashiCorp Atlas API (previously Vagrant
70
+ Cloud API)
71
+ email: tech@cargomedia.ch
71
72
  executables: []
72
73
  extensions: []
73
74
  extra_rdoc_files: []
@@ -99,8 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  version: '0'
100
101
  requirements: []
101
102
  rubyforge_project:
102
- rubygems_version: 2.4.5
103
+ rubygems_version: 2.5.1
103
104
  signing_key:
104
105
  specification_version: 4
105
- summary: Vagrant Cloud API wrapper
106
+ summary: HashiCorp Atlas API client
106
107
  test_files: []