rchardet 1.4.2 → 1.5.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
2
  SHA1:
3
- metadata.gz: 9b7b0239f3a6b2da6b3e5e71d45e475bbc31b492
4
- data.tar.gz: 43a81fec90be4210c38bd5ec56b3a5b4c7ca4b54
3
+ metadata.gz: 9e0a3b0bb7881776633855ef0a6790cfbdedf193
4
+ data.tar.gz: 9b9cee498bfec199536fb893dc54fef5c243fa0c
5
5
  SHA512:
6
- metadata.gz: c64b08ebadc55395308c7019c181a57479e0b9f06f23a2a347d4e507a94ff84937fb3e36e31095466d9323952ed3f8297a26d8ec69230f36bdad92ec68ceb63a
7
- data.tar.gz: 7a512d57491f7ad910269c8ed8962d4f407b2a1af037a691aa12461b3bbfa6bf7b6dec26fc49e892357678feed2aa5997475e48def361638770dafb36e57731e
6
+ metadata.gz: 4390fbcd959d87f9980042fed4dd428e1824e624fbb6e52c1f95dccdba62bbc82a57eccb931db9ed36decc05391ba4cedb79a76de976b929f7a124fe90480a32
7
+ data.tar.gz: 53855b2e3388241884a338068c556f7ccd5260d01406a3f76b3295bb7f5f0450fddedd2ebec4c1fd52e7f4d5835578ae346b48712547a254339baeca0089499d
@@ -56,7 +56,7 @@ require 'rchardet/utf8prober'
56
56
 
57
57
  module CharDet
58
58
  def CharDet.detect(aBuf)
59
- aBuf = aBuf.dup.force_encoding(Encoding::BINARY) unless aBuf.valid_encoding?
59
+ aBuf = aBuf.dup.force_encoding(Encoding::BINARY)
60
60
 
61
61
  u = UniversalDetector.new
62
62
  u.reset
@@ -38,8 +38,8 @@ module CharDet
38
38
  attr_reader :done, :result
39
39
 
40
40
  def initialize
41
- @highBitDetector = /[\x80-\xFF]/
42
- @escDetector = /(\033|\~\{)/
41
+ @highBitDetector = /[\x80-\xFF]/n
42
+ @escDetector = /(\033|\~\{)/n
43
43
  @escCharSetProber = nil
44
44
  @charSetProbers = []
45
45
  reset()
@@ -1,3 +1,3 @@
1
1
  module CharDet
2
- VERSION = "1.4.2"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rchardet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-28 00:00:00.000000000 Z
12
+ date: 2014-11-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: