api_client_base 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/api_client_base/response.rb +5 -0
- data/lib/api_client_base/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3f8720f9cc4a7e78d381e5d5daf8f09ba26337a10d774d79f5999ada7f0c6f3
|
4
|
+
data.tar.gz: 51720f6e8feceded8672331f3cd353869c9c82f1e5e1cab91a9c94ccc428f35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfe2012281611438c8fd924a8777e6262d9259842fe49920c9dacde9d544e9278bc22b27bd8bc01bb6462cf7bd1eee3c3d862bd5bba6763d0570407160a53b41
|
7
|
+
data.tar.gz: ff934bd6e815e670530926337c83e764ab9f27631f2a4df3b07222c1bf65f05516a51aaf603ab6b0bfa52849f06ea0b1f37c20d353bb138712652ac4c68c6549
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [1.7.0] - 2020-04-15
|
8
|
+
### Added
|
9
|
+
- Add `Response#body` which is `raw_response`'s `body`
|
10
|
+
|
7
11
|
## [1.6.0] - 2020-04-09
|
8
12
|
### Added
|
9
13
|
- Move http-related code to Request#run. This is the one that should be overridden, instead of call, since `#call` calls other methods like `before_call`
|
@@ -25,6 +25,7 @@ module APIClientBase
|
|
25
25
|
attribute :raw_response, Object
|
26
26
|
attribute :success, self::Boolean, lazy: true, default: :default_success
|
27
27
|
attribute :code, Integer, lazy: true, default: :default_code
|
28
|
+
attribute :body, String, lazy: true, default: :default_body
|
28
29
|
end
|
29
30
|
|
30
31
|
def default_success
|
@@ -35,5 +36,9 @@ module APIClientBase
|
|
35
36
|
raw_response.code
|
36
37
|
end
|
37
38
|
|
39
|
+
def default_body
|
40
|
+
raw_response.body
|
41
|
+
end
|
42
|
+
|
38
43
|
end
|
39
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_client_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|