nowa-top4r 0.0.16 → 0.0.17

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.
@@ -123,7 +123,7 @@ class Top4R::Client
123
123
  :v => "1.0"
124
124
  })
125
125
  params = params.merge({
126
- :sign => Digest::MD5.hexdigest(params.sort {|a,b| "#{a[0]}"<=>"#{b[0]}"}.flatten.unshift(@app_secret).join.to_gbk).upcase
126
+ :sign => Digest::MD5.hexdigest(params.sort {|a,b| "#{a[0]}"<=>"#{b[0]}"}.flatten.unshift(@app_secret).map {|p| p.to_utf8 if p.is_a?(String)}.join).upcase
127
127
  })
128
128
  end
129
129
 
@@ -10,7 +10,7 @@ class Hash
10
10
  result = ''
11
11
  return result if self.empty?
12
12
  self.each do |key, val|
13
- result << "#{key}=#{CGI.escape(val.to_s.to_gbk)}&"
13
+ result << "#{key}=#{CGI.escape(val.to_s)}&"
14
14
  end
15
15
  result.chop # remove the last '&' character, since it can be discarded
16
16
  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 = 16
4
+ REVISION = 17
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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nowa Zhu