lamby 5.1.0 → 5.2.0

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
  SHA256:
3
- metadata.gz: 940f2329a4503c79e8c2c48908b3f1c2d22445c16ebb0dc71ee0802e54e7c560
4
- data.tar.gz: 708b36a037b00b3f66dfa3239a8060ae6b00177628a1e1cd38ba0a8ed8988a94
3
+ metadata.gz: 98dcd67fb4bd1f352c4afde4809295882f00f98136aecf0fb59d41b926a753cb
4
+ data.tar.gz: bb842eac6ef100d94925ec34934b0f75055255f48148416763810ebe74d66481
5
5
  SHA512:
6
- metadata.gz: e2d135f4d5cab367171030c98c2126f57e9a9542b2b802535677450e47f8be6dc4c99d8865871978d73c184269c7a806d61c0b48f1fd54642ceda76289b96474
7
- data.tar.gz: 472144850f8dd607c2709d74d6a240ea6949ce640a6e2ddc748e49a31db8f94b04cfa1b3aae842bb9fc465c798e47bc13020571dd8d611b01523e9f8378852cc
6
+ metadata.gz: 715a673a6c996aea87b9639d5d130e851d9ed0c5ca005705f21edcb35a163696911f1f876ef2aced5450780a4387b2bc6270c3d5b95a811a828fa3343f49bbb6
7
+ data.tar.gz: 18e6581b89d754cf7d4360d522c31a88e6c26a8ca7731e8f644e61e7ca88fc039c53a7bd3a403f14ebb974c4e8663d99659e24329e3f2b0528917e8995d69fb2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
+ ## v5.2.0
6
+
7
+ ### Fixed
8
+
9
+ - Safely Pass Percent Symbols in Paths Fixes #170
10
+
5
11
  ## v5.1.0
6
12
 
7
13
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lamby (5.1.0)
4
+ lamby (5.2.0)
5
5
  lambda-console-ruby
6
6
  rack
7
7
 
@@ -78,6 +78,7 @@ module Lamby
78
78
  def path_info
79
79
  stage = event.dig('requestContext', 'stage')
80
80
  spath = event.dig('requestContext', 'http', 'path') || event.dig('requestContext', 'path')
81
+ spath = event['rawPath'] if spath != event['rawPath'] && !payload_version_one?
81
82
  spath.sub /\A\/#{stage}/, ''
82
83
  end
83
84
 
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '5.1.0'
2
+ VERSION = '5.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack