appsignal 2.3.0 → 2.3.1

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: 04ca86e33e9fbf86ae94a677268ee62293f01aab
4
- data.tar.gz: 3c0488c1ebf22294fd07887f466dd8dc483b2314
3
+ metadata.gz: ed164d0e73d1000a37c8a10ee2e467f28c999228
4
+ data.tar.gz: daf2ae18da6c18f75f962aa4a3098fc1df1c2d8e
5
5
  SHA512:
6
- metadata.gz: 49631efbcc56a2889c5ea3b1185a9428be0aa238e9c724cfc67c68f6ca3f7bab05e6b8332741c79ff3679d4aafdf1a3932f0b9b6e1381b96de5c98ef3a732670
7
- data.tar.gz: c4e9bef228b574f02f443b95bdfd827a54a85324ea05c6a1a5d10994182bb1160288a936539bd71af5b5488a6552b923955d894dd2203e0b8051c6a3e07d943e
6
+ metadata.gz: c650fb63e59abdfcc63b1ebed5bb447063ee9dbae4c051ecf70dc072ffc6dfd0dbf55a43522a07d17c8a724c966fa3e2483896dfd3beef2614593945bdcb257b
7
+ data.tar.gz: 1694a0a89dea32073445f3b939a384f0535983d32d8da0752dcba88d266bdc339033787cde8dd20d70841770dfcb23b0a9383e60e948d7c0fc4544a077706370
@@ -1,3 +1,7 @@
1
+ # 2.3.1
2
+ * Fix ActiveSupport::Notifications hook not supporting non-string names for
3
+ events. PR #324
4
+
1
5
  # 2.3.0
2
6
  * Fix Shoryuken instrumentation when body is a string. PR #266
3
7
  * Enable ActiveSupport instrumentation at all times. PR #274
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # AppSignal Ruby agent
1
+ # AppSignal for Ruby
2
2
 
3
3
  AppSignal solves all your Ruby monitoring needs in a single tool. You and your
4
4
  team can focus on writing code and we'll provide the alerts if your app has any
@@ -38,7 +38,7 @@ module Appsignal
38
38
  if instrument_this
39
39
  title, body, body_format = Appsignal::EventFormatter.format(name, payload)
40
40
  transaction.finish_event(
41
- name,
41
+ name.to_s,
42
42
  title,
43
43
  body,
44
44
  body_format
@@ -1,5 +1,5 @@
1
1
  require "yaml"
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.3.0".freeze
4
+ VERSION = "2.3.1".freeze
5
5
  end
@@ -30,6 +30,16 @@ describe Appsignal::Hooks::ActiveSupportNotificationsHook do
30
30
  expect(return_value).to eq "value"
31
31
  end
32
32
 
33
+ it "should convert non-string names to strings" do
34
+ expect(Appsignal::Transaction.current).to receive(:start_event)
35
+ .at_least(:once)
36
+ expect(Appsignal::Transaction.current).to receive(:finish_event)
37
+ .at_least(:once)
38
+ .with("not_a_string", nil, nil, nil)
39
+
40
+ as.instrument(:not_a_string) {}
41
+ end
42
+
33
43
  it "does not instrument events whose name starts with a bang" do
34
44
  expect(Appsignal::Transaction.current).not_to receive(:start_event)
35
45
  expect(Appsignal::Transaction.current).not_to receive(:finish_event)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-04 00:00:00.000000000 Z
12
+ date: 2017-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack