hanami-router 0.8.0 → 0.8.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: c416e1d26debdd38c991e1d26e4fa0f00db09fc6
4
- data.tar.gz: ed52730ca7766727ec933d5b3c082b90fd3e1c26
3
+ metadata.gz: 3700c021edbbd63744f0ccd14145fbf2f43bb74c
4
+ data.tar.gz: 181c99cb03d8b06a8b23afdb1a01c603a13e257d
5
5
  SHA512:
6
- metadata.gz: b9b254c39fb3e4d74e6acf2d3ed3fa12da839f2365c67743d7b5ba31c24892f79cf66a2913669064df3b419dd2c5df783c9b2341fd5d8283c6e7855dab3e1d82
7
- data.tar.gz: 160dba7b24852b5540b1fbbad66567e3ea2ba16ae2a67d91e534a3778ffea16dcfb8c8f9f483fba863fb0c17355dc4883fe347befbdf8d6aaecd6e40929461f8
6
+ metadata.gz: e3c88dffa47882138ed426e40430eca285dae96ef93d2dba5f423ef5280b317c829d740918fd324a2bf17f83b6ce6b6a5822e00f43728d3bd940f2141fb9bf2e
7
+ data.tar.gz: 1b6953416125bb0b1b2e7ec4e1beca690dc1629fd291056241fb70507210aee3a6d0c7c4fbea4e21c1f2b5f2ead2f890d0e6f2db264d0fea5999970cae2e2d59
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Hanami::Router
2
2
  Rack compatible HTTP router for Ruby
3
3
 
4
+ ## v0.8.1 - 2016-11-18
5
+ ### Fixed
6
+ - [Luca Guidi] Ensure JSON body parser to not eval untrusted input
7
+
4
8
  ## v0.8.0 - 2016-11-15
5
9
  ### Added
6
10
  - [Kyle Chong] Referenced params from body parses in Rack env via `router.parsed_body`
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_dependency 'rack', '~> 1.6'
23
23
  spec.add_dependency 'http_router', '~> 0.11'
24
- spec.add_dependency 'hanami-utils', '~> 0.9'
24
+ spec.add_dependency 'hanami-utils', '~> 0.9', '>= 0.9.1'
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.5'
27
27
  spec.add_development_dependency 'minitest', '~> 5'
@@ -1,6 +1,6 @@
1
1
  module Hanami
2
2
  class Router
3
3
  # @since 0.1.0
4
- VERSION = '0.8.0'.freeze
4
+ VERSION = '0.8.1'.freeze
5
5
  end
6
6
  end
@@ -18,7 +18,7 @@ module Hanami
18
18
  #
19
19
  # @since 0.2.0
20
20
  def parse(body)
21
- Hanami::Utils::Json.load(body)
21
+ Hanami::Utils::Json.parse(body)
22
22
  rescue Hanami::Utils::Json::ParserError => e
23
23
  raise BodyParsingError.new(e.message)
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-15 00:00:00.000000000 Z
13
+ date: 2016-11-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -47,6 +47,9 @@ dependencies:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0.9'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.9.1
50
53
  type: :runtime
51
54
  prerelease: false
52
55
  version_requirements: !ruby/object:Gem::Requirement
@@ -54,6 +57,9 @@ dependencies:
54
57
  - - "~>"
55
58
  - !ruby/object:Gem::Version
56
59
  version: '0.9'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.9.1
57
63
  - !ruby/object:Gem::Dependency
58
64
  name: bundler
59
65
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
170
  version: '0'
165
171
  requirements: []
166
172
  rubyforge_project:
167
- rubygems_version: 2.6.4
173
+ rubygems_version: 2.6.8
168
174
  signing_key:
169
175
  specification_version: 4
170
176
  summary: Rack compatible HTTP router for Ruby and Hanami