rancher-api 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/rancher/api/helpers/model.rb +9 -1
- data/lib/rancher/api/version.rb +1 -1
- 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: c63e3e47ec3a6af1dd0f61214b033eaeaeefb4b5
|
|
4
|
+
data.tar.gz: 43b3045142fe96e27a9fbccb2dd8d3b6eb71d889
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56b69e04eeb7669fb2253dcb69acf58e13eb2dc82e16080a8d52cc0a98723400ec3bfed14a3de3026bbdf4d0ae039999f30ab5f5e469e4b4457c0d0b4faabd1c
|
|
7
|
+
data.tar.gz: 4078f964156fcf3a23567b6fdffb085d97bd8870d3cf8471d53bc62a81e1788409e7b181c916a614c7a30f57d897dd6ba5c03a2bf69801059116bf8ca37322b5
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [0.5.1] - 2016-08-16
|
|
6
|
+
|
|
7
|
+
- bugfix in model helpers #handle_response when handling collections
|
|
8
|
+
|
|
5
9
|
## [0.5.0] - 2016-08-10
|
|
6
10
|
|
|
7
11
|
- added few helpers:
|
data/Gemfile.lock
CHANGED
|
@@ -25,7 +25,15 @@ module Rancher
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def handle_response(response)
|
|
28
|
-
|
|
28
|
+
case response
|
|
29
|
+
when Her::Collection
|
|
30
|
+
response
|
|
31
|
+
when Her::Model
|
|
32
|
+
raise RancherModelError, response.inspect if response.type.eql?('error')
|
|
33
|
+
response
|
|
34
|
+
else
|
|
35
|
+
raise RancherModelError, response.inspect
|
|
36
|
+
end
|
|
29
37
|
end
|
|
30
38
|
|
|
31
39
|
def wait_for_state(desired_state)
|
data/lib/rancher/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rancher-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Kurkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: her
|