ratchetio 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/lib/ratchetio/version.rb +1 -1
- data/lib/ratchetio.rb +1 -1
- data/spec/ratchetio_spec.rb +6 -4
- metadata +3 -2
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.5.2**
|
4
|
+
- Fix compat issue with delayed_job below version 3. Exceptions raised by delayed_job below version 3 will not be automatically caught; upgrade to v3 or catch and report by hand.
|
5
|
+
|
3
6
|
**0.5.1**
|
4
7
|
- Save the exception uuid in `env['ratchetio.exception_uuid']` for display in user-facing error pages.
|
5
8
|
|
data/lib/ratchetio/version.rb
CHANGED
data/lib/ratchetio.rb
CHANGED
@@ -7,7 +7,7 @@ require 'uri'
|
|
7
7
|
require "girl_friday" if defined?(GirlFriday)
|
8
8
|
|
9
9
|
require 'ratchetio/configuration'
|
10
|
-
require 'ratchetio/delayed_job' if defined?(Delayed)
|
10
|
+
require 'ratchetio/delayed_job' if defined?(Delayed) && defined?(Delayed::Plugins)
|
11
11
|
require 'ratchetio/goalie' if defined?(Goalie)
|
12
12
|
require 'ratchetio/railtie' if defined?(Rails)
|
13
13
|
require 'ratchetio/version'
|
data/spec/ratchetio_spec.rb
CHANGED
@@ -85,10 +85,12 @@ describe Ratchetio do
|
|
85
85
|
payload["data"]["body"]["trace"]["exception"]["message"].should == "oops"
|
86
86
|
end
|
87
87
|
|
88
|
-
it 'should return the exception data with a uuid' do
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
it 'should return the exception data with a uuid, on platforms with SecureRandom' do
|
89
|
+
if defined?(SecureRandom) and SecureRandom.respond_to?(:uuid)
|
90
|
+
Ratchetio.stub(:schedule_payload) do |*args| end
|
91
|
+
exception_data = Ratchetio.report_exception(StandardError.new("oops"))
|
92
|
+
exception_data[:uuid].should_not be_nil
|
93
|
+
end
|
92
94
|
end
|
93
95
|
end
|
94
96
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ratchetio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -254,3 +254,4 @@ test_files:
|
|
254
254
|
- spec/ratchetio_spec.rb
|
255
255
|
- spec/spec_helper.rb
|
256
256
|
- spec/support/devise.rb
|
257
|
+
has_rdoc:
|