droplet_kit 3.13.0 → 3.13.1

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
  SHA256:
3
- metadata.gz: d5e98513325962e09a5405e6665aec934202e9540de33e84e59504749f8b6082
4
- data.tar.gz: 1a251b9b9479752e21c63cc77769d19da93a12989d79356d40065aa500a0c3d2
3
+ metadata.gz: 42378c9ab960545fbf4331ae369a40dbc453d0df11f0ea001f4ce43eedc07bf5
4
+ data.tar.gz: 998a5544e12c192fcd41e2d16bd87690bdf09771d9eb34601a3e5e4793ccb8f0
5
5
  SHA512:
6
- metadata.gz: 5a5ab31c45ee715dd6df0ddac05d99f0cb3380fa1f1e22b5c3823a69e0ad3316edc4e42aaef8e51782a30da4d2722066fefb87c9825f6549d34a9ce945b9a600
7
- data.tar.gz: e0c65e9609f12e72d2eaed500cc35cbc1935aab24ec5eacd99c2df6d1b9d93e3889c4dd693e3fd0c40f82750f5d0c45f62367e7b4280b8f6982acd818d675937
6
+ metadata.gz: a18b104aa9c5929ed42fee92a4901773aab214a6df3161bba3d141e421a51e97b84beebbc63eed9d4309bcb27f699a1b73b0a472ba8cf64046e32e4d7da01174
7
+ data.tar.gz: 777d236b77ddde9f77d91259bf8f03a1ac09ffd2114471b6c44f4f300dfd10b16b579d77293c5340c8130253e66e82e10ec4686f4b5bd75243fe65099600c199
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # DropletKit
2
- [![Build Status](https://travis-ci.org/digitalocean/droplet_kit.svg?branch=master)](https://travis-ci.org/digitalocean/droplet_kit)
2
+ [![Build Status](https://github.com/digitalocean/droplet_kit/workflows/CI/badge.svg?branch=main)](https://github.com/digitalocean/droplet_kit/actions)
3
3
  [![Gem Version](https://badge.fury.io/rb/droplet_kit.svg)](https://badge.fury.io/rb/droplet_kit)
4
4
 
5
5
  DropletKit is the official [DigitalOcean V2 API](https://developers.digitalocean.com/v2/) client. It supports everything the API can do with a simple interface written in Ruby.
@@ -49,7 +49,7 @@ module DropletKit
49
49
  resources.to_a.map do |resource|
50
50
  if resource.is_a?(String) && DropletKit::BaseModel.valid_urn?(resource)
51
51
  resource
52
- elsif resource.try(:urn) && DropletKit::BaseModel.valid_urn?(resource.urn)
52
+ elsif resource.respond_to?(:urn) && resource.urn && DropletKit::BaseModel.valid_urn?(resource.urn)
53
53
  resource.urn
54
54
  else
55
55
  raise DropletKit::Error.new("cannot assign resource without valid urn: #{resource}")
@@ -1,3 +1,3 @@
1
1
  module DropletKit
2
- VERSION = "3.13.0"
2
+ VERSION = "3.13.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: droplet_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.0
4
+ version: 3.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DigitalOcean API Engineering team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
324
324
  - !ruby/object:Gem::Version
325
325
  version: '0'
326
326
  requirements: []
327
- rubygems_version: 3.0.8
327
+ rubygems_version: 3.2.15
328
328
  signing_key:
329
329
  specification_version: 4
330
330
  summary: Droplet Kit is the official Ruby library for DigitalOcean's API