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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 621787e5506a3dc0d6b990e929f25a53c28867b4
4
- data.tar.gz: 60972718dea29f5539f3bad1699763be3cab23ba
3
+ metadata.gz: 796671ba97fa3e73e6479c1d2a3d7f59414f9349
4
+ data.tar.gz: 5c8327c910ea1697e279e22bb650001cf3b0339a
5
5
  SHA512:
6
- metadata.gz: 339db39c041d319a81399684d4320693c90fed36e0a9d5eb58800c2a43ce0000e4cd9651ccbc30218cba8112d38162b62f2d50e7b53851b2bd7062998243d4bb
7
- data.tar.gz: 17f8286a43e612c1665675479853bf46cb83cbd71af355a55fad23cd28a848a893589cb71b41e7e05b1f78748bbf83b1c6074b0693dff8f1a89fc303001d167c
6
+ metadata.gz: 4362096b699d0fc25d1c9786c20cd3d009417df517862de21fea39497c7b5bf5e20d090244b7984e1b82ac916cd7930d9f6831552bb8aaffba21ee456c98be01
7
+ data.tar.gz: ecb490f6b0733ed85e0941016c1cbf39b76bd7234ce7e82b6100887be0c99b4aed27388ac723c3cab04ac0e720aea4000c9d9c28a99be742c60a714fd39b88e9
@@ -5,7 +5,7 @@ require 'rack/filters'
5
5
 
6
6
  module Rack
7
7
  class Action
8
- VERSION = '0.4.0'
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 == APPLICATION_JSON
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))
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "rack-action"
14
14
  gem.require_paths = ["lib"]
15
- gem.version = "0.4.0"
15
+ gem.version = "0.4.1"
16
16
 
17
17
  gem.add_runtime_dependency "rack"
18
18
  end
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack