nowa-top4r 0.0.17 → 0.0.18

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.
@@ -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