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 +4 -4
- data/aptible-api.gemspec +1 -1
- data/lib/aptible/api/resource.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21dda808f111d1dae07f217fd2c8bcd4c3c5437b
|
4
|
+
data.tar.gz: f5da147bd9fb8c6b8ef14fbfe08cebe0a34aad87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
data/lib/aptible/api/resource.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_config
|