restful_resource 0.8.15 → 0.8.16

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: 836fad61a978a7aab44cad74ebc3fb703eaa3666
4
- data.tar.gz: 24001a8649e4360aa81733b70fd511c5888353c1
3
+ metadata.gz: 6acf45b1491839d7ea62730ed572df39e25e6d6f
4
+ data.tar.gz: 2c359ee84cbb2646ff453c94bf6c689956e7c5a7
5
5
  SHA512:
6
- metadata.gz: caf5d497d998004bb06ffca24978b7f52d6c8cc8cd3233b1da6ca82049d19f0c3fe090622547cac2827ab76d93bb3378d713892e8aca7a79d7eec9de7157e576
7
- data.tar.gz: 6d5ea9c60f70350a31eebba66778d9b3777c8e31cddab607549abba0f77df1e6a892a47bff118e79d3524720dd1f13a128840c6b067fda43ef4dfc108be8710c
6
+ metadata.gz: 7ca11f20e9f6a2a20de43cf5bbccd852cd1c1cde3afa4901ee16d9f33e68ec0e8af9b8d6c8139d9e4668f1e17eb22ff82e9212b307813adf91b7ab7833d9689f
7
+ data.tar.gz: 8271057f358d3abdfb37ade2c86f19ecbf14b39fe40fa8ca802dfcbfcb13e850b2861af3e66a84e5ab13ee6e25dd985453ad14b02163ddb80d53ddf1c44abd21
@@ -110,7 +110,7 @@ module RestfulResource
110
110
  if value.nil?
111
111
  missing_params << key
112
112
  else
113
- url = url.gsub(':'+key, URI.escape(value.to_s))
113
+ url = url.gsub(':'+key, CGI.escape(value.to_s))
114
114
  end
115
115
  end
116
116
 
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = "0.8.15"
2
+ VERSION = "0.8.16"
3
3
  end
@@ -39,9 +39,9 @@ describe RestfulResource::Base do
39
39
 
40
40
  it "should encode parameters correctly in the url" do
41
41
  expected_response = RestfulResource::Response.new(body: {name: 'Golf', price: 15000}.to_json)
42
- expect_get("http://api.carwow.co.uk/groups/15/makes/Land%20Rover/models/Golf", expected_response)
42
+ expect_get("http://api.carwow.co.uk/groups/15/makes/Land+Rover%3Fx%3D0.123/models/Golf", expected_response)
43
43
 
44
- object = Model.find('Golf', make_slug: 'Land Rover', group_id: 15)
44
+ object = Model.find('Golf', make_slug: 'Land Rover?x=0.123', group_id: 15)
45
45
  end
46
46
  end
47
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.15
4
+ version: 0.8.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Santoro