nowa-top4r 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,11 +17,11 @@ class Hash
17
17
  end
18
18
 
19
19
  class String
20
- def to_gbk(str)
21
- Iconv.iconv("GBK//IGNORE", "UTF-8//IGNORE", str).to_s
20
+ def to_gbk
21
+ Iconv.iconv("GBK//IGNORE", "UTF-8//IGNORE", self).to_s
22
22
  end
23
23
 
24
- def to_utf8(str)
25
- Iconv.iconv("UTF-8//IGNORE", "GBK//IGNORE", str).to_s
24
+ def to_utf8
25
+ Iconv.iconv("UTF-8//IGNORE", "GBK//IGNORE", self).to_s
26
26
  end
27
27
  end
data/lib/top4r/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Top4R::Version
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- REVISION = 17
4
+ REVISION = 18
5
5
 
6
6
  class << self
7
7
  # Returns X.Y.Z formatted version string
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nowa-top4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nowa Zhu