convoy.rb 0.1.1 → 0.1.5
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/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/lib/convoy/api_operations/get.rb +2 -4
- data/lib/convoy/api_operations/list.rb +2 -4
- data/lib/convoy/api_operations/request.rb +2 -2
- data/lib/convoy/convoy_configuration.rb +2 -0
- data/lib/convoy/resources/api_key.rb +4 -0
- data/lib/convoy/version.rb +1 -1
- data/lib/convoy.rb +1 -0
- 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: dd74241e0bba0e1feb0eb7a7768fa83f6b9f419694764bb3c933297be62e9c01
|
4
|
+
data.tar.gz: 6f5f5439e772353f3c3df9b9c65e3b53b11f5413bdd236595630a109a4d7e61a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 502412c5ce92b81542ba084499f32f2b1500803f2eb356de09927e42e5cbe5dfd8dd70df8191746f1007c10061ed9247e8aa4e62d6456886c19058aeebe6fff0
|
7
|
+
data.tar.gz: 9889e48b6910a8fdf4e1c3389f7319a77b22e57c1177dafeae5a2892fabe0ac032bdf9fb728d4ea18be41bd63c91bd5317dffe4ac8345a810647f65fd42c636d
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -43,13 +43,13 @@ module Convoy
|
|
43
43
|
client.continue_timeout = 10
|
44
44
|
client.ssl_timeout = 10
|
45
45
|
|
46
|
-
|
47
|
-
client.set_debug_output $stderr
|
46
|
+
client.set_debug_output $stderr if config.debug
|
48
47
|
|
49
48
|
# Make request.
|
50
49
|
http_response = client.request(request)
|
51
50
|
@response = JSON.parse(http_response.body)
|
52
51
|
|
52
|
+
self
|
53
53
|
# TODO: Perform err checks.
|
54
54
|
end
|
55
55
|
end
|
@@ -2,6 +2,7 @@ module Convoy
|
|
2
2
|
class ConvoyConfiguration
|
3
3
|
|
4
4
|
attr_accessor :ssl
|
5
|
+
attr_accessor :debug
|
5
6
|
attr_accessor :username
|
6
7
|
attr_accessor :password
|
7
8
|
attr_accessor :base_uri
|
@@ -13,6 +14,7 @@ module Convoy
|
|
13
14
|
@base_uri = "https://cloud.getconvoy.io"
|
14
15
|
@path_version = "/v1"
|
15
16
|
@ssl = true
|
17
|
+
@debug = false
|
16
18
|
end
|
17
19
|
|
18
20
|
end
|
data/lib/convoy/version.rb
CHANGED
data/lib/convoy.rb
CHANGED
@@ -21,6 +21,7 @@ module Convoy
|
|
21
21
|
|
22
22
|
# User configurable options
|
23
23
|
def_delegators :@config, :ssl, :ssl=
|
24
|
+
def_delegators :@config, :debug, :debug=
|
24
25
|
def_delegators :@config, :username, :username=
|
25
26
|
def_delegators :@config, :password, :password=
|
26
27
|
def_delegators :@config, :base_uri, :base_uri=
|
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.5
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|