charlock_holmes 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/charlock_holmes/encoding_detector.c +6 -0
- data/lib/charlock_holmes/version.rb +1 -1
- data/test/encoding_detector_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e74b701d5fd0ec1624c4d78d3e42400f2e907c7
|
|
4
|
+
data.tar.gz: 083e84e99951b7143d16b6f30f923f8d63365dc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cff65a3137965f9d48111ea8192a4e068be65da6f845909ce6faa0fcea71d9de81afc75e78916192c231b36c7c21c392a98f466a7aa6865921fbb4e7ff9384ea
|
|
7
|
+
data.tar.gz: d436959236d0393db85de4e35fb5397934bf46ae2a898847d8b4ab20e5b2e1b7423ac84881300d76d4c06e6c3c66712770a2c049aebe099073ce669bfd05312d
|
|
@@ -299,6 +299,12 @@ static VALUE rb_get_supported_encodings(VALUE klass)
|
|
|
299
299
|
rb_encoding_list = rb_ary_new();
|
|
300
300
|
enc_count = uenum_count(encoding_list, &status);
|
|
301
301
|
|
|
302
|
+
rb_ary_push(rb_encoding_list, charlock_new_str2("windows-1250"));
|
|
303
|
+
rb_ary_push(rb_encoding_list, charlock_new_str2("windows-1252"));
|
|
304
|
+
rb_ary_push(rb_encoding_list, charlock_new_str2("windows-1253"));
|
|
305
|
+
rb_ary_push(rb_encoding_list, charlock_new_str2("windows-1254"));
|
|
306
|
+
rb_ary_push(rb_encoding_list, charlock_new_str2("windows-1255"));
|
|
307
|
+
|
|
302
308
|
for(i=0; i < enc_count; i++) {
|
|
303
309
|
enc_name = uenum_next(encoding_list, &enc_name_len, &status);
|
|
304
310
|
rb_ary_push(rb_encoding_list, charlock_new_str(enc_name, enc_name_len));
|
|
@@ -87,6 +87,11 @@ class EncodingDetectorTest < MiniTest::Test
|
|
|
87
87
|
|
|
88
88
|
assert supported_encodings.is_a?(Array)
|
|
89
89
|
assert supported_encodings.include? 'UTF-8'
|
|
90
|
+
assert supported_encodings.include? 'windows-1250'
|
|
91
|
+
assert supported_encodings.include? 'windows-1252'
|
|
92
|
+
assert supported_encodings.include? 'windows-1253'
|
|
93
|
+
assert supported_encodings.include? 'windows-1254'
|
|
94
|
+
assert supported_encodings.include? 'windows-1255'
|
|
90
95
|
end
|
|
91
96
|
|
|
92
97
|
def test_returns_a_ruby_compatible_encoding_name
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: charlock_holmes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Lopez
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-06-
|
|
12
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake-compiler
|