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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8abbeccb4a93a63ccd59fc06874e93db09a7033c
4
- data.tar.gz: 749738795d07e1461a760a778a3acaa984ff5a08
2
+ SHA256:
3
+ metadata.gz: 7d1a5f4c2a78ca67abf591caed699d38dbcdd7776b750532f4bfc45ece7114ac
4
+ data.tar.gz: 52b7137f9fa4e585bf0f6e229e12f0a1b25668fce91f5a20e85c24ef7212d7c1
5
5
  SHA512:
6
- metadata.gz: 561ebc978349e80f358e1b917b1e3c90ab9c9fd069b73a8cbf31d7ce27209762cc9834c0e0d770ac2a7378094a6ce91a6e78badedc5711ed26ee4e6b1c44e676
7
- data.tar.gz: 6b38f5cdaeec9ff299130debd3c0249e9f57ba151ddb4380a20e5521a88b92414f5f7a84f87c83bf8ca24a3c71ea8040b73b7f32ed261db70ed634ab3a55049f
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.0.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.1.1)
11
- actionpack (= 5.1.1)
10
+ actioncable (5.2.0)
11
+ actionpack (= 5.2.0)
12
12
  nio4r (~> 2.0)
13
- websocket-driver (~> 0.6.1)
14
- actionmailer (5.1.1)
15
- actionpack (= 5.1.1)
16
- actionview (= 5.1.1)
17
- activejob (= 5.1.1)
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.1.1)
21
- actionview (= 5.1.1)
22
- activesupport (= 5.1.1)
20
+ actionpack (5.2.0)
21
+ actionview (= 5.2.0)
22
+ activesupport (= 5.2.0)
23
23
  rack (~> 2.0)
24
- rack-test (~> 0.6.3)
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.1.1)
28
- activesupport (= 5.1.1)
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.1.1)
34
- activesupport (= 5.1.1)
33
+ activejob (5.2.0)
34
+ activesupport (= 5.2.0)
35
35
  globalid (>= 0.3.6)
36
- activemodel (5.1.1)
37
- activesupport (= 5.1.1)
38
- activerecord (5.1.1)
39
- activemodel (= 5.1.1)
40
- activesupport (= 5.1.1)
41
- arel (~> 8.0)
42
- activesupport (5.1.1)
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 (~> 0.7)
48
+ i18n (>= 0.7, < 2)
45
49
  minitest (~> 5.1)
46
50
  tzinfo (~> 1.1)
47
- arel (8.0.0)
51
+ arel (9.0.0)
48
52
  builder (3.2.3)
49
53
  concurrent-ruby (1.0.5)
50
- erubi (1.6.0)
51
- globalid (0.4.0)
54
+ crass (1.0.4)
55
+ erubi (1.7.1)
56
+ globalid (0.4.1)
52
57
  activesupport (>= 4.2.0)
53
- i18n (0.8.4)
54
- loofah (2.0.3)
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.6.5)
57
- mime-types (>= 1.16, < 4)
58
- method_source (0.8.2)
59
- mime-types (3.1)
60
- mime-types-data (~> 3.2015)
61
- mime-types-data (3.2016.0521)
62
- mini_portile2 (2.1.0)
63
- minitest (5.9.1)
64
- nio4r (2.0.0)
65
- nokogiri (1.7.2)
66
- mini_portile2 (~> 2.1.0)
67
- rack (2.0.3)
68
- rack-test (0.6.3)
69
- rack (>= 1.0)
70
- rails (5.1.1)
71
- actioncable (= 5.1.1)
72
- actionmailer (= 5.1.1)
73
- actionpack (= 5.1.1)
74
- actionview (= 5.1.1)
75
- activejob (= 5.1.1)
76
- activemodel (= 5.1.1)
77
- activerecord (= 5.1.1)
78
- activesupport (= 5.1.1)
79
- bundler (>= 1.3.0, < 2.0)
80
- railties (= 5.1.1)
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.3)
86
- loofah (~> 2.0)
87
- railties (5.1.1)
88
- actionpack (= 5.1.1)
89
- activesupport (= 5.1.1)
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.0)
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.19.4)
110
+ thor (0.20.0)
102
111
  thread_safe (0.3.6)
103
- tzinfo (1.2.3)
112
+ tzinfo (1.2.5)
104
113
  thread_safe (~> 0.1)
105
- websocket-driver (0.6.5)
114
+ websocket-driver (0.7.0)
106
115
  websocket-extensions (>= 0.1.0)
107
- websocket-extensions (0.1.2)
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.13.6
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
- else
21
- request_body = JSON.parse(env["rack.input"].read)
22
- request_body.deep_transform_keys!(&:underscore)
23
- req = StringIO.new(request_body.to_json)
20
+ return
21
+ end
24
22
 
25
- env["rack.input"] = req
26
- env["CONTENT_LENGTH"] = req.length
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)
@@ -1,3 +1,3 @@
1
1
  module CamelPatrol
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.1.jcabortinvalidjson.1"
3
3
  end
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.0.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: 2017-06-12 00:00:00.000000000 Z
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: '0'
115
+ version: 1.3.1
116
116
  requirements: []
117
- rubyforge_project:
118
- rubygems_version: 2.5.1
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: []