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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd8e5a3f37ae47f1c9592964dc98871c3888b2b1
4
- data.tar.gz: 71ee0ed7a83a1669370dd18ad9771f4a499a83b1
3
+ metadata.gz: fa16d974297710a3a11ab5378b428374c9bcf61a
4
+ data.tar.gz: 721d87167ad180c021ed113693fd69033921a769
5
5
  SHA512:
6
- metadata.gz: 0bc99842f379cd0b72740a4fef675eabe051e8ae9aa5c41a969a4cf0fdbfb44bec18830d3a75d26ee9e5a26fc666997f6c4351cac9eabe63461e4f9666efedcb
7
- data.tar.gz: 0b24bf1b7aa896521bf8f9d1b3e5f344e06840c90cf7e6dbc5a8c694dc9653b362e9d8fd496201b9c49aae6db171eb5cd7b09eb71fe3f097f54dea74ed13672f
6
+ metadata.gz: a1313de9a7ee428022ab0b0203f19fbe474d69702780bc651eff09c8875b9e814b915aa51500cdc35c485eaf47f9c1a97031a8d38ccd56dc79d589c52b553477
7
+ data.tar.gz: 1fa2352f44fcd8c9c338ce4a858ab358eafbac57eab6e16305bb363b3393d37637cbcb78eacbecc205cdf82a2fdea57aba77a4a83af4eee0e0d5cab0c7953051
@@ -1,7 +1,12 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - "1.9.3"
5
- - "2.1"
6
- - "2.2"
7
- - "2.3.0"
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"
@@ -1,3 +1,7 @@
1
+ # 0.0.4
2
+
3
+ * Fix middleware deprecation message for Rails 5.
4
+
1
5
  # 0.0.3
2
6
 
3
7
  * Remove runtime dependency on rack (#10).
@@ -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.2"
24
- spec.add_development_dependency "rspec", "~> 3.2"
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
- app.config.middleware.insert_before 0, "InvalidUTF8Rejector::Middleware"
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
@@ -1,3 +1,3 @@
1
1
  module InvalidUTF8Rejector
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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: 2016-01-05 00:00:00.000000000 Z
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.2
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.2
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: '3.2'
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: '3.2'
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.1
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