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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 995c4ee0bf13ea4bb1df98a06293a397a9443394
4
- data.tar.gz: cf98986f66466357bdcc87e8ef98e3c21e16fc2f
2
+ SHA256:
3
+ metadata.gz: 3e0c26af63380a6ec55fb914cf0935e1aa14f437196a1d1f9a9953df9ad9b364
4
+ data.tar.gz: 6dcc3159556c0a8ef8ee6d18fd7fa49459d8f67a461859686f9372a33f963490
5
5
  SHA512:
6
- metadata.gz: ee8a133cae01cf22d10d27a7741de2be7eadd9a98b28259ac51198725022339d4c204362aee293a775fd21703f5036a1bde73aa1c5cce06fa748e3cb8cfc3da6
7
- data.tar.gz: 5ec3a71bf8cd7e1606bc1e410f584581c018cc6dcb1ec7fd7a049ebe2a557a19768b752ba212cd4971af5640763c450e548eae27af74acd2dfcf8c6aadad5671
6
+ metadata.gz: ae85010c40dc6e3627b9079222e7838177e08f9d9fefc1f52f3432c73455c190adcfcd0f82f589c4f422093bd44a4ae7e0b688a6084d6e6f5ccc76d422dadcc3
7
+ data.tar.gz: e913dd2ce0eeed3582352980a465725a960bbd58669b850d08ea81ca93093f0c9bdaef9c1d51dad6bd979227e3ca97573faae01d138b5ee68ef314a5a8f26aff
@@ -2,8 +2,6 @@ before_install:
2
2
  - gem install bundler
3
3
  language: ruby
4
4
  rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1.8
8
- - 2.2.5
9
- - 2.3.1
5
+ - 2.3
6
+ - 2.4
7
+ - 2.5
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.0
4
+
5
+ * Dropped support for Ruby < 2.3
6
+ * Fixed deprecation warning in Ruby 2.7
7
+
3
8
  ## v0.2.5
4
9
 
5
10
  * MIT license specified in gemspec
@@ -87,7 +87,7 @@ module UTF8Cleaner
87
87
  end
88
88
 
89
89
  def valid_uri_encoded_utf8(string)
90
- URI.decode(string).force_encoding('UTF-8').valid_encoding? &&
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/
@@ -1,3 +1,3 @@
1
1
  module UTF8Cleaner
2
- VERSION = "0.2.5"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
+ gem.required_ruby_version = ">= 2.3.0"
22
+
21
23
  gem.add_dependency 'activesupport'
22
24
 
23
25
  gem.add_development_dependency "rake"
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.2.5
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: 2016-07-18 00:00:00.000000000 Z
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: '0'
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
- rubyforge_project:
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"