utf8-cleaner 0.2.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +3 -5
- data/CHANGELOG.md +5 -0
- data/lib/utf8-cleaner/uri_string.rb +1 -1
- data/lib/utf8-cleaner/version.rb +1 -1
- data/utf8-cleaner.gemspec +2 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3e0c26af63380a6ec55fb914cf0935e1aa14f437196a1d1f9a9953df9ad9b364
|
4
|
+
data.tar.gz: 6dcc3159556c0a8ef8ee6d18fd7fa49459d8f67a461859686f9372a33f963490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae85010c40dc6e3627b9079222e7838177e08f9d9fefc1f52f3432c73455c190adcfcd0f82f589c4f422093bd44a4ae7e0b688a6084d6e6f5ccc76d422dadcc3
|
7
|
+
data.tar.gz: e913dd2ce0eeed3582352980a465725a960bbd58669b850d08ea81ca93093f0c9bdaef9c1d51dad6bd979227e3ca97573faae01d138b5ee68ef314a5a8f26aff
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -87,7 +87,7 @@ module UTF8Cleaner
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def valid_uri_encoded_utf8(string)
|
90
|
-
URI.
|
90
|
+
URI::DEFAULT_PARSER.unescape(string).force_encoding('UTF-8').valid_encoding? &&
|
91
91
|
string !~ INVALID_PERCENT_ENCODING_REGEX
|
92
92
|
rescue ArgumentError => e
|
93
93
|
if e.message =~ /invalid byte sequence/
|
data/lib/utf8-cleaner/version.rb
CHANGED
data/utf8-cleaner.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utf8-cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leon Miller-Out
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -144,15 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
requirements:
|
145
145
|
- - ">="
|
146
146
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
147
|
+
version: 2.3.0
|
148
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
|
-
|
155
|
-
rubygems_version: 2.6.4
|
154
|
+
rubygems_version: 3.1.2
|
156
155
|
signing_key:
|
157
156
|
specification_version: 4
|
158
157
|
summary: Prevent annoying error reports of "invalid byte sequence in UTF-8"
|