xendit_api 0.1.0 → 0.2.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: 9f4a60e44e97ac8c8e3f299f7988a8e746b86cd7
4
- data.tar.gz: 910e601f9a1516d56e7f188439e9fed32aeb37c4
3
+ metadata.gz: 63a2d0539464a61057887bc4a7341bf33eda91f4
4
+ data.tar.gz: 09f7fa06a8f732f55ddde5dabfda8b95a841c64c
5
5
  SHA512:
6
- metadata.gz: 91b15811048589bc8cbc0cad9bb4746f1a28fd4339bbe247038d65d8059a58617d57c5dc2aa60babfcf8a9423b89c0778f953e81ddd12eb266bf361c86b49b27
7
- data.tar.gz: 1a28da2f8673a7de68d2ffda776393946469179fd1ad9015dc8ce95a425ff744dc4dd8101ac6693a7fa21a049b1bd14b014d3785b3d3a2ea470e15ba268a3952
6
+ metadata.gz: 0472cb2f05ca5a44ef10dc8b302bfddb76189f722565865fd07ac0f5109dd1e2408f3db9d6b546f2c8b810d7fba3b8b97496160e82459cb0f6f0a22867102028
7
+ data.tar.gz: 26a485809e494a38cbd25790c34d5276c4f80f86219bbe700a3490413f3f6f90abb4221d9bb8c266fd636c520dffd8b0c653f6642cc4a3e38d2578fd0ea7bc12
@@ -166,9 +166,10 @@ module XenditApi
166
166
  def setup_connection
167
167
  # start setting up connections
168
168
  @connection = Faraday.new(url: XenditApi::BASE_URL) do |faraday|
169
+ faraday.use FaradayMiddleware::RaiseHttpException
169
170
  faraday.response :logger # log requests to STDOUT
171
+ faraday.request :url_encoded
170
172
  faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
171
- faraday.use FaradayMiddleware::RaiseHttpException
172
173
  end
173
174
 
174
175
  @connection.authorization(:Basic, @token)
@@ -1,3 +1,3 @@
1
1
  module XenditApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xendit_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galih Muhammad
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-02 00:00:00.000000000 Z
11
+ date: 2017-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: model_attribute
@@ -153,8 +153,7 @@ dependencies:
153
153
  description: Just simple and easy to use wrapper for Xendit API in ruby
154
154
  email:
155
155
  - galih0muhammad@gmail.com
156
- executables:
157
- - xendit_api
156
+ executables: []
158
157
  extensions: []
159
158
  extra_rdoc_files: []
160
159
  files:
@@ -167,7 +166,6 @@ files:
167
166
  - Rakefile
168
167
  - bin/console
169
168
  - bin/setup
170
- - exe/xendit_api
171
169
  - lib/faraday_middleware/raise_http_exception.rb
172
170
  - lib/xendit_api.rb
173
171
  - lib/xendit_api/client.rb