restful_resource 1.4.3 → 1.5.0

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: 56a70ef576d82b815645f5293fc6fcac6aaa2de1
4
- data.tar.gz: 4d4cb903d304ab10a2cca3f803ad51700719db85
3
+ metadata.gz: b042ec375a2984815010c485cbef4add8802679b
4
+ data.tar.gz: 2e157f25500fbec1e5f1efc95117d2cabed9b718
5
5
  SHA512:
6
- metadata.gz: 28161659ff5b9b9b02c2393ed01736de593bfd63b153c49b076394ac2e0325291d0f774bc5040b46221d374f5c8edc70d4afb9629653116848dc30b632403bd6
7
- data.tar.gz: f8e5441a5166cfe4950c17be4cf06898f5aaed831eef7db87b5efc6a724570bcf5ea0af3d58bf976ffd16d9310ad94a565f93a6a7c1f99cfebe5b9d52d654041
6
+ metadata.gz: ca46a2ac25d31c27ec7c5993a068d3e6db952e4d0eccf0e8a50ca51dd383ab3d28feafde047d8770499dfeec89612894029dfc0134506ebd18b65f6a6a2a1769
7
+ data.tar.gz: 64c0dad6210f0729ae0e5603a78f187d2b697af52337074de47942c81ddc823ab734582249db2abe699e41ac73dcbf39e733dd0bcc78807843605866c1579e5d
@@ -106,7 +106,7 @@ module RestfulResource
106
106
  cache_instrument_name: nil)
107
107
 
108
108
  @connection = Faraday.new do |b|
109
- b.request :url_encoded
109
+ b.request :json
110
110
  b.response :raise_error
111
111
 
112
112
  if logger
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = '1.4.3'
2
+ VERSION = '1.5.0'
3
3
  end
@@ -25,7 +25,7 @@ describe RestfulResource::HttpClient do
25
25
  end
26
26
 
27
27
  it 'url_encodes requests' do
28
- expect(middleware).to include Faraday::Request::UrlEncoded
28
+ expect(middleware).to include FaradayMiddleware::EncodeJson
29
29
  end
30
30
 
31
31
  it 'raises on any error responses' do
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: 1.4.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Santoro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-17 00:00:00.000000000 Z
12
+ date: 2017-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler