egalite 1.5.14 → 1.5.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a9c5192532b745af1b9af582f08661f470a8080
4
- data.tar.gz: 168d9cd38658b514c908168c89c8460e0571b2a3
3
+ metadata.gz: dbfc73af2ba067b4b7278c031eef5e8922409d3c
4
+ data.tar.gz: fa0e9d6eb79cf495ace9496455b78879e98fafa9
5
5
  SHA512:
6
- metadata.gz: 8579ab001b10cb885fadd5d7c181dbe268c2ba58614911c77e12d2175285f6562d4fa0af9e163d0e7dd8030806d6bb29d1c3e2c51d8bac41151221814702bd09
7
- data.tar.gz: 39de9fbccf6d700ab26a0d5da58dc89aa4533f2b0d284a4f1f0b55b3319a011dbe8c5ca66f29db195f806630cc10cc4fd1da6318c3e706cf17d11032427c93d8
6
+ metadata.gz: 5259f0c26544063d8a4447052baf29425512cb190dfaae3ed7564d0d320b8f7a55ac70dcf646d3281603cd444801a207d37aad4499fed939856481523a8d2a54
7
+ data.tar.gz: d494300fd010741c580ba07468ca7b1b8f913db3a652a92e3a603a35124e75ad42bc4653fb833ba098604836ec024af47b5c9347fd1495e92e28e385dde4f607
data/lib/egalite/http.rb CHANGED
@@ -37,9 +37,7 @@ module Egalite
37
37
  def self.get(url, options = {})
38
38
  params = options[:params]
39
39
  if params.is_a?(Hash)
40
- params = params.map { |k,v|
41
- "#{k}=#{v}"
42
- }.join("&")
40
+ params = URI.encode_www_form(params)
43
41
  end
44
42
  if params.is_a?(String)
45
43
  if url =~ /\?/
@@ -57,9 +55,7 @@ module Egalite
57
55
  def self.post(url, body = nil, options = {})
58
56
  uri = parse_url(url,options)
59
57
  if body.is_a?(Hash)
60
- body = body.map { |k,v|
61
- "#{k}=#{v}"
62
- }.join("&")
58
+ body = URI.encode_www_form(body)
63
59
  end
64
60
  parse_options(options)
65
61
  (http, uri) = parse_url(url, options)
@@ -1,3 +1,3 @@
1
1
  module Egalite
2
- VERSION = "1.5.14"
2
+ VERSION = "1.5.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egalite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.14
4
+ version: 1.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shunichi Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler