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: c8e1d5697e1bfb783ebc6f2ea2ba9e90d476c148
4
- data.tar.gz: 1d6f01e6a420998b71837234e4f36246866d4f9e
3
+ metadata.gz: 001edd83e7e7c49aec78b6fdb216fd52668af15f
4
+ data.tar.gz: f72e10bf6da293698c3791466f24d523f6b695fd
5
5
  SHA512:
6
- metadata.gz: 048a744a25f0bdc8c9b96a7d68358af9e9d0862d5cf70a1ded5c69a7dc823cedf9ab727ea9530a72aa904ab828fc1fe19eeef67ed82c6a85eb369f19db0ae696
7
- data.tar.gz: 9d5a3260b8daac46772ced2e7f1ebf20101fa5d64134b288a76453189647ca1196ef7d96e42566e0c326654143df18925d1cdc51e3d8966f9530ca390bd16bbf
6
+ metadata.gz: 67682646ec1fd772c50d17ea56720cd037b83452aa75d32b3b85a5ba84351198002170cb1d5ffae1de514d2970c8ed6f9103a49e8ebe4c392183c525a8b2200d
7
+ data.tar.gz: 74316ba8a014e161bca200d20a822c7e8882535174f5954d632779c2f97846a326776e5d344052c2f3329dd251735310ee9f2508b91d1b55d4ba3f2210190759
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency 'resque', '~> 1.25', '>= 1.25.1'
24
24
  spec.add_dependency 'haml', '~> 4.0', '>= 4.0.5'
25
+ spec.add_runtime_dependency "capistrano", "< 3.0"
25
26
  end
@@ -0,0 +1,7 @@
1
+ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../../lib'))
2
+
3
+ require 'capistrano'
4
+ if Capistrano::Configuration.instance
5
+ require 'recipes/global_error_handler'
6
+ GlobalErrorHandler::Capistrano.load_into Capistrano::Configuration.instance
7
+ end
@@ -1,3 +1,3 @@
1
1
  module GlobalErrorHandler
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -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.10
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-03-13 00:00:00.000000000 Z
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
-