sosowa 1.1.1 → 1.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.
data/lib/sosowa.rb CHANGED
@@ -36,7 +36,6 @@ module Sosowa
36
36
  def self.send_req(args)
37
37
  params = serialize_parameter(args)
38
38
  path = File.join(BASE_URL.path, params)
39
- pp path
40
39
 
41
40
  Net::HTTP.version_1_2
42
41
  Net::HTTP.start(BASE_URL.host, BASE_URL.port) do |http|
data/lib/sosowa/scheme.rb CHANGED
@@ -132,7 +132,10 @@ module Sosowa
132
132
  :log => @log,
133
133
  :target => :res
134
134
  })
135
- post_params = Sosowa.serialize_parameter({:body => text.tosjis}.update(params.map{|p| p.tosjis}), false)
135
+ params.each do |k, v|
136
+ params[k] = v.tosjis
137
+ end
138
+ post_params = Sosowa.serialize_parameter({:body => text.tosjis}.update(params), false)
136
139
  req = Net::HTTP::Post.new(File.join(BASE_URL.path, post_uri_params))
137
140
  req["Cookie"] = cookie
138
141
  req["User-Agent"] = "Sosowa Ruby Wrapper #{Sosowa::VERSION}"
@@ -1,3 +1,3 @@
1
1
  module Sosowa
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sosowa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -68,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: -1037089831119005156
71
+ hash: -4539044172263954536
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: -1037089831119005156
80
+ hash: -4539044172263954536
81
81
  requirements: []
82
82
  rubyforge_project:
83
83
  rubygems_version: 1.8.24