ratchetio 0.6.3 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ **0.7.0**
4
+ - Exceptions in Rake tasks are now automatically reported.
5
+
6
+ **0.6.4**
7
+ - Bump multi_json dependency version to 1.6.0
8
+
9
+ **0.6.3**
10
+ - Bump multi_json dependency version to 1.5.1
11
+
3
12
  **0.6.2**
4
13
  - Added EventMachine support
5
14
 
data/lib/ratchetio.rb CHANGED
@@ -15,6 +15,7 @@ require 'ratchetio/delayed_job' if defined?(Delayed) && defined?(Delayed::Plugin
15
15
  require 'ratchetio/sidekiq' if defined?(Sidekiq)
16
16
  require 'ratchetio/goalie' if defined?(Goalie)
17
17
  require 'ratchetio/rack' if defined?(Rack)
18
+ require 'ratchetio/rake' if defined?(Rake)
18
19
  require 'ratchetio/railtie' if defined?(Rails)
19
20
 
20
21
  module Ratchetio
@@ -0,0 +1,9 @@
1
+ module Rake
2
+ class Application
3
+ alias_method :orig_display_error_message, :display_error_message
4
+ def display_error_message(ex)
5
+ Ratchetio.report_exception(ex)
6
+ orig_display_error_message(ex)
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Ratchetio
2
- VERSION = "0.6.3"
2
+ VERSION = "0.7.0"
3
3
  end
data/ratchetio.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.require_paths = ["lib"]
15
15
  gem.version = Ratchetio::VERSION
16
16
 
17
- gem.add_runtime_dependency 'multi_json', '~> 1.5.1'
17
+ gem.add_runtime_dependency 'multi_json', '~> 1.6.0'
18
18
 
19
19
  gem.add_development_dependency 'rails', '~> 3.2.12'
20
20
  gem.add_development_dependency 'devise', '>= 2.1.2'
@@ -151,8 +151,8 @@ describe Ratchetio do
151
151
  c = { :b => b }
152
152
  a[:c] = c
153
153
 
154
- logger_mock.should_receive(:error).with('[Ratchet.io] Error reporting message to Ratchet.io: object references itself')
155
- Ratchetio.report_message("Test message with extra data", 'debug', a)
154
+ logger_mock.should_receive(:error).with(/\[Ratchet.io\] Error reporting message to Ratchet.io: (nesting of \d+ is too deep|object references itself)/)
155
+ Ratchetio.report_message("Test message with circular extra data", 'debug', a)
156
156
  end
157
157
 
158
158
  after(:each) do
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.6.3
4
+ version: 0.7.0
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-02-11 00:00:00.000000000 Z
12
+ date: 2013-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.5.1
21
+ version: 1.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.5.1
29
+ version: 1.6.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,7 @@ files:
136
136
  - lib/ratchetio/rails.rb
137
137
  - lib/ratchetio/rails/controller_methods.rb
138
138
  - lib/ratchetio/railtie.rb
139
+ - lib/ratchetio/rake.rb
139
140
  - lib/ratchetio/rake_tasks.rb
140
141
  - lib/ratchetio/request_data_extractor.rb
141
142
  - lib/ratchetio/sidekiq.rb
@@ -278,4 +279,3 @@ test_files:
278
279
  - spec/requests/home_spec.rb
279
280
  - spec/spec_helper.rb
280
281
  - spec/support/devise.rb
281
- has_rdoc: