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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f6e2eaa16fe3379daa8cc8082a6b96486c066f6
4
- data.tar.gz: 67d609d9cd2d8b8ba2a0492b40bca3cb90ef029d
3
+ metadata.gz: 8dc71a44278aeb3ebfa9386916e449696bc318de
4
+ data.tar.gz: a335e072cff746c820793c24915e6db621f07cdd
5
5
  SHA512:
6
- metadata.gz: c338ad09369de8ba41909e800d62d05fef5ffc9f3265b21ff41a781fc5160aef5972380b1661cecd1d2fd9a1cf009e5b97dd6d012b121d74831b1b7f82d187e1
7
- data.tar.gz: 5463f2f232071da5fe070b4e5b8b3d360eb211c570396ae79bb1310a34a3a3eac05a89e75a2513aa58d1b7afec919a0623c078d8f733c7c7190fa51507985ad8
6
+ metadata.gz: 7905745f4510f334eeb36ec61b15e53b000a658ab1b5d47054743e4629ec99541652bce7df9b4beadaaf3e4ce8ff235102a9010f981e3f495cfc6d16c787b052
7
+ data.tar.gz: 129eeb7aeee1d1728cc21ba69cb894d8901b1d6d5c067e695c3c6bd6eecd791469e74831fada0cee7811b6a6323cd70badf6472870b26a44ef9b561c03d0eebc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Appsignal
4
- VERSION = "2.6.0.beta.1".freeze
4
+ VERSION = "2.6.0".freeze
5
5
  end
@@ -46,11 +46,11 @@ describe Appsignal::EventFormatter do
46
46
  end
47
47
 
48
48
  context "registering and unregistering formatters" do
49
- it "should register a formatter" do
49
+ it "registers a formatter" do
50
50
  expect(klass.formatters["mock"]).to be_instance_of(MockFormatter)
51
51
  end
52
52
 
53
- it "should know wether a formatter is registered" do
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 "should register a custom formatter" do
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 "should not have a formatter that's not registered" do
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 "should unregister a formatter if the registered one has the same class" do
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 "should not register two formatters for the same name" do
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 "should not register deprecated formatter" do
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 "should initialize deprecated formatters" do
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 "should return nil if there is no formatter registered" do
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 "should call the formatter if it is registered and use a value set in the initializer" do
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.beta.1
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-05 00:00:00.000000000 Z
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: 1.3.1
362
+ version: '0'
363
363
  requirements: []
364
364
  rubyforge_project:
365
365
  rubygems_version: 2.6.14