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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b5aa0ae3ca786bbf5dcb6a713c0492e11970a18
4
- data.tar.gz: 9d2b70a368d71739e4dd321ff6018e8749640b3e
3
+ metadata.gz: 2492283533a40d90ca84446d82d9207b0680d887
4
+ data.tar.gz: ac0eae7be1f6e032e0dcc2e991e5da929237701f
5
5
  SHA512:
6
- metadata.gz: db02b83e89729f98f7ab11ca8476c7ebdea21dc98f8c3012e175e43f578377516a2a431c614ffcbc85c4d58c04013c4389be227522f585b6c47ab5e32f043566
7
- data.tar.gz: b083b3243fc97805bcf0007017f1a8471dc2e6f0fbbf6a515dfd748b0d02e64e564f247ee25ce5865310e591b7531ad5aa07f4103597eaf77648b216e8132a56
6
+ metadata.gz: 22aac6d0692ff5c2537cdce7db4bfd472afbdada86e2a94a245073557d6123c8dacc62b72609aaf4eb2c973f67279db5d3978f67952fccdee8f25216e25d44b4
7
+ data.tar.gz: c5e88f87f48b05ec9515006ae0261df38474f7782d562d54b5b93e34a8569e77866f6f855b13800486411d6205a7b038294f849dfd331faf0d230bd0a199e1b6
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-03-16 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest