Floppy-amee 0.4.31 → 0.4.32

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.
@@ -46,7 +46,7 @@ module AMEE
46
46
  # Create URL parameters
47
47
  params = []
48
48
  data.each_pair do |key, value|
49
- params << "#{key}=#{value}"
49
+ params << "#{CGI::escape(key.to_s)}=#{CGI::escape(value.to_s)}"
50
50
  end
51
51
  if params.size > 0
52
52
  path += "?#{params.join('&')}"
@@ -64,7 +64,7 @@ module AMEE
64
64
  post = Net::HTTP::Post.new(path)
65
65
  body = []
66
66
  data.each_pair do |key, value|
67
- body << "#{key}=#{value}"
67
+ body << "#{CGI::escape(key.to_s)}=#{CGI::escape(value.to_s)}"
68
68
  end
69
69
  post.body = body.join '&'
70
70
  # Send request
@@ -77,7 +77,7 @@ module AMEE
77
77
  put = Net::HTTP::Put.new(path)
78
78
  body = []
79
79
  data.each_pair do |key, value|
80
- body << "#{key}=#{value}"
80
+ body << "#{CGI::escape(key.to_s)}=#{CGI::escape(value.to_s)}"
81
81
  end
82
82
  put.body = body.join '&'
83
83
  # Send request
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- TINY = 31
6
+ TINY = 32
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Floppy-amee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.31
4
+ version: 0.4.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-02 00:00:00 -08:00
12
+ date: 2009-02-10 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15