appsignal 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 859c45e8e3c4c18607db69172155bcba95894ff6
4
+ data.tar.gz: 2ce273fbee2435ff234f84caec78b8ff9f980940
5
+ SHA512:
6
+ metadata.gz: 4fb5d774dfbd2dc99f8a2ac4a380dc22641eb7747797c3855311b88e40ea3ce60536456966a1da46f48453d6c33bc2ed21f24c960dda3d51f96779b9e57eb7b4
7
+ data.tar.gz: 01c652ae81255dca073ca584d3702fcfbc0642c8431d6efe6e3835a8217530020f35ebe55535a0f42881d73f886e75931f76b5184f0ba29054d65f616050b213
@@ -1,3 +1,6 @@
1
+ # 0.10.2
2
+ * Bugfix in event payload sanitization
3
+
1
4
  # 0.10.1
2
5
  * Bugfix in event payload sanitization
3
6
 
@@ -116,7 +116,9 @@
116
116
  return if have_values_been_converted_to_primitives?
117
117
  Appsignal::Transaction::ParamsSanitizer.sanitize!(@process_action_event.payload) if @process_action_event
118
118
  @events.map do |o|
119
- Appsignal::Transaction::ParamsSanitizer.sanitize!(o.payload)
119
+ o.payload.each do |key, value|
120
+ o.payload[key] = Appsignal::Transaction::ParamsSanitizer.sanitize(value)
121
+ end
120
122
  end
121
123
  add_sanitized_context!
122
124
  @have_values_been_converted_to_primitives = true
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.10.1'
2
+ VERSION = '0.10.2'
3
3
  end
@@ -1,5 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
+ class Smash < Hash
4
+ def []=(key, val)
5
+ raise 'the roof'
6
+ end
7
+ end
8
+
3
9
  describe Appsignal::Transaction do
4
10
  before :all do
5
11
  start_agent
@@ -251,30 +257,40 @@ describe Appsignal::Transaction do
251
257
  let(:action_event_payload) { transaction.process_action_event.payload }
252
258
  let(:event_payload) { transaction.events.first.payload }
253
259
  let(:weird_class) { Class.new }
260
+ let(:smash) { Smash.new.merge!(:foo => 'bar') }
254
261
 
255
262
  context "with values that need to be converted" do
256
263
  context "process action event payload" do
257
264
  subject { action_event_payload }
258
265
  before do
259
266
  action_event_payload.clear
260
- action_event_payload.
261
- merge!(:model => {:with => [:weird, weird_class]})
267
+ action_event_payload.merge!(
268
+ :model => {:with => [:weird, weird_class]},
269
+ )
262
270
  transaction.convert_values_to_primitives!
263
271
  end
264
272
 
265
- it { should == {:model => {:with => [:weird, weird_class.inspect]}} }
273
+ it "should convert all payloads to primitives" do
274
+ should == {
275
+ :model => {:with => [:weird, weird_class.inspect]},
276
+ }
277
+ end
266
278
  end
267
279
 
268
280
  context "payload of events" do
269
281
  subject { event_payload }
270
282
  before do
271
283
  event_payload.clear
272
- event_payload.merge!(:weird => weird_class)
284
+ event_payload.merge!(
285
+ :weird => weird_class,
286
+ :smash => smash
287
+ )
273
288
  transaction.convert_values_to_primitives!
274
289
  end
275
290
 
276
291
  its([:weird]) { should be_a(String) }
