appsignal 0.11.0.beta.1 → 0.11.0.beta.2

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: d94bbce0b6f553797da38925a40704be00398b01
4
- data.tar.gz: 27e0ba9502c0f57b5842980dcfd9d72f66a4ae78
3
+ metadata.gz: 63d0b9ad8e612b7cada5847340bb81082f031832
4
+ data.tar.gz: 78e3cdba200a431b45022b8c66e199a7333ff9f4
5
5
  SHA512:
6
- metadata.gz: aca7235ba46c21dfe16effded54ca808aea9f3faa7e87359374e1caac5ea8570ceb16f8b36454ab42b91a6c6e8eec54bf05471b2ee71ac8462071c6b1ac0eb93
7
- data.tar.gz: ffc98ceed5e8343981fa11237a9c9a12350d66d7973b9aa16774c53d5f9a43f166c69bf3152187e4f62b8d7a294954227a5f9d5dc74431c472a0af36dfc880b6
6
+ metadata.gz: c58a90d4aa99cd4037c42a572f1db0feeccd1faddef9cfc521ab7d5c401fcc5694cd4cf20a1e59bda2dcda8f030eac0b55d8d0a7827ec1cf68d0e7a6790c5724
7
+ data.tar.gz: 4ad72753a5ae524a1b8698e7fed5a5b5f353c16c98ccc0c4a384140dee6524a89ef1895e4cbb636468277a397a93345291f6a1c0ede8d8d39eba7575b948a23b
@@ -55,6 +55,11 @@ class Appsignal::Event::MopedEvent < Appsignal::Event
55
55
  :update => sanitize(payload.update),
56
56
  :flags => payload.flags,
57
57
  }
58
+ when 'Moped::Protocol::KillCursors'
59
+ {
60
+ :type => 'KillCursors',
61
+ :number_of_cursor_ids => payload.number_of_cursor_ids
62
+ }
58
63
  else
59
64
  {
60
65
  :type => payload.class.to_s.gsub('Moped::Protocol::', ''),
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.11.0.beta.1'
2
+ VERSION = '0.11.0.beta.2'
3
3
  end
@@ -122,33 +122,33 @@ describe Appsignal::Event::MopedEvent do
122
122
  end
123
123
  end
124
124
 
125
- context "Moped::Protocol::Other" do
125
+ context "Moped::Protocol::KillCursors" do
126
126
  let(:payload) do
127
127
  double(
128
- :full_collection_name => 'database.collection',
129
- :class => double(:to_s => 'Moped::Protocol::Other')
128
+ :number_of_cursor_ids => 2,
129
+ :class => double(:to_s => 'Moped::Protocol::KillCursors')
130
130
  )
131
131
  end
132
132
 
133
133
  it "should transform the payload" do
134
134
  expect( event.payload_from_op(payload) ).to eq(
135
- :type => "Other",
136
- :database => "database.collection"
135
+ :type => "KillCursors",
136
+ :number_of_cursor_ids => 2
137
137
  )
138
138
  end
139
139
  end
140
140
 
141
- context "Moped::Protocol::KillCursors" do
141
+ context "Moped::Protocol::Other" do
142
142
  let(:payload) do
143
143
  double(
144
144
  :full_collection_name => 'database.collection',
145
- :class => double(:to_s => 'Moped::Protocol::KillCursors')
145
+ :class => double(:to_s => 'Moped::Protocol::Other')
146
146
  )
147
147
  end
148
148
 
149
149
  it "should transform the payload" do
150
150
  expect( event.payload_from_op(payload) ).to eq(
151
- :type => "KillCursors",
151
+ :type => "Other",
152
152
  :database => "database.collection"
153
153
  )
154
154
  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: 0.11.0.beta.1
4
+ version: 0.11.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman