global_error_handler 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 001edd83e7e7c49aec78b6fdb216fd52668af15f
|
4
|
+
data.tar.gz: f72e10bf6da293698c3791466f24d523f6b695fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67682646ec1fd772c50d17ea56720cd037b83452aa75d32b3b85a5ba84351198002170cb1d5ffae1de514d2970c8ed6f9103a49e8ebe4c392183c525a8b2200d
|
7
|
+
data.tar.gz: 74316ba8a014e161bca200d20a822c7e8882535174f5954d632779c2f97846a326776e5d344052c2f3329dd251735310ee9f2508b91d1b55d4ba3f2210190759
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module GlobalErrorHandler
|
2
|
+
class Capistrano
|
3
|
+
def self.load_into(config)
|
4
|
+
config.load do
|
5
|
+
namespace :global_error_handler do
|
6
|
+
desc 'Subscribe to expiration'
|
7
|
+
task :subscribe do
|
8
|
+
run %Q{cd #{latest_release} && RAILS_ENV=#{rails_env} nohup rake global_error_handler:subscribe_to_expired >/dev/null 2>&1 & sleep 2}
|
9
|
+
end
|
10
|
+
|
11
|
+
desc 'Unsubscribe from expiration'
|
12
|
+
task :unsubscribe do
|
13
|
+
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} global_error_handler:unsubscribe_from_expired}
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Update Subscription to expiration'
|
17
|
+
task :update_subscription do
|
18
|
+
unsubscribe
|
19
|
+
subscribe
|
20
|
+
end
|
21
|
+
after 'deploy:restart', 'global_error_handler:update_subscription'
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: global_error_handler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrii Rudenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,6 +84,20 @@ dependencies:
|
|
84
84
|
- - ">="
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 4.0.5
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: capistrano
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "<"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '3.0'
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '3.0'
|
87
101
|
description: On the middleware level catch an exception from Rails app and store in
|
88
102
|
the separated Redis database.
|
89
103
|
email:
|
@@ -97,11 +111,11 @@ files:
|
|
97
111
|
- LICENSE.txt
|
98
112
|
- README.md
|
99
113
|
- Rakefile
|
100
|
-
- config/recipes/global_error_handler.rb
|
101
114
|
- config/redis_example.yml
|
102
115
|
- global_error_handler.gemspec
|
103
116
|
- lib/global_error_handler.rb
|
104
117
|
- lib/global_error_handler/app_exception.rb
|
118
|
+
- lib/global_error_handler/capistrano_recipes.rb
|
105
119
|
- lib/global_error_handler/handler.rb
|
106
120
|
- lib/global_error_handler/middleware.rb
|
107
121
|
- lib/global_error_handler/parser.rb
|
@@ -114,6 +128,7 @@ files:
|
|
114
128
|
- lib/global_error_handler/server/views/index.html.haml
|
115
129
|
- lib/global_error_handler/server/views/show.html.haml
|
116
130
|
- lib/global_error_handler/version.rb
|
131
|
+
- lib/recipes/global_error_handler.rb
|
117
132
|
- lib/tasks/global_error_handler.rake
|
118
133
|
homepage: https://github.com/kolobock/global_error_handler/
|
119
134
|
licenses:
|
@@ -1,19 +0,0 @@
|
|
1
|
-
namespace :global_error_handler do
|
2
|
-
desc 'Subscribe to expiration'
|
3
|
-
task :subscribe do
|
4
|
-
run %Q{cd #{latest_release} && RAILS_ENV=#{rails_env} nohup rake global_error_handler:subscribe_to_expired >/dev/null 2>&1 & sleep 2}
|
5
|
-
end
|
6
|
-
|
7
|
-
desc 'Unsubscribe from expiration'
|
8
|
-
task :unsubscribe do
|
9
|
-
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} global_error_handler:unsubscribe_from_expired}
|
10
|
-
end
|
11
|
-
|
12
|
-
desc 'Update Subscription to expiration'
|
13
|
-
task :update_subscription do
|
14
|
-
unsubscribe
|
15
|
-
subscribe
|
16
|
-
end
|
17
|
-
after 'deploy:restart', 'global_error_handler:update_subscription'
|
18
|
-
end
|
19
|
-
|