flexirest 1.9.13 → 1.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d22b9c2c356eec70454c6919ec81ac6fc37a42e500c95c2f40337ba3e40561a6
4
- data.tar.gz: eaf44cd2c1e6378fc140beec5b38793880ff34b18ea49b57146e038dfe54cc01
3
+ metadata.gz: e675234b5624a923906ecea0ed2f1cdf47230e2bef5f35fbde9731da4bdae062
4
+ data.tar.gz: '0237757812519f5b82eb311608b00414cdef1d935feecb462c330e998f960158'
5
5
  SHA512:
6
- metadata.gz: 33fc03579ec1bdd3a2af9542209efced52ab03294f06e36c9b19e0dc526b9f3982befba154a2621c318ecd9d70dda3b31b099b0bd3a13a11748b4678c33d86b1
7
- data.tar.gz: aa5c88116eebc320d09b03932660a2299425647457758bcd080d842a2c895ed2584c2c068e1d9de0fcbe474fe76da41371b5631ce36022b8e76cd4a2e6aa6e87
6
+ metadata.gz: 9ca1b058118cd12b4ba659332acb5b8cde5e476c0f786b46d803f385c8b59f8661bf65352acca1c1f741dfa1872a510244f704815bb87fb92492c8618d64c027
7
+ data.tar.gz: 7ae4402501167aa8a40c02bf446f5267106d9a6b5e50a9e89bfb68798e8ff5b4f20fe2acc9bd9f80cd2a5372a49f9db388fd94bfe90af516a1643c1f97d55749
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.14
4
+
5
+ Bugfix:
6
+
7
+ - Remove deprecation warning for `URI.escape` on Ruby 2.7.x.
8
+
3
9
  ## 1.9.13
4
10
 
5
11
  Change:
@@ -380,7 +380,7 @@ module Flexirest
380
380
  if target.to_s.blank?
381
381
  missing << token
382
382
  end
383
- @url.gsub!(":#{token}", URI.escape(target.to_s).gsub("/", "%2F").gsub("+", "%2B"))
383
+ @url.gsub!(":#{token}", URI.encode_www_form_component(target.to_s))
384
384
  end
385
385
  end
386
386
 
@@ -1,3 +1,3 @@
1
1
  module Flexirest
2
- VERSION = "1.9.13"
2
+ VERSION = "1.9.14"
3
3
  end
@@ -344,7 +344,7 @@ describe Flexirest::Request do
344
344
  end
345
345
 
346
346
  it "should pass URL-encode URL parameters" do
347
- expect_any_instance_of(Flexirest::Connection).to receive(:get).with("/foo%20bar", an_instance_of(Hash)).and_return(::FaradayResponseMock.new(OpenStruct.new(body:'{"result":true}', response_headers:{})))
347
+ expect_any_instance_of(Flexirest::Connection).to receive(:get).with("/foo+bar", an_instance_of(Hash)).and_return(::FaradayResponseMock.new(OpenStruct.new(body:'{"result":true}', response_headers:{})))
348
348
  ExampleClient.find id:"foo bar"
349
349
  end
350
350
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexirest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.13
4
+ version: 1.9.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler