rack-action 0.4.0 → 0.4.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: 796671ba97fa3e73e6479c1d2a3d7f59414f9349
|
4
|
+
data.tar.gz: 5c8327c910ea1697e279e22bb650001cf3b0339a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4362096b699d0fc25d1c9786c20cd3d009417df517862de21fea39497c7b5bf5e20d090244b7984e1b82ac916cd7930d9f6831552bb8aaffba21ee456c98be01
|
7
|
+
data.tar.gz: ecb490f6b0733ed85e0941016c1cbf39b76bd7234ce7e82b6100887be0c99b4aed27388ac723c3cab04ac0e720aea4000c9d9c28a99be742c60a714fd39b88e9
|
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.4.
|
8
|
+
VERSION = '0.4.1'
|
9
9
|
|
10
10
|
extend Filters
|
11
11
|
|
@@ -51,7 +51,7 @@ module Rack
|
|
51
51
|
def params
|
52
52
|
@params ||= begin
|
53
53
|
p = request.params.merge(env[RACK_ROUTE_PARAMS] || {})
|
54
|
-
if request.content_type
|
54
|
+
if request.content_type.to_s.include?(APPLICATION_JSON)
|
55
55
|
body = env[RACK_INPUT].read
|
56
56
|
env[RACK_INPUT].rewind
|
57
57
|
p.merge!(JSON.parse(body))
|
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.4.
|
4
|
+
version: 0.4.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-07-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|