api-blueprint 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/api-blueprint/blueprint.rb +1 -1
- data/lib/api-blueprint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8ac456b41028a9b7d0c1a7e4f8125d7a2cc6947
|
4
|
+
data.tar.gz: e031a66b0a1db862096a3eb5c80e99d1a2602360
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab42038e689e3f2993886773810a9c0fb20a38c64ed02d29f4b6ffae46247d473a564a03dc49f3c1e244ce1318d9862306e4a2f985e2a98cbf80cc1d6bfaa22d
|
7
|
+
data.tar.gz: e03abde4fd703e508841e68926bc0db409580063488f82cc23e407bc3d67b08dc71e9dcb8b6f127f8e170a7ddf300de791f9adf08d8a21e63082c3de35c706a8
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
<p align="center">
|
2
|
+
<img src="https://raw.githubusercontent.com/iZettle/api-blueprint/master/api-blueprint-logo.png" alt="Api Blueprint" width="600">
|
3
|
+
</p>
|
2
4
|
|
3
5
|
ApiBlueprint is a simple wrapper designed to be used in a Rails app for running http requests through Faraday and generating strongly-typed models from the JSON responses.
|
4
6
|
|
@@ -80,7 +80,7 @@ module ApiBlueprint
|
|
80
80
|
req.url options[:url]
|
81
81
|
req.headers.merge!({ "Content-Type": "application/json" }.merge(options[:headers]))
|
82
82
|
req.params = options[:params]
|
83
|
-
req.body = options[:body].to_json
|
83
|
+
req.body = options[:body].to_json if options[:body].present?
|
84
84
|
req.options.timeout = timeout.to_i
|
85
85
|
req.options.params_encoder = Faraday::FlatParamsEncoder
|
86
86
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-blueprint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien Timewell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-types
|
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.5.2.2
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: Makes returning objects from api calls a breeze.
|