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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ca04476a52e3d3ec90a06b9b3cbd81520f8006d
4
- data.tar.gz: 2e1fa38dcd2452757e9cd1fd8fa98a8e5ad55b1a
3
+ metadata.gz: b89501289703ff5b2b99d93ea965c3fbb4b69c22
4
+ data.tar.gz: 07e6d2fa80f42503fbc3855b06ab4c7876439999
5
5
  SHA512:
6
- metadata.gz: 5833ad70c4bc7d3684ab514d7562044de3390033bd96fa79f7095355602c2b3697e972925d29448c6feebce03ea1e7c67796093c9d60e70d277876f92dbe45ca
7
- data.tar.gz: fe49f1b72707b0ed6aa137f494e5a1f1b21617f2c83c795f7a51cafd310d5a9b8ade0282542fadc72eaf17467eab0d90e70e227f0525f92a4529b4f8555fe578
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.2'
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)
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery