fingerly 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dbd638d3731d3062c062b00a80a0ef4904b486ecf96c91426b0f0ba9ff613cd
4
- data.tar.gz: 1a4759ace195de23f5c08cbadd10a5df576ce0093897f32cfb291fa0441335b0
3
+ metadata.gz: 92e4046da9469b62150fc3f50c8091ce69e86a62be2114916ed2e40e5bb90f98
4
+ data.tar.gz: ac9d6f5c1d51ffd832b6c5e14d86c44a46c224a1a4e5e5467859470fcd049638
5
5
  SHA512:
6
- metadata.gz: 0da74c52537b8f8091458938f8057536521b295de0df1b13b9af832f4d8cc138365acd2356f425ff9148f9b3977c54ec8c7d9b49de5f336c991901f22aee13fb
7
- data.tar.gz: 310aa51b0aa74788d7a694075e8802182c275663d8b38260cda66faec16b383e165b38da542dc414be5d1fff5f5e692ef7c8bbf6cd178412660d2ea7e65232ee
6
+ metadata.gz: 58aec6cc043aa8e471b9e9923d1e4876a13d01f699df69f227a73ae93d9faf26ce8c58fc71d2589081b01324778074b0b9fa2f209525153cf909495d15d8f832
7
+ data.tar.gz: 76f501fae45401d8ffafacc3c62b793414dcfbe72c157106cca3f800b81cc82e05a802315d37644ee7e4f34941e40df8c196249fdab03cd183f1f326cb444101
data/README.md CHANGED
@@ -317,7 +317,7 @@ the server's or the load balancer's own limit as well. Falcon streams the body,
317
317
  so there the proxy stops reading at the limit. Only the content type, the
318
318
  visitor metadata Fingerly needs, and an `Idempotency-Key` are forwarded;
319
319
  customer cookies and authorization headers never are. The proxy reports itself
320
- upstream as `ruby/0.1.0` in `x-fingerly-proxy-version`, which the dashboard
320
+ upstream as `ruby/0.1.1` in `x-fingerly-proxy-version`, which the dashboard
321
321
  shows per proxy.
322
322
 
323
323
  When Fingerly cannot be reached, the visitor gets a gateway error rather than
@@ -187,7 +187,12 @@ module Fingerly
187
187
  # past retention.
188
188
  # @raise [TimeoutError] if the request exceeds the client timeout
189
189
  def get(request_id)
190
- raise ConfigurationError, "request_id is required" if request_id.to_s.empty?
190
+ # URL parsers resolve a dot segment even when it is percent-encoded, so
191
+ # escaping cannot keep these in the path: "." and the empty id would name
192
+ # the list route, and ".." a route above it, secret key attached.
193
+ if ["", ".", ".."].include?(request_id.to_s)
194
+ raise ConfigurationError, "request_id is not a Fingerly request id"
195
+ end
191
196
 
192
197
  Event.new(@client.get("/events/#{Events.escape(request_id)}"))
193
198
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Fingerly
4
4
  # The SDK version, reported to the API on every request.
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fingerly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fingerly