barbeque_client 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -0
- data/lib/barbeque_client.rb +1 -0
- data/lib/barbeque_client/client.rb +5 -1
- data/lib/barbeque_client/configuration.rb +1 -0
- data/lib/barbeque_client/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: edb7a1b11268527d340938a095aa426076e89248e6712867ea325f3b1681aceb
|
4
|
+
data.tar.gz: 575564a8108a77b6b1b0a8c5e4ac7fd674ade37c5f9e941005ac11c8b4527e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55bd4bffce22e517d19a8ec3b21dd0f111914747850c978285d96a2ec4c6714c57b8e15ce94146fce9bd36296b785b8fe743ed28e4f670ef6ca5e1fd21c69c52
|
7
|
+
data.tar.gz: f092c10be65a237383693746ac04621f6973e4bb67b508e6e8effa0811cf5bae5075a6ec0392b165c00f95a3c6be67cd5f84bb4be530f0e1dde8fcf45bc2c8b1
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/barbeque_client.rb
CHANGED
@@ -3,11 +3,12 @@ require 'json'
|
|
3
3
|
|
4
4
|
module BarbequeClient
|
5
5
|
class Client
|
6
|
-
def initialize(application:, default_queue:, endpoint:, tracing: {})
|
6
|
+
def initialize(application:, default_queue:, endpoint:, tracing: {}, headers: nil)
|
7
7
|
@application = application
|
8
8
|
@default_queue = default_queue
|
9
9
|
@endpoint = endpoint
|
10
10
|
@tracing = tracing || {}
|
11
|
+
@headers = headers
|
11
12
|
end
|
12
13
|
|
13
14
|
# @param [String] job - Job name to enqueue.
|
@@ -59,6 +60,9 @@ module BarbequeClient
|
|
59
60
|
def garage_client_option
|
60
61
|
option = { endpoint: @endpoint, path_prefix: '/' }
|
61
62
|
option[:tracing] = @tracing if @tracing[:tracer]
|
63
|
+
if @headers
|
64
|
+
option[:headers] = @headers
|
65
|
+
end
|
62
66
|
option
|
63
67
|
end
|
64
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barbeque_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takashi Kokubun
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: garage_client
|