elasticsearch-transport-aws4 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7551ab02ff07e1a4ad03c0f539b73722f727c9cf
4
- data.tar.gz: aadb81607a1a6644bc2231f86bf42d3051b2930d
3
+ metadata.gz: 4a529eb3b80522b8ed117c95cdedb472c4cbae20
4
+ data.tar.gz: 9b0cabb3d4ca3a245fc22096332d5781c1464f33
5
5
  SHA512:
6
- metadata.gz: 6d8169228098065285e4141a5d8306bd6f0a77f8094b5966b8dfdf403679f74ef7a1768739678b17c6670bfb1079cc2504f589fb85838b8b63135232ed3ee31d
7
- data.tar.gz: f4f88bf39b37551328594da7f1a8d64bc1d07736e7be1e3162ea067cef736147c2fc765d3f981b3063a4ec1e4ff055088eac9ef7612b2769f85f596679f026a4
6
+ metadata.gz: b3ad95e9286a54964c026ab4913928fe1bbc6710416bb13c5be0417edb578b8b65125ebd82bc89b215a85e7853efc2feb5c66f32f3f5e0cad2d97814aea57cd8
7
+ data.tar.gz: 8423ba11bbc6000c86ed075eb4473768d12a59a179ea4e73ccabb5b07de1db631e169e42756a07a79eae62beeacb31212106a0d788e98e9743e0978a9643ae04
@@ -1,3 +1,7 @@
1
+ ### 0.1.2
2
+
3
+ * Added excess slashes stripping from signed URL.
4
+
1
5
  ### 0.1.1
2
6
 
3
7
  * Fixed signature for queries with URL params.
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem "elasticsearch-transport-aws4", "~> 0.1.1"
12
+ gem "elasticsearch-transport-aws4", "~> 0.1.2"
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "elasticsearch-transport-aws4"
6
- spec.version = "0.1.1"
6
+ spec.version = "0.1.2"
7
7
  spec.authors = ["Filip Tepper"]
8
8
  spec.email = ["filip@tepper.pl"]
9
9
 
@@ -4,9 +4,11 @@ module Faraday
4
4
  class Request
5
5
  def endpoint
6
6
  URI.parse(
7
- self.params.any? ?
8
- "#{self.path}?#{params.map { |key, value| "#{key}=#{value}" }.join("&")}" :
9
- self.path
7
+ (
8
+ self.params.any? ?
9
+ "#{self.path}?#{Faraday::Utils::ParamsHash[params].to_query}" :
10
+ self.path
11
+ ).gsub(/([^:])\/{2,}/, '\1/')
10
12
  )
11
13
  end
12
14
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-transport-aws4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Tepper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk