aptible-api 0.4.2 → 0.4.3
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 +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b89501289703ff5b2b99d93ea965c3fbb4b69c22
|
4
|
+
data.tar.gz: 07e6d2fa80f42503fbc3855b06ab4c7876439999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b9f6920b3d1345a45c47474131b1f5ba5beb23c174564311b380d11472932f8075c83baf90bc078b571d50dff025c28a254166b0f0ef1d44ee4796bea21e98b
|
7
|
+
data.tar.gz: 644e417a2a68506d1867bcd8bcd90f40eb113b9d9ceac0c4e13636d75f4951b14d05656a7332b6827beb41f9f3c433471e632992e637c7936c965e2ef780040f
|
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.3'
|
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
@@ -3,6 +3,14 @@ require 'active_support/inflector'
|
|
3
3
|
# rubocop:disable ClassAndModuleChildren
|
4
4
|
module Aptible
|
5
5
|
class Api::Resource < Api
|
6
|
+
def delete
|
7
|
+
# HyperResource/Faraday choke on empty response bodies
|
8
|
+
super
|
9
|
+
rescue HyperResource::ResponseError
|
10
|
+
nil
|
11
|
+
end
|
12
|
+
alias_method :destroy, :delete
|
13
|
+
|
6
14
|
def self.basename
|
7
15
|
name.split('::').last.downcase.pluralize
|
8
16
|
end
|