rchardet 1.6.0 → 1.6.1

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: 6a05228d2887d6bc51cbd0140c74477a5198df33
4
- data.tar.gz: f085062031d1d75d0bb7d2345d18367ba6107151
3
+ metadata.gz: 8ac135771ad7fdcd19002eecbcc41ff1dbc561a1
4
+ data.tar.gz: 4fe1aae4676d0b89095cc8132f500be8f04cf65f
5
5
  SHA512:
6
- metadata.gz: ecd22fbc48051db9e34e5bd97e8f0c2a6dc5fbc13c3704b27b6a33985a273697ef55af32afdafeeda554ee228cc58dc8e995aa16e5ea9a8c905823acb51966ac
7
- data.tar.gz: 6ee7960a06a3d11885746a08c47421e2746e6c00b8f4642eca615716ef0ffec20b604f7b4ed971c703232274f298ca96bcb4b2ffdb9fdeeb458555877954f801
6
+ metadata.gz: c3346de92a1674175a08c7bc4098c8ad7e703ad352535015ea22dcaf50a4198d310d7889990411a7e9353f3e8f400342d40264c5e3d5ab91d41b5607e5b7870b
7
+ data.tar.gz: 7b89ed96df682956a90b8c7ffd72573dcd1fde4c03fb2196bbd808a34dd98124fac940dbe7216c1169908b0a306747c84cf51caa29bc6aaef85369751cdede0f
@@ -68,7 +68,7 @@ module CharDet
68
68
  def get_confidence
69
69
  # """return confidence based on existing data"""
70
70
  # if we didn't receive any character in our consideration range, return negative answer
71
- if @totalChars <= 0 || @freqChars <= MINIMUM_DATA_THRESHOLD
71
+ if @totalChars <= 0
72
72
  return SURE_NO
73
73
  end
74
74
 
@@ -117,6 +117,14 @@ module CharDet
117
117
  return -1
118
118
  end
119
119
  end
120
+
121
+ def get_confidence
122
+ if @freqChars <= MINIMUM_DATA_THRESHOLD
123
+ return SURE_NO
124
+ end
125
+
126
+ super
127
+ end
120
128
  end
121
129
 
122
130
  class EUCKRDistributionAnalysis < CharDistributionAnalysis
@@ -1,3 +1,3 @@
1
1
  module CharDet
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
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.6.0
4
+ version: 1.6.1
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: 2015-01-21 00:00:00.000000000 Z
12
+ date: 2015-06-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: