qoobaa-aws-sqs 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/aws-sqs.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{aws-sqs}
5
- s.version = "0.1.3"
5
+ s.version = "0.1.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jakub Kuźma"]
@@ -40,8 +40,9 @@ module Aws
40
40
  # Escape a string accordingly Amazon rulles
41
41
  # http://docs.amazonwebservices.com/AmazonSimpleDB/2007-11-07/DeveloperGuide/index.html?REST_RESTAuth.html
42
42
  def self.amz_escape(param)
43
- param.to_s.gsub(/([^a-zA-Z0-9._~-]+)/n) do
44
- '%' + $1.unpack('H2' * $1.size).join('%').upcase
43
+ param.to_s.gsub(/([^a-zA-Z0-9._~-]+)/u) do
44
+ size = $1.respond_to?(:bytesize) ? $1.bytesize : $1.size
45
+ '%' + $1.unpack('H2' * size).join('%').upcase
45
46
  end
46
47
  end
47
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qoobaa-aws-sqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub Ku\xC5\xBAma"