rack-request_police 0.1.0alpha → 0.1.0alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rack/request_police/version.rb +1 -1
- data/lib/rack/request_police/web_helpers.rb +7 -1
- data/web/views/index.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8816f4a1c7dffd338af6240d09c3455c7bad718f
|
4
|
+
data.tar.gz: c36289abea2d7d0dc39683a176be672cf2eb1dd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ff474177628520498e828a08787ed7a4adab776d7f65c97e9fbb72744fd1168fe3494bbae83ddefeba90b97018be1fd2f48d84470f275b8493909aa86521464
|
7
|
+
data.tar.gz: d9a84f84aa0e00be12ffb4015200e45d69c0d8b9ccf1949523ae550933b6f3abd9472b94ff0856be4bc45941bec23447d2f056ff761506138a3c3e69102dcd09
|
data/CHANGELOG.md
CHANGED
@@ -36,9 +36,15 @@ module Rack
|
|
36
36
|
|
37
37
|
def pretty_parse(post_data)
|
38
38
|
JSON.pretty_generate(JSON.parse(post_data))
|
39
|
-
rescue JSON::ParserError
|
39
|
+
rescue JSON::ParserError, JSON::GeneratorError
|
40
40
|
post_data
|
41
41
|
end
|
42
|
+
|
43
|
+
def pretty_parse_hash(hash)
|
44
|
+
JSON.pretty_generate(hash)
|
45
|
+
rescue JSON::GeneratorError
|
46
|
+
hash.to_s
|
47
|
+
end
|
42
48
|
end
|
43
49
|
end
|
44
50
|
end
|
data/web/views/index.erb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-request_police
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.0alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafał Wojsznis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|