charlock_holmes 0.6.9.2 → 0.6.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- charlock_holmes (0.6.9.2)
4
+ charlock_holmes (0.6.9.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,6 +1,7 @@
1
1
  #include "common.h"
2
2
  #undef UChar
3
3
 
4
+ #include <string>
4
5
  #include <unicode/translit.h>
5
6
 
6
7
  extern "C" {
@@ -63,7 +64,8 @@ static VALUE rb_transliterator_transliterate(VALUE self, VALUE rb_txt, VALUE rb_
63
64
 
64
65
  u_txt = new UnicodeString(txt, txt_len);
65
66
  trans->transliterate(*u_txt);
66
- result = u_txt->toUTF8String(result);
67
+ StringByteSink<std::string> sink(&result);
68
+ u_txt->toUTF8(sink);
67
69
 
68
70
  delete u_txt;
69
71
  delete trans;
@@ -83,4 +85,4 @@ void _init_charlock_transliterator() {
83
85
  rb_define_singleton_method(rb_cTransliterator, "transliterate", (VALUE(*)(...))rb_transliterator_transliterate, 2);
84
86
  }
85
87
 
86
- }
88
+ }
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.6.9.2"
2
+ VERSION = "0.6.9.3"
3
3
  end
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.6.9.2
4
+ version: 0.6.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-20 00:00:00.000000000 Z
13
+ date: 2013-04-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake-compiler