appsignal 2.0.1 → 2.0.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: c5af9c6943591c44c841e99c1e8b9f14d40e1c8e
4
- data.tar.gz: 54532725587a4ffeaeb4a9f09fbc32cc65785c80
3
+ metadata.gz: 9f601749cf77425917a239f3bff1b9911ce82c7b
4
+ data.tar.gz: 1453a4ac204b7dba73a9df72c1a3364e7a8f052c
5
5
  SHA512:
6
- metadata.gz: 30cfc725282a8da8974425a8d2da61cf397509d9096f2a87b221e8f6dea3dca3580eb823210c69ba65d1894e3c0cb748db644b9fa899b9d61248734c146728ca
7
- data.tar.gz: 93a4d1bfdbd1bb7f5eeff536a72f662576c5f6e790c0e46c71ddec4d356df9a1af624950be92d2e66bd70b9fe0c53b2e99bacfd468e532fbd5ca56b597302a1c
6
+ metadata.gz: 01822ca7349b66f623263eafcc56c0dc7544e7a09bfdfd6ebdfaf3516ecd6ced1f5a5bccfd00cf6c6fa80ed463600ef1dba72121be7728c324560e131401fa49
7
+ data.tar.gz: 1e24a6931e772c24eafd6c7d6d7368533c676458ff7f13d9e79a765e4f14f5eec56f7d26335e42799c4ce12b96d80e0487b993b2fb259787655f0743a81afb42
@@ -1,3 +1,6 @@
1
+ # 2.0.2
2
+ * Fix Sequel instrumentation overriding existing logic from extensions. PR #209
3
+
1
4
  # 2.0.1
2
5
  * Fix configuration load order regression for the `APPSIGNAL_PUSH_API_KEY`
3
6
  environment variable's activation behavior. PR #208
@@ -9,7 +9,7 @@ module Appsignal
9
9
  sql,
10
10
  Appsignal::EventFormatter::SQL_BODY_FORMAT
11
11
  ) do
12
- yield
12
+ super
13
13
  end
14
14
  end
15
15
  end
@@ -23,7 +23,7 @@ module Appsignal
23
23
  sql,
24
24
  Appsignal::EventFormatter::SQL_BODY_FORMAT
25
25
  ) do
26
- yield
26
+ super
27
27
  end
28
28
  end
29
29
  end
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -9,15 +9,21 @@ describe Appsignal::Hooks::SequelHook do
9
9
  its(:dependencies_present?) { should be_true }
10
10
 
11
11
  context "with a transaction" do
12
+ let(:transaction) { Appsignal::Transaction.current }
13
+ before do
14
+ Appsignal::Transaction.create("uuid", Appsignal::Transaction::HTTP_REQUEST, "test")
15
+ db.logger = Logger.new($stdout) # To test #log_duration call
16
+ end
17
+
12
18
  it "should instrument queries" do
13
- Appsignal::Transaction.create('uuid', Appsignal::Transaction::HTTP_REQUEST, 'test')
14
- expect( Appsignal::Transaction.current ).to receive(:start_event)
15
- .at_least(:once)
16
- expect( Appsignal::Transaction.current ).to receive(:finish_event)
19
+ expect(transaction).to receive(:start_event).at_least(:once)
20
+ expect(transaction).to receive(:finish_event)
17
21
  .at_least(:once)
18
22
  .with("sql.sequel", nil, kind_of(String), 1)
19
23
 
20
- db['SELECT 1'].all.to_a
24
+ expect(db).to receive(:log_duration).at_least(:once)
25
+
26
+ db["SELECT 1"].all.to_a
21
27
  end
22
28
  end
23
29
  else
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.0.1
4
+ version: 2.0.2
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: 2016-11-03 00:00:00.000000000 Z
12
+ date: 2016-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack