convoy.rb 0.1.4 → 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/lib/convoy/api_operations/request.rb +1 -2
- data/lib/convoy/convoy_configuration.rb +2 -0
- data/lib/convoy/version.rb +1 -1
- data/lib/convoy.rb +1 -0
- metadata +1 -1
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
|
|
@@ -43,8 +43,7 @@ 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)
|
|
@@ -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=
|