camel_patrol 1.0.1 → 1.1.1.jcabortinvalidjson.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +74 -65
- data/lib/camel_patrol/middleware.rb +9 -6
- data/lib/camel_patrol/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d1a5f4c2a78ca67abf591caed699d38dbcdd7776b750532f4bfc45ece7114ac
|
4
|
+
data.tar.gz: 52b7137f9fa4e585bf0f6e229e12f0a1b25668fce91f5a20e85c24ef7212d7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce6ef70e3fbd7e5c0b619688d467ebde277841990d3b61f4e44f58b3115bacb0be52a4c9cca25f3748614a583e8d7df33cac96bbcaa7a3a030690c56db275a6
|
7
|
+
data.tar.gz: 766a9c277ecf3a490ef9f1318caf2ed2326d5b71ec0a33a9cbf0a845281bdd8a4a9b3feaffbfa1273ccea54efba1af807c88a512c85934b50f763038b1543edc
|
data/Gemfile.lock
CHANGED
@@ -1,92 +1,101 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
camel_patrol (1.
|
4
|
+
camel_patrol (1.1.1.jcabortinvalidjson.1)
|
5
5
|
railties (>= 4.1.0, < 6.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.
|
11
|
-
actionpack (= 5.
|
10
|
+
actioncable (5.2.0)
|
11
|
+
actionpack (= 5.2.0)
|
12
12
|
nio4r (~> 2.0)
|
13
|
-
websocket-driver (
|
14
|
-
actionmailer (5.
|
15
|
-
actionpack (= 5.
|
16
|
-
actionview (= 5.
|
17
|
-
activejob (= 5.
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailer (5.2.0)
|
15
|
+
actionpack (= 5.2.0)
|
16
|
+
actionview (= 5.2.0)
|
17
|
+
activejob (= 5.2.0)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.
|
21
|
-
actionview (= 5.
|
22
|
-
activesupport (= 5.
|
20
|
+
actionpack (5.2.0)
|
21
|
+
actionview (= 5.2.0)
|
22
|
+
activesupport (= 5.2.0)
|
23
23
|
rack (~> 2.0)
|
24
|
-
rack-test (
|
24
|
+
rack-test (>= 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.
|
28
|
-
activesupport (= 5.
|
27
|
+
actionview (5.2.0)
|
28
|
+
activesupport (= 5.2.0)
|
29
29
|
builder (~> 3.1)
|
30
30
|
erubi (~> 1.4)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
32
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
-
activejob (5.
|
34
|
-
activesupport (= 5.
|
33
|
+
activejob (5.2.0)
|
34
|
+
activesupport (= 5.2.0)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.
|
37
|
-
activesupport (= 5.
|
38
|
-
activerecord (5.
|
39
|
-
activemodel (= 5.
|
40
|
-
activesupport (= 5.
|
41
|
-
arel (
|
42
|
-
|
36
|
+
activemodel (5.2.0)
|
37
|
+
activesupport (= 5.2.0)
|
38
|
+
activerecord (5.2.0)
|
39
|
+
activemodel (= 5.2.0)
|
40
|
+
activesupport (= 5.2.0)
|
41
|
+
arel (>= 9.0)
|
42
|
+
activestorage (5.2.0)
|
43
|
+
actionpack (= 5.2.0)
|
44
|
+
activerecord (= 5.2.0)
|
45
|
+
marcel (~> 0.3.1)
|
46
|
+
activesupport (5.2.0)
|
43
47
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
-
i18n (
|
48
|
+
i18n (>= 0.7, < 2)
|
45
49
|
minitest (~> 5.1)
|
46
50
|
tzinfo (~> 1.1)
|
47
|
-
arel (
|
51
|
+
arel (9.0.0)
|
48
52
|
builder (3.2.3)
|
49
53
|
concurrent-ruby (1.0.5)
|
50
|
-
|
51
|
-
|
54
|
+
crass (1.0.4)
|
55
|
+
erubi (1.7.1)
|
56
|
+
globalid (0.4.1)
|
52
57
|
activesupport (>= 4.2.0)
|
53
|
-
i18n (0.
|
54
|
-
|
58
|
+
i18n (1.0.1)
|
59
|
+
concurrent-ruby (~> 1.0)
|
60
|
+
loofah (2.2.2)
|
61
|
+
crass (~> 1.0.2)
|
55
62
|
nokogiri (>= 1.5.9)
|
56
|
-
mail (2.
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
rack
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
63
|
+
mail (2.7.0)
|
64
|
+
mini_mime (>= 0.1.1)
|
65
|
+
marcel (0.3.2)
|
66
|
+
mimemagic (~> 0.3.2)
|
67
|
+
method_source (0.9.0)
|
68
|
+
mimemagic (0.3.2)
|
69
|
+
mini_mime (1.0.0)
|
70
|
+
mini_portile2 (2.3.0)
|
71
|
+
minitest (5.11.3)
|
72
|
+
nio4r (2.3.0)
|
73
|
+
nokogiri (1.8.2)
|
74
|
+
mini_portile2 (~> 2.3.0)
|
75
|
+
rack (2.0.5)
|
76
|
+
rack-test (1.0.0)
|
77
|
+
rack (>= 1.0, < 3)
|
78
|
+
rails (5.2.0)
|
79
|
+
actioncable (= 5.2.0)
|
80
|
+
actionmailer (= 5.2.0)
|
81
|
+
actionpack (= 5.2.0)
|
82
|
+
actionview (= 5.2.0)
|
83
|
+
activejob (= 5.2.0)
|
84
|
+
activemodel (= 5.2.0)
|
85
|
+
activerecord (= 5.2.0)
|
86
|
+
activestorage (= 5.2.0)
|
87
|
+
activesupport (= 5.2.0)
|
88
|
+
bundler (>= 1.3.0)
|
89
|
+
railties (= 5.2.0)
|
81
90
|
sprockets-rails (>= 2.0.0)
|
82
91
|
rails-dom-testing (2.0.3)
|
83
92
|
activesupport (>= 4.2.0)
|
84
93
|
nokogiri (>= 1.6)
|
85
|
-
rails-html-sanitizer (1.0.
|
86
|
-
loofah (~> 2.
|
87
|
-
railties (5.
|
88
|
-
actionpack (= 5.
|
89
|
-
activesupport (= 5.
|
94
|
+
rails-html-sanitizer (1.0.4)
|
95
|
+
loofah (~> 2.2, >= 2.2.2)
|
96
|
+
railties (5.2.0)
|
97
|
+
actionpack (= 5.2.0)
|
98
|
+
activesupport (= 5.2.0)
|
90
99
|
method_source
|
91
100
|
rake (>= 0.8.7)
|
92
101
|
thor (>= 0.18.1, < 2.0)
|
@@ -94,17 +103,17 @@ GEM
|
|
94
103
|
sprockets (3.7.1)
|
95
104
|
concurrent-ruby (~> 1.0)
|
96
105
|
rack (> 1, < 3)
|
97
|
-
sprockets-rails (3.2.
|
106
|
+
sprockets-rails (3.2.1)
|
98
107
|
actionpack (>= 4.0)
|
99
108
|
activesupport (>= 4.0)
|
100
109
|
sprockets (>= 3.0.0)
|
101
|
-
thor (0.
|
110
|
+
thor (0.20.0)
|
102
111
|
thread_safe (0.3.6)
|
103
|
-
tzinfo (1.2.
|
112
|
+
tzinfo (1.2.5)
|
104
113
|
thread_safe (~> 0.1)
|
105
|
-
websocket-driver (0.
|
114
|
+
websocket-driver (0.7.0)
|
106
115
|
websocket-extensions (>= 0.1.0)
|
107
|
-
websocket-extensions (0.1.
|
116
|
+
websocket-extensions (0.1.3)
|
108
117
|
|
109
118
|
PLATFORMS
|
110
119
|
ruby
|
@@ -117,4 +126,4 @@ DEPENDENCIES
|
|
117
126
|
rake (~> 10.0)
|
118
127
|
|
119
128
|
BUNDLED WITH
|
120
|
-
1.
|
129
|
+
1.15.3
|
@@ -17,14 +17,17 @@ module CamelPatrol
|
|
17
17
|
def underscore_params(env)
|
18
18
|
if ::Rails::VERSION::MAJOR < 5
|
19
19
|
env["action_dispatch.request.request_parameters"].deep_transform_keys!(&:underscore)
|
20
|
-
|
21
|
-
|
22
|
-
request_body.deep_transform_keys!(&:underscore)
|
23
|
-
req = StringIO.new(request_body.to_json)
|
20
|
+
return
|
21
|
+
end
|
24
22
|
|
25
|
-
|
26
|
-
|
23
|
+
if !(request_body = safe_json_parse(env["rack.input"].read))
|
24
|
+
return
|
27
25
|
end
|
26
|
+
|
27
|
+
request_body.deep_transform_keys!(&:underscore)
|
28
|
+
req = StringIO.new(request_body.to_json)
|
29
|
+
env["rack.input"] = req
|
30
|
+
env["CONTENT_LENGTH"] = req.length
|
28
31
|
end
|
29
32
|
|
30
33
|
def camelize_response(response)
|
data/lib/camel_patrol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: camel_patrol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1.jcabortinvalidjson.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernardo Farah
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -99,7 +99,7 @@ homepage: https://github.com/coverhound/camel_patrol
|
|
99
99
|
licenses:
|
100
100
|
- MIT
|
101
101
|
metadata: {}
|
102
|
-
post_install_message:
|
102
|
+
post_install_message:
|
103
103
|
rdoc_options: []
|
104
104
|
require_paths:
|
105
105
|
- lib
|
@@ -110,13 +110,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- - "
|
113
|
+
- - ">"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
115
|
+
version: 1.3.1
|
116
116
|
requirements: []
|
117
|
-
|
118
|
-
|
119
|
-
signing_key:
|
117
|
+
rubygems_version: 3.2.8
|
118
|
+
signing_key:
|
120
119
|
specification_version: 4
|
121
120
|
summary: Middleware to transform camelCase into snake_case and back
|
122
121
|
test_files: []
|