rack-action 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/action.rb +2 -2
- data/rack-action.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74a9bc8e160da02a0c53074936764abea3aced77
|
4
|
+
data.tar.gz: 42e75bc860a854914a38d83ae4c454afec68f523
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af7fd47ad7dcf3a15edb51fa13a29430257aa5e654e58e61739ff43b9e84fcd782760df3ab61519ea00e6e7ee57ad961ca0d4eee08b2ddb76b193e770d5d597b
|
7
|
+
data.tar.gz: 89a5763a701c7e342f5f7c07976d40a51eb67c031a8cc8d5adeac29aa4946fc7334071cdec3ad22f4ff094627ecc466a054bfa34c26afe7afa4c67b4d921dd42
|
data/lib/rack/action.rb
CHANGED
@@ -5,7 +5,7 @@ require 'rack/filters'
|
|
5
5
|
|
6
6
|
module Rack
|
7
7
|
class Action
|
8
|
-
VERSION = '0.5.
|
8
|
+
VERSION = '0.5.1'
|
9
9
|
|
10
10
|
extend Filters
|
11
11
|
|
@@ -54,7 +54,7 @@ module Rack
|
|
54
54
|
if request.content_type.to_s.include?(APPLICATION_JSON)
|
55
55
|
body = env[RACK_INPUT].read
|
56
56
|
env[RACK_INPUT].rewind
|
57
|
-
p.merge!(self.class.json_serializer.load(body))
|
57
|
+
p.merge!(self.class.json_serializer.load(body)) if body.present?
|
58
58
|
end
|
59
59
|
p.respond_to?(:with_indifferent_access) ? p.with_indifferent_access : p
|
60
60
|
end
|
data/rack-action.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-action
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|