appsignal 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/appsignal/hooks/sequel.rb +2 -2
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/hooks/sequel_spec.rb +11 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f601749cf77425917a239f3bff1b9911ce82c7b
|
4
|
+
data.tar.gz: 1453a4ac204b7dba73a9df72c1a3364e7a8f052c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01822ca7349b66f623263eafcc56c0dc7544e7a09bfdfd6ebdfaf3516ecd6ced1f5a5bccfd00cf6c6fa80ed463600ef1dba72121be7728c324560e131401fa49
|
7
|
+
data.tar.gz: 1e24a6931e772c24eafd6c7d6d7368533c676458ff7f13d9e79a765e4f14f5eec56f7d26335e42799c4ce12b96d80e0487b993b2fb259787655f0743a81afb42
|
data/CHANGELOG.md
CHANGED
@@ -9,7 +9,7 @@ module Appsignal
|
|
9
9
|
sql,
|
10
10
|
Appsignal::EventFormatter::SQL_BODY_FORMAT
|
11
11
|
) do
|
12
|
-
|
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
|
-
|
26
|
+
super
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
data/lib/appsignal/version.rb
CHANGED
@@ -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
|
-
|
14
|
-
expect(
|
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
|
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.
|
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-
|
12
|
+
date: 2016-11-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|