civo 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/base.rb +7 -0
- data/lib/civo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2492283533a40d90ca84446d82d9207b0680d887
|
4
|
+
data.tar.gz: ac0eae7be1f6e032e0dcc2e991e5da929237701f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22aac6d0692ff5c2537cdce7db4bfd472afbdada86e2a94a245073557d6123c8dacc62b72609aaf4eb2c973f67279db5d3978f67952fccdee8f25216e25d44b4
|
7
|
+
data.tar.gz: c5e88f87f48b05ec9515006ae0261df38474f7782d562d54b5b93e34a8569e77866f6f855b13800486411d6205a7b038294f849dfd331faf0d230bd0a199e1b6
|
data/app/models/civo/base.rb
CHANGED
@@ -2,6 +2,7 @@ module Civo
|
|
2
2
|
class Base < ::Flexirest::Base
|
3
3
|
verbose!
|
4
4
|
before_request :authorization_token
|
5
|
+
before_request :set_request_id
|
5
6
|
before_request :administration_set_user
|
6
7
|
|
7
8
|
private
|
@@ -26,6 +27,12 @@ module Civo
|
|
26
27
|
end
|
27
28
|
end
|
28
29
|
|
30
|
+
def set_request_id
|
31
|
+
if const_defined?("Current") && Current.request_id
|
32
|
+
request.headers["X-CivoCom-RequestID"] = Current.request_id
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
29
36
|
end
|
30
37
|
end
|
31
38
|
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|