Package not found. Please check the package name and try again.

salestation 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 8ebf9157080bc595e5627ac9dd0a63a24afd3f12
4
- data.tar.gz: 06f85ef72b8cf37c248129448e9466040016c6c2
3
+ metadata.gz: 62aef9e4fa2a302564b0d5532ee005f274f52d1f
4
+ data.tar.gz: 95ce957db64d773feabe1f40e47310dd62ff545b
5
5
  SHA512:
6
- metadata.gz: a1ceaacece5be4693ce08f0542486b86e7c4462b273b8e9efebe958f30ac3471e21e3f95e77f7b90b7f77a01f64861b5a63b9ac7f9599dcfa86c2f91304925e2
7
- data.tar.gz: 54fd1b4f4a7dca1e60959d3f213f2a33d2178ca400c3e4170bfab88a43ab1356775ad25075519aadbdb7b7c164c7f9bfcb2e03f83a392e68135a3b4355dfa3ed
6
+ metadata.gz: 39142c2602b297e443d1dc059c5c7518c3716298de8ebaebab8ac478c4b775baae642f6ab8aa7971b4e13494828c2c3c4ff0612e7050e4c2717dbe72aa14322a
7
+ data.tar.gz: a80316925010c4099a1d3bbdb1604b9233f2c7366a32b5d9ac7eeff72a043bc2c91278f4335743903c0fe06472f4745bcc60a0d025378b635d492955c40a3f03
@@ -59,9 +59,7 @@ module Salestation
59
59
  method: env[REQUEST_METHOD],
60
60
  status: status,
61
61
  duration: Time.now - began_at,
62
- headers: headers.slice(
63
- 'Location', 'Content-Length', 'Content-Type'
64
- )
62
+ headers: headers
65
63
  }.merge(response_payload)
66
64
  end
67
65
 
@@ -13,7 +13,13 @@ module Salestation
13
13
 
14
14
  status, header, body = @app.call env
15
15
 
16
- method, path = env['sinatra.route'].split
16
+ method = env['REQUEST_METHOD']
17
+ path =
18
+ if route = env['sinatra.route']
19
+ route.split(' ').last
20
+ else
21
+ 'unknown-route'
22
+ end
17
23
 
18
24
  @statsd.timing(@metric, (Time.now - start) * 1000, tags: [
19
25
  "path:#{ path }",
data/salestation.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "salestation"
7
- spec.version = "0.1.1"
7
+ spec.version = "0.1.2"
8
8
  spec.authors = ["SaleMove TechMovers"]
9
9
  spec.email = ["techmovers@salemove.com"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salestation
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
  - SaleMove TechMovers