277
292
  its([:weird]) { should match(/#<Class:(.*)>/) }
293
+ its([:smash]) { should == {:foo => 'bar'} }
278
294
  end
279
295
  end
280
296
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
5
- prerelease:
4
+ version: 0.10.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Robert Beekman
@@ -13,118 +12,104 @@ authors:
13
12
  autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
- date: 2014-08-14 00:00:00.000000000 Z
15
+ date: 2014-08-15 00:00:00.000000000 Z
17
16
  dependencies:
18
17
  - !ruby/object:Gem::Dependency
19
18
  name: rack
20
19
  requirement: !ruby/object:Gem::Requirement
21
- none: false
22
20
  requirements:
23
- - - ! '>='
21
+ - - ">="
24
22
  - !ruby/object:Gem::Version
25
23
  version: '0'
26
24
  type: :runtime
27
25
  prerelease: false
28
26
  version_requirements: !ruby/object:Gem::Requirement
29
- none: false
30
27
  requirements:
31
- - - ! '>='
28
+ - - ">="
32
29
  - !ruby/object:Gem::Version
33
30
  version: '0'
34
31
  - !ruby/object:Gem::Dependency
35
32
  name: thread_safe
36
33
  requirement: !ruby/object:Gem::Requirement
37
- none: false
38
34
  requirements:
39
- - - ! '>='
35
+ - - ">="
40
36
  - !ruby/object:Gem::Version
41
37
  version: '0'
42
38
  type: :runtime
43
39
  prerelease: false
44
40
  version_requirements: !ruby/object:Gem::Requirement
45
- none: false
46
41
  requirements:
47
- - - ! '>='
42
+ - - ">="
48
43
  - !ruby/object:Gem::Version
49
44
  version: '0'
50
45
  - !ruby/object:Gem::Dependency
51
46
  name: rake
52
47
  requirement: !ruby/object:Gem::Requirement
53
- none: false
54
48
  requirements:
55
- - - ! '>='
49
+ - - ">="
56
50
  - !ruby/object:Gem::Version
57
51
  version: '0'
58
52
  type: :development
59
53
  prerelease: false
60
54
  version_requirements: !ruby/object:Gem::Requirement
61
- none: false
62
55
  requirements:
63
- - - ! '>='
56
+ - - ">="
64
57
  - !ruby/object:Gem::Version
65
58
  version: '0'
66
59
  - !ruby/object:Gem::Dependency
67
60
  name: rspec
68
61
  requirement: !ruby/object:Gem::Requirement
69
- none: false
70
62
  requirements:
71
- - - ~>
63
+ - - "~>"
72
64
  - !ruby/object:Gem::Version
73
65
  version: 2.14.1
74
66
  type: :development
75
67
  prerelease: false
76
68
  version_requirements: !ruby/object:Gem::Requirement
77
- none: false
78
69
  requirements:
79
- - - ~>
70
+ - - "~>"
80
71
  - !ruby/object:Gem::Version
81
72
  version: 2.14.1
82
73
  - !ruby/object:Gem::Dependency
83
74
  name: pry
84
75
  requirement: !ruby/object:Gem::Requirement
85
- none: false
86
76
  requirements:
87
- - - ! '>='
77
+ - - ">="
88
78
  - !ruby/object:Gem::Version
89
79
  version: '0'
90
80
  type: :development
91
81
  prerelease: false
92
82
  version_requirements: !ruby/object:Gem::Requirement
93
- none: false
94
83
  requirements:
95
- - - ! '>='
84
+ - - ">="
96
85
  - !ruby/object:Gem::Version
97
86
  version: '0'
98
87
  - !ruby/object:Gem::Dependency
99
88
  name: timecop
100
89
  requirement: !ruby/object:Gem::Requirement
101
- none: false
102
90
  requirements:
103
- - - ! '>='
91
+ - - ">="
104
92
  - !ruby/object:Gem::Version
105
93
  version: '0'
106
94
  type: :development
107
95
  prerelease: false
108
96
  version_requirements: !ruby/object:Gem::Requirement
109
- none: false
110
97
  requirements:
111
- - - ! '>='
98
+ - - ">="
112
99
  - !ruby/object:Gem::Version
113
100
  version: '0'
114
101
  - !ruby/object:Gem::Dependency
115
102
  name: webmock
116
103
  requirement: !ruby/object:Gem::Requirement
117
- none: false
118
104
  requirements:
119
- - - ! '>='
105
+ - - ">="
120
106
  - !ruby/object:Gem::Version
121
107
  version: '0'
122
108
  type: :development
123
109
  prerelease: false
124
110
  version_requirements: !ruby/object:Gem::Requirement
125
- none: false
126
111
  requirements:
127
- - - ! '>='
112
+ - - ">="
128
113
  - !ruby/object:Gem::Version
129
114
  version: '0'
130
115
  description: The official appsignal.com gem
@@ -135,8 +120,8 @@ executables:
135
120
  extensions: []
136
121
  extra_rdoc_files: []
137
122
  files:
138
- - .gitignore
139
- - .travis.yml
123
+ - ".gitignore"
124
+ - ".travis.yml"
140
125
  - CHANGELOG.md
141
126
  - Gemfile
142
127
  - LICENSE
@@ -239,27 +224,26 @@ files:
239
224
  homepage: https://github.com/appsignal/appsignal
240
225
  licenses:
241
226
  - MIT
227
+ metadata: {}
242
228
  post_install_message:
243
229
  rdoc_options: []
244
230
  require_paths:
245
231
  - lib
246
232
  required_ruby_version: !ruby/object:Gem::Requirement
247
- none: false
248
233
  requirements:
249
- - - ! '>='
234
+ - - ">="
250
235
  - !ruby/object:Gem::Version
251
236
  version: 1.9.3
252
237
  required_rubygems_version: !ruby/object:Gem::Requirement
253
- none: false
254
238
  requirements:
255
- - - ! '>='
239
+ - - ">="
256
240
  - !ruby/object:Gem::Version
257
241
  version: '0'
258
242
  requirements: []
259
243
  rubyforge_project:
260
- rubygems_version: 1.8.23
244
+ rubygems_version: 2.2.2
261
245
  signing_key:
262
- specification_version: 3
246
+ specification_version: 4
263
247
  summary: Logs performance and exception data from your app to appsignal.com
264
248
  test_files:
265
249
  - spec/lib/appsignal/agent_spec.rb