flexirest 1.3.21 → 1.3.22

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: 7b44e78f8e0339a35faa3fb279633ed5ef81f7ae
4
- data.tar.gz: d83135c90a5d429189f808f13ead3e729ec4bd65
3
+ metadata.gz: 29350285d51cfadb0d0bb29a4ad1478a3ed9d0b3
4
+ data.tar.gz: be31ecfbb8f375e175eb62f6357dc6e2d67b3851
5
5
  SHA512:
6
- metadata.gz: c3b04f2aaa9fe1f67601ab242374d6c2f142a859bac9185bfa46857947467edd1379a63be9896dfccf7353479f4015eb17a3b92f080e9eedd44b74ed7378a6bb
7
- data.tar.gz: f2dc4c231338f6bfa6c8b5323c09f4226c5fd4cf79564cce936186c8f3b07de6f89ab2041b27b03561ffb4074ac87dddf3e95114930e75b314ec1a0190ac81db
6
+ metadata.gz: 90d4c4027ae57dcdf6bac75d9f00284404bd4654aebc00883f4f25aa99a9dc88e72b79b1eb5248206ae02c3b54630d9522c5cea811383109a4558633f1619e32
7
+ data.tar.gz: 223e2016d360ee3fd7ef70aa7e648c7d7c4a2bc5f33dd3fcf35354c1dae40cd3c2a6f18033690aaf19dd0d52684da238c688a08aec138d863058fb11e7a30ddb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.22
4
+
5
+ Bugfix:
6
+
7
+ - Broke a test in v1.3.21 (according to Travis) which was passing locally, updated all my gems and then it broke locally, so reverted the test.
8
+
3
9
  ## 1.3.21
4
10
 
5
11
  Feature:
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.3.21"
2
+ VERSION = "1.3.22"
3
3
  end
@@ -194,7 +194,7 @@ describe Flexirest::Base do
194
194
  expect(ret.name).to eq("Johnny")
195
195
  end
196
196
 
197
- it "can force the URL from a callback without it being passed through URL replacement" do
197
+ it "can force the URL from a filter without it being passed through URL replacement" do
198
198
  expect_any_instance_of(Flexirest::Connection).to receive(:get).with("/hal_test/1", instance_of(Hash)).and_return(::FaradayResponseMock.new(OpenStruct.new(body:"{\"result\":true}", status:200, response_headers:{})))
199
199
  expect_any_instance_of(Flexirest::Connection).to receive(:get).with("/this/is/a/test", instance_of(Hash)).and_return(::FaradayResponseMock.new(OpenStruct.new(body:"{\"result\":true}", status:200, response_headers:{})))
200
200
  expect(ProxyClientExample.hal_test(id:1).test.result).to eq(true)
@@ -203,8 +203,10 @@ describe Flexirest::Base do
203
203
  it "properly passes basic HTTP auth credentials" do
204
204
  host, credentials, url_path = 'www.example.com', 'user:pass', '/getAll?id=1'
205
205
  ProxyClientExample.base_url "http://#{credentials}@#{host}"
206
- stub_request(:get, "http://#{credentials}@#{host}#{url_path}")
206
+ stub_request(:get, "#{host}#{url_path}")
207
207
  ProxyClientExample.all(id:1)
208
- expect(a_request(:get, "#{credentials}@#{host}#{url_path}")).to have_been_made
208
+ expect(a_request(:get, "#{host}#{url_path}").with(headers: {
209
+ 'Authorization'=>"Basic #{Base64.strict_encode64(credentials)}"
210
+ })).to have_been_made
209
211
  end
210
212
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.21
4
+ version: 1.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries