esplanade 1.0.0 → 1.0.1

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: 136faea6ccc9fb08600dfb9c8d597172bb72e270
4
- data.tar.gz: 92d86b6dcf3cc3d8d7ad3622bfb99b0c45aabf07
3
+ metadata.gz: e0fb54b1b4a7d2189bc3a7aaf773e8da13f480e8
4
+ data.tar.gz: 6e3813cd02d74da271545f342438111c84d6887d
5
5
  SHA512:
6
- metadata.gz: 1dfbc8ba44102440c149a1d84be28151fe3ed5a918b7d43233ee58a6cb9d7c2713219571f9555d6e5b577184673827b1e7b109299ab5104cb4abefbd997cd754
7
- data.tar.gz: ee811221aa1764c746afead9aa85365b035dcc1eecf5f768a27dd503f9acc9c200bccded11c7d7c168a7e482d5aaedbf15ee74ea16273151622565a51b46ae78
6
+ metadata.gz: dbb379c57687c884db8812f37229d492d2fd8cd8cfe9776af705f0e940e88aa0217ab069fbd9958d6e0e8b557956dfbabc79ac7a736ade498b6b7f1878f1541a
7
+ data.tar.gz: 5a5b32ea4d365ebe4e304ac588633a40ef973950028dbc958d4769688a9c4662aa5e26e03a4e84e710cca68d7e71e5dd36e21115330cbc2724ae75f224029dd6
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # Change log
2
+
3
+ ### 1.0.1 - 2017-10-09
4
+
5
+ * bug fixes
6
+ * allow request body to be nil
data/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Esplanade
2
2
 
3
+ <a href="https://funbox.ru">
4
+ <img src="https://funbox.ru/badges/sponsored_by_funbox.svg" alt="Sponsored by FunBox" width=250 />
5
+ </a>
6
+
7
+ [![Gem Version](https://badge.fury.io/rb/esplanade.svg)](https://badge.fury.io/rb/esplanade)
3
8
  [![Build Status](https://travis-ci.org/funbox/esplanade.svg?branch=master)](https://travis-ci.org/funbox/esplanade)
4
9
 
5
10
  This gem will help you validation and sinhronize your API in strict accordance to the documentation in
@@ -14,7 +14,11 @@ module Esplanade
14
14
  end
15
15
 
16
16
  def to_hash
17
- @hash ||= MultiJson.load(to_string)
17
+ @hash ||= if to_string.nil?
18
+ {}
19
+ else
20
+ MultiJson.load(to_string)
21
+ end
18
22
  rescue MultiJson::ParseError
19
23
  raise BodyIsNotJson, message
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module Esplanade
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esplanade
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-06 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -189,6 +189,7 @@ files:
189
189
  - ".rubocop.yml"
190
190
  - ".ruby-version"
191
191
  - ".travis.yml"
192
+ - CHANGELOG.md
192
193
  - CODE_OF_CONDUCT.md
193
194
  - Gemfile
194
195
  - LICENSE.txt