aptible-api 0.4.0 → 0.4.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: b7803a18c33841cee6818fabba5af95a1c400f95
4
- data.tar.gz: dd84114b9e5ba177c6713993de1a98b521224e93
3
+ metadata.gz: aac6d0e69f2388c0e737ac45ac838df1aa9f1473
4
+ data.tar.gz: 8e2534c0e70912f8f730da01e005007f3c9291ae
5
5
  SHA512:
6
- metadata.gz: 9775eeafeb3bfb63e8317ed3e7dbff09f9948f30db2e2e39d594fbc8ddd12c9896854bb8183c1dd2ae855e73fd28cb3d32e43820632b9ac05e371a647fd22f5b
7
- data.tar.gz: bb6a13e19eb8c7ae2143092e728c8cd74b798b42151511128f0792b37c9fc728717d67255bbfda505f32dc3f783afcd1bc2449ec4202b015509cdf9489dc069d
6
+ metadata.gz: ad1b669cbf419a8475918e715da866c594b4a66f9a16dcc4652912235e59afe81bbc9a83ecbc0f0c1d433df3c0f0965e992b901ba7f1b8a43b255de87a95ecce
7
+ data.tar.gz: cc3bb3e21e50d11d1713dad215ffaab5014711fef57a84b2e636ede6519128a28067db49ca49c3fbcf046494bbe8cb880fa11e3e07c1450a631fb37afc4842da
data/aptible-api.gemspec CHANGED
@@ -6,11 +6,11 @@ require 'English'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'aptible-api'
9
- spec.version = '0.4.0'
9
+ spec.version = '0.4.1'
10
10
  spec.authors = ['Frank Macreery']
11
11
  spec.email = ['frank@macreery.com']
12
- spec.description = %q{Ruby client for api.aptible.com}
13
- spec.summary = %q{Ruby client for api.aptible.com}
12
+ spec.description = %q(Ruby client for api.aptible.com)
13
+ spec.summary = %q(Ruby client for api.aptible.com)
14
14
  spec.homepage = 'https://github.com/aptible/aptible-api'
15
15
  spec.license = 'MIT'
16
16
 
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Account < Api::Resource
3
4
  has_many :apps
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Adapter < HyperResource::Adapter::HAL_JSON
3
4
  class << self
@@ -1,6 +1,9 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::App < Api::Resource
3
4
  belongs_to :account
5
+ belongs_to :current_configuration
6
+ belongs_to :current_image
4
7
  has_many :configurations
5
8
  has_many :images
6
9
  has_many :operations
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Attachment < Api::Resource
3
4
  belongs_to :disk
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Configuration < Api::Resource
3
4
  belongs_to :resource
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Container < Api::Resource
3
4
  belongs_to :release
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Disk < Api::Resource
3
4
  belongs_to :account
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Image < Api::Resource
3
4
  belongs_to :app
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Operation < Api::Resource
3
4
  belongs_to :resource
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Permission < Api::Resource
3
4
  belongs_to :resource
@@ -1,3 +1,4 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Release < Api::Resource
3
4
  belongs_to :service
@@ -1,5 +1,6 @@
1
1
  require 'active_support/inflector'
2
2
 
3
+ # rubocop:disable ClassAndModuleChildren
3
4
  module Aptible
4
5
  class Api::Resource < Api
5
6
  def self.basename
@@ -1,7 +1,9 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Service < Api::Resource
3
4
  belongs_to :account
4
5
  belongs_to :app
6
+ belongs_to :current_release
5
7
  has_many :vhosts
6
8
  has_many :operations
7
9
  has_many :permissions
@@ -1,6 +1,8 @@
1
+ # rubocop:disable ClassAndModuleChildren
1
2
  module Aptible
2
3
  class Api::Vhost < Api::Resource
3
4
  belongs_to :service
5
+ has_many :operations
4
6
 
5
7
  def provisioned?
6
8
  provisioned
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
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
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config