stacker_bee 2.1.0.pre182 → 2.1.0.pre183

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2UwMzA1YjliY2I4MWI4YzkxOTNkMWI0MzcyYjljMTZjNWU1NjNlMA==
4
+ OTBmMjY5ZmZhNWIyZWI4ODUwMzU0ZjE3ZDVlYjRlYzE2ZWY4ODY1MQ==
5
5
  data.tar.gz: !binary |-
6
- NDg2YzZlZDVjYzc4YWIxYTMzY2M3MmMxYjViODRjNTkwYzQ0NWM0OQ==
6
+ YmEzODQ2OGZiZGQzMjRkOGFiYmIzNmI4YmJlNmY0NzNmMmEyNTljNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjczNGY4NjU3N2JjY2M3OWZmYWJhOGE1ODIzMzM4ZDhiNGVjMTZiZGQxNjNh
10
- ZjBhNmQzYTJlOGNkNTEyY2RiZTZjNjJkOGVlNjFmZDVkYzE3MjJjZTJhZjg1
11
- ZTNmNTMyM2RmZWYyZTQ4ZmUyMGI2ZmVkZTFiNDFlZjk3ZDdjMTk=
9
+ OTRlYjQzN2VhYjEwN2I5MGMwODA5MzViOWUxMmE5YWMyMTRlZGQwNjFmODcy
10
+ MDkwZGEwNmY0ZGU2ZDAyNmQ2MzNlODUwYTkxMzlhMzUyNzRmNjI5MWM0NTEy
11
+ YWE3ZmVlNTdjNmY2ZTBiNTExY2JjZjIwNjEzNDVhZmYyMzg5NjA=
12
12
  data.tar.gz: !binary |-
13
- ZmFjZGMzYzY0NDRlYzhhMDhjYzUzOGNkMTk4NjMyNTFjZTRjY2IzNzEyZjQ5
14
- ZmEyOTZiODY2Mjg0ODc2OTkwMzYzYjQ2MTU2ZWQzOTEzMjNkOGU1MTUyNGE3
15
- YzhjMDA4ZWFhODVkNjUwN2JjMWM5MzQwNjNmMTRlMzI1OTVlNmM=
13
+ ZjhkMjIyNWU0NGQwN2JmZmVjM2ExZTBlMDEwZmI0ZjNmMTUyNzQ2MDY3MWIw
14
+ OTc5N2M1ZTJmZWNiYTg4YWJiNWYwODVmOGVkNTBiYmU0ZGE4NTgyM2U4NTdl
15
+ NDAzNjY5YjgxMzViMjZkNTVkYzQ4ODA3NzJlMmE0YmM1NTY2Mjc=
@@ -42,7 +42,7 @@ module StackerBee
42
42
  end
43
43
  end
44
44
 
45
- def get(params, path)
45
+ def get(path, params)
46
46
  @faraday.get(path, params)
47
47
  rescue Faraday::Error::ConnectionFailed => error
48
48
  raise ConnectionError,
@@ -3,7 +3,7 @@ module StackerBee
3
3
  class Adapter < Base
4
4
  def call(env)
5
5
  params = env.request.params.to_a.sort
6
- env.raw_response = connection.get(params, env.request.path)
6
+ env.raw_response = connection.get(env.request.path, params)
7
7
  env.response.content_type =
8
8
  env.raw_response.env[:response_headers]["content-type"]
9
9
  env.response.body = env.raw_response.body
@@ -11,7 +11,7 @@ describe StackerBee::Connection do
11
11
  let(:configuration) do
12
12
  double(url: url, secret_key: secret_key, ssl_verify: nil)
13
13
  end
14
- subject(:get) { connection.get query_params, path }
14
+ subject(:get) { connection.get(path, query_params) }
15
15
 
16
16
  before do
17
17
  Faraday.stub(:new) { faraday }
@@ -50,7 +50,7 @@ describe StackerBee::Connection do
50
50
  context "when given a path" do
51
51
  let(:path) { '/baz' }
52
52
  it "makes a request to the correct path" do
53
- expect(faraday).to receive(:get).with(path, query_params)
53
+ expect(faraday).to receive(:get).with(query_params, path)
54
54
  connection.get query_params, path
55
55
  end
56
56
  end
@@ -43,7 +43,7 @@ describe StackerBee::Middleware::Adapter do
43
43
  end
44
44
 
45
45
  it "sorts the paramers" do
46
- connection.should have_received(:get).with([%w(a a), %w(z z)], path)
46
+ connection.should have_received(:get).with(path, [%w(a a), %w(z z)])
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stacker_bee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.pre182
4
+ version: 2.1.0.pre183
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Sterndale