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 +4 -4
- data/README.md +1 -1
- data/lib/droplet_kit/resources/project_resource.rb +1 -1
- data/lib/droplet_kit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42378c9ab960545fbf4331ae369a40dbc453d0df11f0ea001f4ce43eedc07bf5
|
4
|
+
data.tar.gz: 998a5544e12c192fcd41e2d16bd87690bdf09771d9eb34601a3e5e4793ccb8f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a18b104aa9c5929ed42fee92a4901773aab214a6df3161bba3d141e421a51e97b84beebbc63eed9d4309bcb27f699a1b73b0a472ba8cf64046e32e4d7da01174
|
7
|
+
data.tar.gz: 777d236b77ddde9f77d91259bf8f03a1ac09ffd2114471b6c44f4f300dfd10b16b579d77293c5340c8130253e66e82e10ec4686f4b5bd75243fe65099600c199
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# DropletKit
|
2
|
-
[![Build Status](https://
|
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.
|
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}")
|
data/lib/droplet_kit/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|