aptible-api 0.4.6 → 0.4.7

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: a881798305f737ae7263ab219b43514d6dfbb5b3
4
- data.tar.gz: 62e16936741141e2abb5bccf94091bacb1d04712
3
+ metadata.gz: 21dda808f111d1dae07f217fd2c8bcd4c3c5437b
4
+ data.tar.gz: f5da147bd9fb8c6b8ef14fbfe08cebe0a34aad87
5
5
  SHA512:
6
- metadata.gz: 3286094ab43a5feb6bc3d3af61514ee616e1fb1819e9c4d8c50f8cf936772c79a6f33dc6bb770dce96544bf49584772a2286e8000d24ed2faa49f5036ca1b548
7
- data.tar.gz: e7b6fcfc8587297bdb643b6d5827d0f3be32b35d3a48b07142b3c9aa630c7740bbf0d00e60c25fc6987901b1037d07478cf96a60804f9eb98ae38240439a8768
6
+ metadata.gz: 8e1397c007cd92cfe2cbca0c108385d2a85f40002fc530d626151f67176e9c9936219ae5a7801b89adec4616cd06551b7c338af3fe040e7002d883cbf2bd1d37
7
+ data.tar.gz: 3208c71d1e5f701e2c061bf367d37d52de6080fc141699069e5a52d37a7d91196ce28a1ddd60b9b6be741e618fd553fa54d583f60f5d9fed40901e34fac77eac
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.6'
9
+ spec.version = '0.4.7'
10
10
  spec.authors = ['Frank Macreery']
11
11
  spec.email = ['frank@macreery.com']
12
12
  spec.description = %q(Ruby client for api.aptible.com)
@@ -89,6 +89,18 @@ module Aptible
89
89
  links[relation].create(options)
90
90
  end
91
91
  end
92
+
93
+ def update(params)
94
+ params_array = params.map do |key, value|
95
+ value.is_a?(HyperResource) ? [key, value.href] : [key, value]
96
+ end
97
+ super(Hash[params_array])
98
+ end
99
+
100
+ # NOTE: The following does not update the object in-place
101
+ def reload
102
+ self.class.find_by_url(href, headers: headers)
103
+ end
92
104
  end
93
105
  end
94
106
 
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.6
4
+ version: 0.4.7
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-04-07 00:00:00.000000000 Z
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config