appsignal 0.8.6 → 0.8.7.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTdmNjgwM2IzMDBmNzE0ZGQxM2IwODRhMzdkM2RhZmVlOTIxNWEzMA==
4
+ MzE4ZGU1ZGJkN2Y2YmJiYTg4MjlkNjUwZDQ3Y2EzOTgyMzg2NDY0Zg==
5
5
  data.tar.gz: !binary |-
6
- YTA1OWI5NjBmN2FmZmIwOGMxZjRkMmEwODkxODkwMDNiMDliMGI3YQ==
6
+ OGY1OTYxMzk4MTMyNjcyM2NhMWE0NDY3NDVjNjZhYWEwODU3ODM1Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWQ2ZTE0Y2I3NjM2MDljZGZmYmFlOWI3NmQ2MGNiNWJiODJhYWNjMWY3MjYx
10
- MjQyN2ZlODQ2M2ZkZGI2MmMyZjIwYTcxNGFhZDk3OTFiZDg4NGVjNmFlMDdk
11
- MGUxMzliYzdjNjA0YTQ4YWEwMDJjMTk2MzdiMDQ3NzQ4NzZiMzU=
9
+ ZGFmYzU4ZWUzNDg5NGMwNzU3ZmY3YWRmNTE0NTY0MGNkNWY3Yjk4MGI4MTYz
10
+ NDQ0MzdkNzdmOGFkNWNiYzUwYjlkNDE4NmFmY2VkNDIwNDkxZWFjNTNkYTU1
11
+ MTg4ZjUxZDdkMDI5NWI3ZDRmNWE4YzVjMWY0Y2IzMGY4OGJmM2I=
12
12
  data.tar.gz: !binary |-
13
- Y2RjZmEzMDg0ZTJhYWFkMzMwYTQxZTE4ZGI0NzMzYzc5ODFjNjZlN2IzMDFi
14
- NjljNTljNmYwMzU1NTFmNGU2ZTE4MWNhMzgzMjA1Y2M3ZGJlODg2NmQwMTAy
15
- NzUzZTQ5ZGUzMGQ4ZjNiMDc5YTg4NjRiMWZkMjgwYzYxZjEzZWM=
13
+ NWNlNTIwNWQ1ZWQ3YWFiZjU1M2UzYzYzNTdjYmI4YTM3NzMyYjAyYjAxYTc3
14
+ NWM3N2ZiZmNhZDQwNjBhOTY3OGJiOTNhMzY4M2RmNjAxOTY5OWVjNWY3OWQ3
15
+ NWI3NjZiYjgzYzQ2NmViZDMzOWUyYjQ1OTBjZDhhMWViNWIxZGU=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.8.7
2
+ * Dup process action event to avoid threading issue
3
+
1
4
  # 0.8.6
2
5
  * Resque support (beta)
3
6
  * Support tags in Appsignal.send_exception
data/lib/appsignal/cli.rb CHANGED
@@ -44,7 +44,7 @@ module Appsignal
44
44
  @config ||= Appsignal::Config.new(
45
45
  ENV['PWD'],
46
46
  options[:environment],
47
- @initial_config,
47
+ initial_config,
48
48
  logger
49
49
  )
50
50
  end
@@ -50,17 +50,17 @@
50
50
  end
51
51
 
52
52
  def set_process_action_event(event)
53
- @process_action_event = event
54
53
  return unless event && event.payload
55
- @action = "#{event.payload[:controller]}##{event.payload[:action]}"
54
+ @process_action_event = event.dup
55
+ @action = "#{@process_action_event.payload[:controller]}##{@process_action_event.payload[:action]}"
56
56
  @kind = 'http_request'
57
57
  set_http_queue_start
58
58
  end
59
59
 
60
60
  def set_perform_job_event(event)
61
- @process_action_event = event
62
61
  return unless event && event.payload
63
- @action = "#{event.payload[:class]}##{event.payload[:method]}"
62
+ @process_action_event = event.dup
63
+ @action = "#{@process_action_event.payload[:class]}##{@process_action_event.payload[:method]}"
64
64
  @kind = 'background_job'
65
65
  set_background_queue_start
66
66
  end
@@ -98,7 +98,9 @@
98
98
 
99
99
  def convert_values_to_primitives!
100
100
  Appsignal::Transaction::ParamsSanitizer.sanitize!(@process_action_event.payload) if @process_action_event
101
- @events.each { |o| Appsignal::Transaction::ParamsSanitizer.sanitize!(o.payload) }
101
+ @events.map do |o|
102
+ Appsignal::Transaction::ParamsSanitizer.sanitize(o.payload)
103
+ end
102
104
  add_sanitized_context!
103
105
  end
104
106
 
@@ -1,3 +1,3 @@
1
1
  module Appsignal
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.7.alpha.1'
3
3
  end
@@ -50,7 +50,8 @@ describe Appsignal::Transaction do
50
50
  let(:process_action_event) { notification_event }
51
51
 
52
52
  it 'should add a process action event' do
53
- transaction.process_action_event.should == process_action_event
53
+ transaction.process_action_event.name.should == process_action_event.name
54
+ transaction.process_action_event.payload.should == process_action_event.payload
54
55
  end
55
56
 
56
57
  it "should set the action" do
@@ -77,8 +78,9 @@ describe Appsignal::Transaction do
77
78
  )
78
79
  end
79
80
 
80
- it 'should add a process action event' do
81
- transaction.process_action_event.should == perform_job_event
81
+ it 'should add a perform job event' do
82
+ transaction.process_action_event.name.should == perform_job_event.name
83
+ transaction.process_action_event.payload.should == perform_job_event.payload
82
84
  end
83
85
 
84
86
  it "should set the action" do
@@ -233,7 +235,7 @@ describe Appsignal::Transaction do
233
235
  transaction.convert_values_to_primitives!
234
236
  end
235
237
 
236
- it { should == {:weird => weird_class.inspect} }
238
+ its([:weird]) { should be_a(Class) }
237
239
  end
238
240
  end
239
241
 
@@ -20,8 +20,15 @@ if rails_present?
20
20
  include GeneratorSpec::TestCase
21
21
  destination tmp_dir
22
22
 
23
+ let(:err_stream) { StringIO.new }
24
+
23
25
  before do
24
26
  FileUtils.rm_rf(tmp_dir)
27
+ @original_stderr = $stderr
28
+ $stderr = err_stream
29
+ end
30
+ after do
31
+ $stderr = @original_stderr
25
32
  end
26
33
 
27
34
  context "with key" do
@@ -109,6 +116,7 @@ if rails_present?
109
116
  no_file 'deploy.rb'
110
117
  end
111
118
  }
119
+ err_stream.string.should include "No value provided for required arguments 'push_api_key'"
112
120
  end
113
121
  end
114
122
 
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.8.6
4
+ version: 0.8.7.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-02-21 00:00:00.000000000 Z
15
+ date: 2014-03-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -241,9 +241,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
241
  version: 1.9.3
242
242
  required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  requirements:
244
- - - ! '>='
244
+ - - ! '>'
245
245
  - !ruby/object:Gem::Version
246
- version: '0'
246
+ version: 1.3.1
247
247
  requirements: []
248
248
  rubyforge_project:
249
249
  rubygems_version: 2.0.3