iciba 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/iciba.rb +1 -2
  2. data/lib/iciba/version.rb +1 -1
  3. metadata +2 -2
@@ -1,10 +1,9 @@
1
1
  # coding: utf-8
2
- require "iciba/version"
3
2
  require 'iciba/tools'
4
3
  require 'iciba/fanyi'
5
4
 
6
5
  class String
7
6
  def contains_cjk?
8
- !!(self =~ /\p{Han}/)
7
+ !!(self.force_encoding("UTF-8") =~ /\p{Han}/)
9
8
  end
10
9
  end
@@ -1,3 +1,3 @@
1
1
  module Iciba
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iciba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2012-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client