daazweb-api 0.0.11 → 0.0.12

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: 3e14bcf8a7937226c7a9cacb6ab3b43ad68db912e8b21f1fa7758d3d1dc8487b
4
- data.tar.gz: a5dd730997b8cbb7e7b9f8e06ef6e6d30164c33f67edf71f226c86adc2187920
3
+ metadata.gz: f216d209bd28da89db48a3ba5f3c360d59304ed6e2fecea14baec986571dcfa3
4
+ data.tar.gz: 44b7ea42d3eb1270b1afb88e988dc737b8c19c5872fdf6c11c34972cf7e69f94
5
5
  SHA512:
6
- metadata.gz: '098f9f37535afb74c283dcd7432026e24ecd1da2066629ec716a4e6d7ab2c66ac413b2dc74dfc29eebf335a5fb51fe33b7d04b2d753c9164a1e4ebb60b080acb'
7
- data.tar.gz: a4739b53cd346c77f07a267b74b85c45ee93f6a7a4ae3b0333c7eb3ea7c5977b5038f864561db0e05a8e3b785feaff3be48835b538a87585c736236ec8b3e12d
6
+ metadata.gz: f87ab37933f2f9a26ad6e036ff914f779fea888a01e45f187c35446ee574ae3bf0dac2d6727025155d9aadcd9ef3a77d6e6a467a852944645b3ee2f12de49bc6
7
+ data.tar.gz: f0e9aedc9d80815ff58406a3460322bc4f8f2a0c5d6f2c7950b7aedabe3f14e3fd8b04ed49bbb7a224402157c749f99b45b8a0a593d66187c23b51328481a376
@@ -93,11 +93,11 @@ module DaazwebApi
93
93
  if request
94
94
  request.params.merge!(params) if params
95
95
  request.headers = {}
96
- request.headers['Content-Type'] = 'application/json'
96
+ request.headers['Content-Type'] = 'application/x-www-form-urlencoded'
97
97
  request.headers['Authorization'] = "Bearer #{self.access_token}"
98
98
  request.headers['User-Agent'] = "DaazwebApi/#{DaazwebApi::VERSION} Ruby gem"
99
99
  request.headers.merge!(headers) if headers
100
- request.body = MultiJson.dump(body) if body
100
+ request.body = body.try(:to_query)
101
101
  request.options.timeout = self.timeout
102
102
  request.options.open_timeout = self.open_timeout
103
103
  end
@@ -1,3 +1,3 @@
1
1
  module DaazwebApi
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daazweb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Osetrov