api-blueprint 0.13.0 → 0.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b8907a0437337cabeb4ff80d6c2c5a4a84c03c4
4
- data.tar.gz: f48ae96e82bb0b1b320b1349989be44def9205f2
3
+ metadata.gz: e8ac456b41028a9b7d0c1a7e4f8125d7a2cc6947
4
+ data.tar.gz: e031a66b0a1db862096a3eb5c80e99d1a2602360
5
5
  SHA512:
6
- metadata.gz: d7aed4b1e6b51022779dd93271d9809e8bf7c5a453d3f581f0fa91c16e2f32954bebea7f7213a88dc33ce2185ba6fbf35059a3d17cefe273405e9a544a1c1c6c
7
- data.tar.gz: 8dad24c99acf6da8051252fdffd9bc818e1aa90fba8f384b4fb8ed74640154d612d1e2e1920731a01731a91622ea36b5e0e048252a53a88cdcb88c0f3137f6fc
6
+ metadata.gz: ab42038e689e3f2993886773810a9c0fb20a38c64ed02d29f4b6ffae46247d473a564a03dc49f3c1e244ce1318d9862306e4a2f985e2a98cbf80cc1d6bfaa22d
7
+ data.tar.gz: e03abde4fd703e508841e68926bc0db409580063488f82cc23e407bc3d67b08dc71e9dcb8b6f127f8e170a7ddf300de791f9adf08d8a21e63082c3de35c706a8
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # ApiBlueprint
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
@@ -1,3 +1,3 @@
1
1
  module ApiBlueprint
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  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.13.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: 2018-06-20 00:00:00.000000000 Z
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.6.14
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.