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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d5631a05a4f3286db246abf47cb5edaa037820a
4
- data.tar.gz: 4810c8e247f8c49ef4a452318b62acc1cb7c7dae
3
+ metadata.gz: 74a9bc8e160da02a0c53074936764abea3aced77
4
+ data.tar.gz: 42e75bc860a854914a38d83ae4c454afec68f523
5
5
  SHA512:
6
- metadata.gz: 26464e5ecfcdf5d7a2f800563faab7fc4e9def069f0c1946c6e2d3267715e35196c3750f58f961792162094fd5d9880efc48d99c7c07621f1460ea0d7aeababc
7
- data.tar.gz: 480457ed2a7a088f8d1b012aa1ff9bbe8aeb1eb16ea925ddb48c6f58da8d532272556f3ab0c9cc3731a8bf95e17081f076f84e7981d6df0a48a4ff2ee9a471d6
6
+ metadata.gz: af7fd47ad7dcf3a15edb51fa13a29430257aa5e654e58e61739ff43b9e84fcd782760df3ab61519ea00e6e7ee57ad961ca0d4eee08b2ddb76b193e770d5d597b
7
+ data.tar.gz: 89a5763a701c7e342f5f7c07976d40a51eb67c031a8cc8d5adeac29aa4946fc7334071cdec3ad22f4ff094627ecc466a054bfa34c26afe7afa4c67b4d921dd42
@@ -5,7 +5,7 @@ require 'rack/filters'
5
5
 
6
6
  module Rack
7
7
  class Action
8
- VERSION = '0.5.0'
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
@@ -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.5.0"
15
+ gem.version = "0.5.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.5.0
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-03 00:00:00.000000000 Z
11
+ date: 2015-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack