appsignal 2.6.0.beta.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/event_formatter_spec.rb +10 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dc71a44278aeb3ebfa9386916e449696bc318de
|
4
|
+
data.tar.gz: a335e072cff746c820793c24915e6db621f07cdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7905745f4510f334eeb36ec61b15e53b000a658ab1b5d47054743e4629ec99541652bce7df9b4beadaaf3e4ce8ff235102a9010f981e3f495cfc6d16c787b052
|
7
|
+
data.tar.gz: 129eeb7aeee1d1728cc21ba69cb894d8901b1d6d5c067e695c3c6bd6eecd791469e74831fada0cee7811b6a6323cd70badf6472870b26a44ef9b561c03d0eebc
|
data/lib/appsignal/version.rb
CHANGED
@@ -46,11 +46,11 @@ describe Appsignal::EventFormatter do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
context "registering and unregistering formatters" do
|
49
|
-
it "
|
49
|
+
it "registers a formatter" do
|
50
50
|
expect(klass.formatters["mock"]).to be_instance_of(MockFormatter)
|
51
51
|
end
|
52
52
|
|
53
|
-
it "
|
53
|
+
it "knows whether a formatter is registered" do
|
54
54
|
expect(klass.registered?("mock")).to be_truthy
|
55
55
|
expect(klass.registered?("mock", MockFormatter)).to be_truthy
|
56
56
|
expect(klass.registered?("mock", Hash)).to be_falsy
|
@@ -61,7 +61,7 @@ describe Appsignal::EventFormatter do
|
|
61
61
|
expect(klass.registered?("mock.dependent")).to be_falsy
|
62
62
|
end
|
63
63
|
|
64
|
-
it "
|
64
|
+
it "registers a custom formatter" do
|
65
65
|
klass.register("mock.specific", MockFormatter)
|
66
66
|
|
67
67
|
expect(klass.formatter_classes["mock.specific"]).to eq MockFormatter
|
@@ -70,11 +70,11 @@ describe Appsignal::EventFormatter do
|
|
70
70
|
expect(klass.formatters["mock.specific"].body).to eq "some value"
|
71
71
|
end
|
72
72
|
|
73
|
-
it "
|
73
|
+
it "does not know a formatter that's not registered" do
|
74
74
|
expect(klass.formatters["nonsense"]).to be_nil
|
75
75
|
end
|
76
76
|
|
77
|
-
it "
|
77
|
+
it "unregistering a formatter if the registered one has the same class" do
|
78
78
|
klass.register("mock.unregister", MockFormatter)
|
79
79
|
|
80
80
|
klass.unregister("mock.unregister", Hash)
|
@@ -84,14 +84,14 @@ describe Appsignal::EventFormatter do
|
|
84
84
|
expect(klass.registered?("mock.unregister")).to be_falsy
|
85
85
|
end
|
86
86
|
|
87
|
-
it "
|
87
|
+
it "does not register two formatters for the same name" do
|
88
88
|
expect(Appsignal.logger).to receive(:warn)
|
89
89
|
.with("Formatter for 'mock.twice' already registered, not registering 'MockFormatter'")
|
90
90
|
klass.register("mock.twice", MockFormatter)
|
91
91
|
klass.register("mock.twice", MockFormatter)
|
92
92
|
end
|
93
93
|
|
94
|
-
it "
|
94
|
+
it "does not register deprecated formatters" do
|
95
95
|
expect(Appsignal.logger).to receive(:warn)
|
96
96
|
.with("Formatter for 'mock.deprecated' is using a deprecated registration method. " \
|
97
97
|
"This event formatter will not be loaded. " \
|
@@ -103,7 +103,7 @@ describe Appsignal::EventFormatter do
|
|
103
103
|
expect(Appsignal::EventFormatter.deprecated_formatter_classes.keys).to include("mock.deprecated")
|
104
104
|
end
|
105
105
|
|
106
|
-
it "
|
106
|
+
it "initializes deprecated formatters" do
|
107
107
|
deprecated_formatter
|
108
108
|
Appsignal::EventFormatter.initialize_deprecated_formatters
|
109
109
|
|
@@ -112,11 +112,11 @@ describe Appsignal::EventFormatter do
|
|
112
112
|
end
|
113
113
|
|
114
114
|
context "calling formatters" do
|
115
|
-
it "
|
115
|
+
it "returns nil if there is no formatter registered" do
|
116
116
|
expect(klass.format("nonsense", {})).to be_nil
|
117
117
|
end
|
118
118
|
|
119
|
-
it "
|
119
|
+
it "calls the formatter if it is registered and use a value set in the initializer" do
|
120
120
|
expect(klass.format("mock", {})).to eq ["title", "some value"]
|
121
121
|
end
|
122
122
|
end
|
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.6.0
|
4
|
+
version: 2.6.0
|
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: 2018-05-
|
12
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -357,9 +357,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
357
357
|
version: '1.9'
|
358
358
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
359
|
requirements:
|
360
|
-
- - "
|
360
|
+
- - ">="
|
361
361
|
- !ruby/object:Gem::Version
|
362
|
-
version:
|
362
|
+
version: '0'
|
363
363
|
requirements: []
|
364
364
|
rubyforge_project:
|
365
365
|
rubygems_version: 2.6.14
|