delayed_job-rails_reloader 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +8 -0
- data/README.md +17 -0
- data/lib/delayed/rails_reloader/plugin.rb +20 -0
- data/lib/delayed/rails_reloader/railtie.rb +9 -0
- data/lib/delayed/rails_reloader/version.rb +5 -0
- data/lib/delayed_job-rails_reloader.rb +2 -0
- metadata +103 -0
data/LICENSE
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
Copyright (c) 2012 Viximo, Inc.
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
Delayed::RailsReloader
|
2
|
+
===
|
3
|
+
|
4
|
+
Reload your classes on each job run when running in development.
|
5
|
+
|
6
|
+
Installation:
|
7
|
+
---
|
8
|
+
In your Gemfile add `gem 'delayed_job-rails_reloader'`
|
9
|
+
|
10
|
+
Configuration:
|
11
|
+
---
|
12
|
+
RailsReloader will respect the value of `cache_classes` in your Rails environment, enabling reloading when caching is false.
|
13
|
+
|
14
|
+
Authors:
|
15
|
+
---
|
16
|
+
* Aaron Pfeifer (obrie)
|
17
|
+
* Matt Griffin (betamatt)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'delayed/plugin'
|
2
|
+
|
3
|
+
module Delayed
|
4
|
+
module RailsReloader
|
5
|
+
|
6
|
+
class Plugin < Delayed::Plugin
|
7
|
+
callbacks do |lifecycle|
|
8
|
+
lifecycle.around(:perform) do |worker, job, &block|
|
9
|
+
begin
|
10
|
+
ActionDispatch::Reloader.prepare!
|
11
|
+
block.call
|
12
|
+
ensure
|
13
|
+
ActionDispatch::Reloader.cleanup!
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: delayed_job-rails_reloader
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Aaron Pfeifer
|
14
|
+
- Matt Griffin
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2012-02-10 00:00:00 -05:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: delayed_job
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 7
|
31
|
+
segments:
|
32
|
+
- 3
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
version: 3.0.0
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rails
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 7
|
47
|
+
segments:
|
48
|
+
- 3
|
49
|
+
- 0
|
50
|
+
version: "3.0"
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
description: " Reload classes on each job run. This plugin assumes that you are running DelayedJob in a Rails environment.\n"
|
54
|
+
email: viximo-ops@viximo.com
|
55
|
+
executables: []
|
56
|
+
|
57
|
+
extensions: []
|
58
|
+
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
61
|
+
files:
|
62
|
+
- README.md
|
63
|
+
- LICENSE
|
64
|
+
- lib/delayed/rails_reloader/plugin.rb
|
65
|
+
- lib/delayed/rails_reloader/railtie.rb
|
66
|
+
- lib/delayed/rails_reloader/version.rb
|
67
|
+
- lib/delayed_job-rails_reloader.rb
|
68
|
+
has_rdoc: false
|
69
|
+
homepage: http://github.com/Viximo/delayed_job-rails_reloader
|
70
|
+
licenses:
|
71
|
+
- MIT
|
72
|
+
post_install_message:
|
73
|
+
rdoc_options: []
|
74
|
+
|
75
|
+
require_paths:
|
76
|
+
- lib
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
hash: 3
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
version: "0"
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 3
|
92
|
+
segments:
|
93
|
+
- 0
|
94
|
+
version: "0"
|
95
|
+
requirements: []
|
96
|
+
|
97
|
+
rubyforge_project:
|
98
|
+
rubygems_version: 1.5.3
|
99
|
+
signing_key:
|
100
|
+
specification_version: 3
|
101
|
+
summary: Reload classes on each job run.
|
102
|
+
test_files: []
|
103
|
+
|