aptible-api 0.3.0 → 0.3.1

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: 9ae1f234749249ba10c4e830f31cc403b78de9c8
4
- data.tar.gz: a984b4d81ba494532f92a52090e067ff7aa5154d
3
+ metadata.gz: c5062881ccb8f15f410415a7349c3bd6cd7c3a44
4
+ data.tar.gz: cd9a3a858eb9afc0d43f597ffc032296191298b3
5
5
  SHA512:
6
- metadata.gz: e66e1bafd9405e86e9bbfda05b92ea533b726dab6c7dfe8b15f0c28774053ea3f04abaadbe836401f070dbabf3df2e9a45de9579ac5fb17282a02373f939255f
7
- data.tar.gz: b39e936172ff7a45d2e24994f44f2caeff0519b0f970693876ea1e647b2ea952f4f921ac1d367cc41628fc18a0a7c60f494252c38f6070c9a1961bb8542a20b8
6
+ metadata.gz: 0290f531af21f94e548f6a0bac158793a42905fb4fa5281adeef73dc2c6962b742a1b78c4ce1a805f628dbdb6bdd7969cf2fe30424e203ccf07064398cbb41ff
7
+ data.tar.gz: d01d70ec9608bf24e5ed3d7959a0e8f165094c16f4c696af80136bb60b4302178d282a6f62c49af0ca53e6c250491dddd212f49eed66d42c44a2e6af10b0e3d0
data/README.md CHANGED
@@ -21,7 +21,7 @@ And then run `bundle install`.
21
21
  First, get a token:
22
22
 
23
23
  ```ruby
24
- token = Aptible::Auth::Token.new(email: 'user0@example.com', password: 'password')
24
+ token = Aptible::Auth::Token.create(email: 'user0@example.com', password: 'password')
25
25
  ```
26
26
 
27
27
  From here, you can interact with the Authorization API however you wish:
data/aptible-api.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'English'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'aptible-api'
9
- spec.version = '0.3.0'
9
+ spec.version = '0.3.1'
10
10
  spec.authors = ['Frank Macreery']
11
11
  spec.email = ['frank@macreery.com']
12
12
  spec.description = %q{Ruby client for api.aptible.com}
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_dependency 'gem_config'
22
- spec.add_dependency 'hyperresource-aptible'
22
+ spec.add_dependency 'hyperresource-aptible', '>= 0.9.0'
23
23
  spec.add_dependency 'aptible-auth'
24
24
  spec.add_dependency 'fridge'
25
25
 
@@ -5,5 +5,6 @@ module Aptible
5
5
  has_many :images
6
6
  has_many :operations
7
7
  has_many :permissions
8
+ has_many :services
8
9
  end
9
10
  end
@@ -24,6 +24,7 @@ module Aptible
24
24
  # REVIEW: Should exception be raised if return type mismatch?
25
25
  new(options).find_by_url(url)
26
26
  rescue
27
+ # REVIEW: Should only 404 exceptions be nil?
27
28
  nil
28
29
  end
29
30
 
@@ -1,6 +1,7 @@
1
1
  module Aptible
2
2
  class Api::Service < Api::Resource
3
3
  belongs_to :account
4
+ belongs_to :app
4
5
  has_many :vhosts
5
6
  has_many :operations
6
7
  has_many :permissions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: aptible-auth
43
43
  requirement: !ruby/object:Gem::Requirement