servme 0.1.0 → 0.1.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: cd06dcf6f7971cbbe2de4f8d22767c70f9c889cb
4
- data.tar.gz: 08db2e4caf67056ece0230f09fa6ec7925a02ad0
3
+ metadata.gz: 1d935b7679782e29a83c4f21bbe7e378247a4ccf
4
+ data.tar.gz: f19b3ecc4294ddd56e56ea6872f4e5447a7db798
5
5
  SHA512:
6
- metadata.gz: 01514af01b6918c3143e8e0bdcbb5a28764b02290a45f6e92606402249bc351613db6e50995ed175248aed77eb3c1799e538acb5762f17103b7e33e782c29e7a
7
- data.tar.gz: 3a63f76ce4c0e22ebcbe0dcd80da943cc01a43d2e4754a9ae29c03a44815626cb8823a3f5087e889912c17be05efeb6e20a8931754a7fd7d77e9dc1f758676a1
6
+ metadata.gz: 596ba826c0b4f03f0ae2d5005e501aac204c39679e6d729756da4cad6e9fbd6478c32da30437dc2e00f3423cc9b4510b85a4fb8c5cfe055f48011e40139b86e3
7
+ data.tar.gz: d0c2063852e880e307ec2d3433f424202758823297d6df8dd725fc31baf2704bf924542aa7f323201e280bdaae1a7565aa3b85fb1bcae3fa48022c2c8af88793
@@ -65,7 +65,8 @@ module Servme
65
65
  private
66
66
 
67
67
  def process_json_request(request)
68
- if request.params && request.params.empty? && request.env && request.env['CONTENT_TYPE'] =~ /application\/json/
68
+ request_params = request.params rescue nil
69
+ if request_params && request_params.empty? && request.env && request.env['CONTENT_TYPE'] =~ /application\/json/
69
70
  parsed_json = JSON.parse(request.body.read)
70
71
  parsed_json.each do |k,v|
71
72
  request.params[k] = v
@@ -1,3 +1,3 @@
1
1
  module Servme
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls