grape-appsignal 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: c0a52b4dfdf6f23389a64d350b5b482596a827d3
4
- data.tar.gz: 16687f8a13c5540a7baafb2b0d4b58244f7fe4c6
3
+ metadata.gz: e6c121e22a45831cb724e73f4ed0d9d24f46f384
4
+ data.tar.gz: b12d4b6815e8b599f627f2bc2500f9cd8abddd68
5
5
  SHA512:
6
- metadata.gz: c3de557f96ebc3d97647eecaf5778765742cd03b0c935438c979d926cc7f3cbd4149b26de1601033fe317455beafda91ba3bd11120c9a5f8cd1b3ab59309b1e8
7
- data.tar.gz: 59547e6f06534c8664e77aaf4abca915cf2f076191f3e94670d390f01ac78cae94f15d80ad1ec7adbaa6ca448e268b7bfa1875a7b22850adc58d5d3002bd204e
6
+ metadata.gz: 6b12d3e0dc5c05a095f8755ecdddd806616659e2acf2dac27bf5f797b826caee0f4bb94d5fc7d97d0213f14ef31f79bc6774a7cdd717900c1cc34f1f0090d24b
7
+ data.tar.gz: c2bc9f2085902de1f6ff2e6a406db6b02baab1380f74ae60190fbfa27a9ae02866311b3f8b2a226d94d1b912b67ec45d5ab579d7856904b94d878005fecf52ce
@@ -2,5 +2,4 @@ rvm:
2
2
  - 2.1.2
3
3
  - 2.0.0
4
4
  - 1.9.3
5
- - jruby
6
5
  - rbx
@@ -14,7 +14,8 @@ module Appsignal
14
14
 
15
15
  request_path = env['api.endpoint'].routes.first.route_path[1..-1].sub(/\(\.:format\)\z/, "")
16
16
  metric_name = "grape.#{req.request_method}.#{request_path}"
17
- action = "#{method} #{env['PATH_INFO']}"
17
+ action = "#{env['PATH_INFO']}"
18
+
18
19
 
19
20
  ActiveSupport::Notifications.instrument(metric_name, { method: method, path: request_path, action: action, class: "API" } ) do |payload|
20
21
  @app.call(env)
@@ -1,5 +1,5 @@
1
1
  module Appsignal
2
2
  module Grape
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -37,7 +37,7 @@ describe Appsignal::Grape::Middleware do
37
37
 
38
38
  it "delivers a payload consistent with the API call."do
39
39
  expect(subject.payload ).to eq(
40
- { method: "GET" , path: "hello/:id", action: "GET /hello/1337", class: "API"}
40
+ { method: "GET" , path: "hello/:id", action: "/hello/1337", class: "API"}
41
41
  )
42
42
  end
43
43
 
@@ -70,7 +70,7 @@ describe Appsignal::Grape::Middleware do
70
70
 
71
71
  it "delivers a payload consistent with the API call."do
72
72
  expect(subject.payload ).to eq(
73
- { method: "GET" , path: "api/:version/hello/:name", action: "GET /api/v1/hello/mark", class: "API"}
73
+ { method: "GET" , path: "api/:version/hello/:name", action: "/api/v1/hello/mark", class: "API"}
74
74
  )
75
75
  end
76
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Madsen