rubytter 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rubytter.rb +2 -2
  2. metadata +1 -1
data/lib/rubytter.rb CHANGED
@@ -82,7 +82,7 @@ class Rubytter
82
82
 
83
83
  def get(path, params = {})
84
84
  path += '.json'
85
- param_str = '?' + params.to_a.map{|i| i[0].to_s + '=' + CGI.escape(i[1]) }.join('&')
85
+ param_str = '?' + params.to_a.map{|i| i[0].to_s + '=' + CGI.escape(i[1].to_s) }.join('&')
86
86
  path = path + param_str unless param_str.empty?
87
87
  req = prepare_request(Net::HTTP::Get.new(path))
88
88
  res_body = @connection.start(@host) do |http|
@@ -93,7 +93,7 @@ class Rubytter
93
93
 
94
94
  def post(path, params = {})
95
95
  path += '.json'
96
- param_str = params.to_a.map{|i| i[0].to_s + '=' + CGI.escape(i[1]) }.join('&')
96
+ param_str = params.to_a.map{|i| i[0].to_s + '=' + CGI.escape(i[1].to_s) }.join('&')
97
97
  req = prepare_request(Net::HTTP::Post.new(path))
98
98
  res_body = @connection.start(@host) do |http|
99
99
  http.request(req, param_str).body
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo