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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53abf00f6c72c2ac1339b3f856011bed111b9ad4
4
- data.tar.gz: c17048fa5ddf8c5c37f1378653e0bdcea6849e7a
3
+ metadata.gz: 2e74b701d5fd0ec1624c4d78d3e42400f2e907c7
4
+ data.tar.gz: 083e84e99951b7143d16b6f30f923f8d63365dc0
5
5
  SHA512:
6
- metadata.gz: 4f97cf5d2bca0e320e1eb54efd77bd4efed5add1621a4c9dcd62e6ec0c1b0b0834a30a5247341308974683e93a064044c2fb524b562d88dd26ead19694bf2121
7
- data.tar.gz: 57ac5e9d12ae54f65387ef81f45afde88a8d4988f38f2647e2fbc3c88fe00fe094361f8eb26120f7bacea21024f73a74118bfc06a762d7fcc47caecfd5edc372
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));
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
@@ -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.2
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-04 00:00:00.000000000 Z
12
+ date: 2014-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler