autopen 0.0.3 → 0.0.4

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.
@@ -30,11 +30,12 @@ module Autopen
30
30
  end
31
31
 
32
32
  uri_from_url = URI(@url)
33
+
33
34
  unless uri_from_url.query.nil?
34
- query_string_params = uri_from_url.query.gsub("?", "").split("&")
35
+ query_string_params = uri_from_url.query.split("&")
35
36
  query_string_params.each do |param|
36
37
  a = param.split("=")
37
- all_params[a[0]] = a[1]
38
+ all_params[CGI::unescape(a[0])] = CGI::unescape(a[1])
38
39
  end
39
40
  end
40
41
 
@@ -101,7 +102,7 @@ module Autopen
101
102
  params<<("#{key}=#{value}")
102
103
  end
103
104
  query_string = params.join("&")
104
- base + query_string
105
+ CGI::escape(base + query_string)
105
106
  end
106
107
  end
107
108
  end
@@ -1,3 +1,3 @@
1
1
  module Autopen
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autopen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: