xendit_api 0.1.0 → 0.2.0
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 +4 -4
- data/lib/xendit_api/client.rb +2 -1
- data/lib/xendit_api/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63a2d0539464a61057887bc4a7341bf33eda91f4
|
|
4
|
+
data.tar.gz: 09f7fa06a8f732f55ddde5dabfda8b95a841c64c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0472cb2f05ca5a44ef10dc8b302bfddb76189f722565865fd07ac0f5109dd1e2408f3db9d6b546f2c8b810d7fba3b8b97496160e82459cb0f6f0a22867102028
|
|
7
|
+
data.tar.gz: 26a485809e494a38cbd25790c34d5276c4f80f86219bbe700a3490413f3f6f90abb4221d9bb8c266fd636c520dffd8b0c653f6642cc4a3e38d2578fd0ea7bc12
|
data/lib/xendit_api/client.rb
CHANGED
|
@@ -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)
|
data/lib/xendit_api/version.rb
CHANGED
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.
|
|
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-
|
|
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
|