invalid_utf8_rejector 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -4
- data/CHANGELOG.md +4 -0
- data/invalid_utf8_rejector.gemspec +2 -2
- data/lib/invalid_utf8_rejector/railtie.rb +5 -1
- data/lib/invalid_utf8_rejector/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa16d974297710a3a11ab5378b428374c9bcf61a
|
4
|
+
data.tar.gz: 721d87167ad180c021ed113693fd69033921a769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1313de9a7ee428022ab0b0203f19fbe474d69702780bc651eff09c8875b9e814b915aa51500cdc35c485eaf47f9c1a97031a8d38ccd56dc79d589c52b553477
|
7
|
+
data.tar.gz: 1fa2352f44fcd8c9c338ce4a858ab358eafbac57eab6e16305bb363b3393d37637cbcb78eacbecc205cdf82a2fdea57aba77a4a83af4eee0e0d5cab0c7953051
|
data/.travis.yml
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
3
|
rvm:
|
4
|
-
- "
|
5
|
-
- "2.
|
6
|
-
|
7
|
-
|
4
|
+
- "2.3"
|
5
|
+
- "2.4"
|
6
|
+
deploy:
|
7
|
+
provider: rubygems
|
8
|
+
api_key:
|
9
|
+
secure: ZyNbSjlMhANpCAyY6fCbcpnMGWlXoo9YkkhADHwUKGu1Ct4pynPdwnql4QM2GFq3YAUgp0IxRiPQx6xmm5ql/yJpH0MSbVpc30pnbXitS8pxof27qd/0glJmT2SjWNnrvxXyQVUB56RzOeGbk1h4PqJOK9xEBnq0YMfKj85ovCU=
|
10
|
+
on:
|
11
|
+
tags: true
|
12
|
+
ruby: "2.4"
|
data/CHANGELOG.md
CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
|
-
spec.add_development_dependency "rack-test", "0.6.
|
24
|
-
spec.add_development_dependency "rspec", "
|
23
|
+
spec.add_development_dependency "rack-test", "0.6.3"
|
24
|
+
spec.add_development_dependency "rspec", "3.6.0"
|
25
25
|
end
|
@@ -1,7 +1,11 @@
|
|
1
1
|
module InvalidUTF8Rejector
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "invalid_utf8_rejector.insert_middleware" do |app|
|
4
|
-
|
4
|
+
if Rails::VERSION::MAJOR >= 5
|
5
|
+
app.config.middleware.insert_before 0, InvalidUTF8Rejector::Middleware
|
6
|
+
else
|
7
|
+
app.config.middleware.insert_before 0, "InvalidUTF8Rejector::Middleware"
|
8
|
+
end
|
5
9
|
end
|
6
10
|
end
|
7
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invalid_utf8_rejector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Tomlins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.6.
|
47
|
+
version: 0.6.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.6.
|
54
|
+
version: 0.6.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.6.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 3.6.0
|
69
69
|
description: rack middleware to reject invalid UTF8 in requests. It will return a
|
70
70
|
400 if the decoded path or query string contain invalid UTF-8 chars.
|
71
71
|
email:
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.4.5
|
112
|
+
rubygems_version: 2.4.5
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: rack middleware to reject invalid UTF8 in requests
|