Skip to content

Commit 455c8ef

Browse files
author
Zuhaib Siddique
committed
Fixed a bad merge
1 parent a493ce0 commit 455c8ef

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

lib/ldclient-rb/config.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ def offline?
145145
#
146146
attr_reader :feature_store
147147

148-
<<<<<<< HEAD
149-
=======
150148

151-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
152149
# The proxy configuration string
153150
#
154151
attr_reader :proxy

lib/ldclient-rb/stream.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,13 @@ def start
2727
return unless @started.make_true
2828

2929
@config.logger.info("[LDClient] Initializing stream connection")
30-
<<<<<<< HEAD
31-
headers =
32-
{
33-
"Authorization" => @sdk_key,
34-
"User-Agent" => "RubyClient/" + LaunchDarkly::VERSION
35-
}
36-
opts = { headers: headers, with_credentials: true, proxy: @config.proxy }
37-
=======
3830

3931
headers =
4032
{
4133
'Authorization' => @sdk_key,
4234
'User-Agent' => 'RubyClient/' + LaunchDarkly::VERSION
4335
}
4436
opts = {:headers => headers, :with_credentials => true, :proxy => @config.proxy}
45-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
4637
@es = Celluloid::EventSource.new(@config.stream_uri + "/flags", opts) do |conn|
4738
conn.on(PUT) { |message| process_message(message, PUT) }
4839
conn.on(PATCH) { |message| process_message(message, PATCH) }

spec/requestor_spec.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,16 @@
88
LaunchDarkly::Requestor.new(
99
"key",
1010
LaunchDarkly::Config.new({
11-
<<<<<<< HEAD
12-
proxy: "http://proxy.com",
13-
base_uri: "http://ld.com"
14-
=======
1511
:proxy => "http://proxy.com",
1612
:base_uri => "http://ld.com"
17-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
1813
})
1914
)
2015
}
2116
it "converts the proxy option" do
2217
faraday = Faraday.new
2318
requestor.instance_variable_set(:@client, faraday)
2419
allow(faraday).to receive(:get) do |*args, &block|
25-
<<<<<<< HEAD
26-
req = double(Faraday::Request, headers: {}, options: Faraday::RequestOptions.new)
27-
=======
2820
req = double(Faraday::Request, :headers => {}, :options => Faraday::RequestOptions.new)
29-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
3021
block.call(req)
3122
expect(args).to eq ['http://ld.com/sdk/latest-flags']
3223
expect(req.options.proxy[:uri]).to eq URI("http://proxy.com")
@@ -41,23 +32,15 @@
4132
LaunchDarkly::Requestor.new(
4233
"key",
4334
LaunchDarkly::Config.new({
44-
<<<<<<< HEAD
45-
base_uri: "http://ld.com"
46-
=======
4735
:base_uri => "http://ld.com"
48-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
4936
})
5037
)
5138
}
5239
it "converts the proxy option" do
5340
faraday = Faraday.new
5441
requestor.instance_variable_set(:@client, faraday)
5542
allow(faraday).to receive(:get) do |*args, &block|
56-
<<<<<<< HEAD
57-
req = double(Faraday::Request, headers: {}, options: Faraday::RequestOptions.new)
58-
=======
5943
req = double(Faraday::Request, :headers => {}, :options => Faraday::RequestOptions.new)
60-
>>>>>>> ba355ed1fc08c6162e2335f60480c0d658b04964
6144
block.call(req)
6245
expect(args).to eq ['http://ld.com/sdk/latest-flags']
6346
expect(req.options.proxy).to eq nil

0 commit comments

Comments
 (0)