convoy.rb 0.1.5 → 0.1.6
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/lib/convoy/resources/api_key.rb +20 -0
- data/lib/convoy/resources/application.rb +0 -1
- data/lib/convoy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 679511eb7f64dc39761bb262a3f907a542bdfe389f66ec85dd57469a45187262
|
4
|
+
data.tar.gz: 321fa270104593343a6f86ea6ac0ba06790c8abdafa47a65736824b4726814dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad8def0b41a90ad1197b24302da1076c05c3565cd15aa9c0955fba9c8d9237c0b4bd4c4865411290c8c0163d8a4cf8fae324c638effb2cebdc6c7c3d2f23e70
|
7
|
+
data.tar.gz: 320cd16a9063ba64763525484596b7fce8970827b6cc13a99faa0f6cbd8e353735a9df756d5e02e7171e0a4ce0b264096e6b2cdd47f625ea2d6f2ac40a4bd97f
|
@@ -1,4 +1,24 @@
|
|
1
1
|
module Convoy
|
2
2
|
class ApiKey < ApiResource
|
3
|
+
include ApiOperations::Get
|
4
|
+
include ApiOperations::Save
|
5
|
+
include ApiOperations::Delete
|
6
|
+
include ApiOperations::List
|
7
|
+
extend ApiOperations::Create
|
8
|
+
|
9
|
+
def initialize(id = nil, config = Convoy.config, **kwargs)
|
10
|
+
@id = id
|
11
|
+
@data = kwargs[:data].nil? ? {} : kwargs[:data]
|
12
|
+
@params = kwargs[:params].nil? ? {} : kwargs[:params]
|
13
|
+
@config = config
|
14
|
+
end
|
15
|
+
|
16
|
+
def resource_url
|
17
|
+
if @id.nil?
|
18
|
+
return "#{@config.base_uri}/#{@config.path_version}/security/keys"
|
19
|
+
end
|
20
|
+
|
21
|
+
"#{@config.base_uri}/#{@config.path_version}/security/keys" + "/#{@id}"
|
22
|
+
end
|
3
23
|
end
|
4
24
|
end
|
data/lib/convoy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convoy.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subomi Oluwalana
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|