rcscript-client 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. data/lib/rcscript-client.rb +2 -2
  2. metadata +1 -1
@@ -73,8 +73,8 @@ class RScriptClient
73
73
 
74
74
  def query_method(method, params={})
75
75
  base_url = "http://#{@hostname}/do/#{@package}/"
76
- param_list = params.to_a.map{|x| x.join('=')}.join('&')
77
- url = "%s%s?%s" % [base_url, method.gsub('_','-'), CGI.escape(param_list)]
76
+ param_list = params.to_a.map{|param, value| "%s=%s" % [param, CGI.escape(value)]}.join('&')
77
+ url = "%s%s?%s" % [base_url, method.gsub('_','-'), param_list]
78
78
  response = open(url, 'UserAgent' => 'RScriptClient')
79
79
  @result = response.read
80
80
  @return_type[response.content_type].call
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcscript-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors: []
7
7