aptible-api 0.4.5 → 0.4.6

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: c1541196a911b6077bac967c1c34edead2063c58
4
- data.tar.gz: 099b9df00a961e588f6b23146dd6d5e5b5acbe31
3
+ metadata.gz: a881798305f737ae7263ab219b43514d6dfbb5b3
4
+ data.tar.gz: 62e16936741141e2abb5bccf94091bacb1d04712
5
5
  SHA512:
6
- metadata.gz: c2577ff1e8df1b8f439f0d235493755b1b10c29ae7f7e809cb31d37885e221bf07f4197d7629d716bfab054df35cbbc0b40b0ba3a38771a83abc16daaa3bbcea
7
- data.tar.gz: b9909899937041dc6335c25967e15ba699abdaf30d4e5f1eafe3f6eef1da9000f0445a9c4238080854f81db0104869c6f401b87601715a71ef84360aefa3fe87
6
+ metadata.gz: 3286094ab43a5feb6bc3d3af61514ee616e1fb1819e9c4d8c50f8cf936772c79a6f33dc6bb770dce96544bf49584772a2286e8000d24ed2faa49f5036ca1b548
7
+ data.tar.gz: e7b6fcfc8587297bdb643b6d5827d0f3be32b35d3a48b07142b3c9aa630c7740bbf0d00e60c25fc6987901b1037d07478cf96a60804f9eb98ae38240439a8768
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.4.5'
9
+ spec.version = '0.4.6'
10
10
  spec.authors = ['Frank Macreery']
11
11
  spec.email = ['frank@macreery.com']
12
12
  spec.description = %q(Ruby client for api.aptible.com)
@@ -2,6 +2,8 @@
2
2
  module Aptible
3
3
  class Api::Database < Api::Resource
4
4
  belongs_to :account
5
+ has_one :disk
6
+ has_one :service
5
7
  has_many :operations
6
8
  has_many :permissions
7
9
  end
@@ -2,6 +2,7 @@
2
2
  module Aptible
3
3
  class Api::Disk < Api::Resource
4
4
  belongs_to :account
5
+ belongs_to :database
5
6
  has_many :operations
6
7
  has_many :permissions
7
8
  end
@@ -65,7 +65,12 @@ module Aptible
65
65
  end
66
66
  end
67
67
 
68
- private
68
+ # rubocop:disable PredicateName
69
+ def self.has_one(relation)
70
+ # Better than class << self + alias_method?
71
+ belongs_to(relation)
72
+ end
73
+ # rubocop:enable PredicateName
69
74
 
70
75
  def self.define_has_many_getter(relation)
71
76
  define_method relation do
@@ -3,6 +3,7 @@ module Aptible
3
3
  class Api::Service < Api::Resource
4
4
  belongs_to :account
5
5
  belongs_to :app
6
+ belongs_to :database
6
7
  belongs_to :current_release
7
8
  has_many :vhosts
8
9
  has_many :operations
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.5
4
+ version: 0.4.6
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-28 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  version: '0'
220
220
  requirements: []
221
221
  rubyforge_project:
222
- rubygems_version: 2.2.1
222
+ rubygems_version: 2.2.2
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: Ruby client for api.aptible.com