rack-app 7.6.1 → 7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/app/payload/parser/builder/formats.rb +12 -12
- data/lib/rack/app/streamer/scheduler/null.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca703fd01ac71f6c54e349d25d58540a724a4133cd2b3ac38bcffc2752820529
|
4
|
+
data.tar.gz: 19329c662b15c65d1d578066e5d7d1e12bcce180b46b4025398e1a8c5009b79e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da7df3dc724c11abf5519789d91513cb64f97aea2d18dd388155b3275119f39468145aa9f88d4ec5093f7d001ef114dfa12497cb8dc3fe82e4ffbf84e59d6ea3
|
7
|
+
data.tar.gz: db5c0d4f626954611ad99e62dbe3c5fbf141e0757fd71fd0432a899ceddc12cc55d9fc5060043bc13ede8f442db00b741d2571af98e24ee4614ace26876344bb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.6.
|
1
|
+
7.6.2
|
@@ -2,11 +2,11 @@ module Rack::App::Payload::Parser::Builder::Formats
|
|
2
2
|
extend(self)
|
3
3
|
|
4
4
|
JSON_CONTENT_TYPES = [
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
'application/json',
|
6
|
+
'application/x-javascript',
|
7
|
+
'text/javascript',
|
8
|
+
'text/x-javascript',
|
9
|
+
'text/x-json'
|
10
10
|
].freeze
|
11
11
|
|
12
12
|
JSON_PARSER = proc do |io|
|
@@ -28,9 +28,9 @@ module Rack::App::Payload::Parser::Builder::Formats
|
|
28
28
|
end
|
29
29
|
|
30
30
|
JSON_STREAM_CONTENT_TYPES = [
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
'application/jsonstream',
|
32
|
+
'application/stream+json',
|
33
|
+
'application/x-json-stream'
|
34
34
|
].freeze
|
35
35
|
|
36
36
|
JSON_STREAM_PARSER = proc do |io|
|
@@ -62,8 +62,8 @@ module Rack::App::Payload::Parser::Builder::Formats
|
|
62
62
|
# end
|
63
63
|
|
64
64
|
FORM_CONTENT_TYPES = [
|
65
|
-
|
66
|
-
|
65
|
+
'application/x-www-form-urlencoded',
|
66
|
+
# 'multipart/form-data'
|
67
67
|
].freeze
|
68
68
|
|
69
69
|
FORM_SEP_CHAR = '&'.freeze
|
@@ -76,7 +76,7 @@ module Rack::App::Payload::Parser::Builder::Formats
|
|
76
76
|
lambda do |form|
|
77
77
|
::Rack::Utils.parse_nested_query(form, FORM_SEP_CHAR)
|
78
78
|
end
|
79
|
-
|
79
|
+
end
|
80
80
|
|
81
81
|
NULL_END_CHAR = /#{"\u0000"}$/
|
82
82
|
|
@@ -102,7 +102,7 @@ module Rack::App::Payload::Parser::Builder::Formats
|
|
102
102
|
last_name = form_name
|
103
103
|
unless respond_to?(form_name)
|
104
104
|
raise(NotImplementedError, "unknown formatter: #{last_name}")
|
105
|
-
end
|
105
|
+
end
|
106
106
|
__send__ form_name, builder
|
107
107
|
end
|
108
108
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.
|
4
|
+
version: 7.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|