trinidad_scheduler_extension 0.1.1 → 0.1.2
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.
|
@@ -4,6 +4,10 @@ module TrinidadScheduler
|
|
|
4
4
|
|
|
5
5
|
def initialize(servlet_context, options)
|
|
6
6
|
@servlet_context = servlet_context
|
|
7
|
+
# $servlet_context is set by jruby-rack.
|
|
8
|
+
# If the sheduler jobs are loaded before the web app has been loaded they fail to initialize because $servlet_context is nil.
|
|
9
|
+
# We prevent this to happen here.
|
|
10
|
+
$servlet_context ||= servlet_context
|
|
7
11
|
@options = options
|
|
8
12
|
TrinidadScheduler.store_scheduler_options(@servlet_context, @options)
|
|
9
13
|
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: trinidad_scheduler_extension
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Brandon Dewitt
|
|
@@ -10,8 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
14
|
-
default_executable:
|
|
13
|
+
date: 2011-12-16 00:00:00 Z
|
|
15
14
|
dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
|
17
16
|
name: trinidad_jars
|
|
@@ -53,7 +52,6 @@ files:
|
|
|
53
52
|
- lib/trinidad_scheduler_extension/trinidad_scheduler.rb
|
|
54
53
|
- lib/trinidad_scheduler_extension/version.rb
|
|
55
54
|
- README.md
|
|
56
|
-
has_rdoc: true
|
|
57
55
|
homepage: https://github.com/trinidad/trinidad_scheduler_extension
|
|
58
56
|
licenses: []
|
|
59
57
|
|
|
@@ -77,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
75
|
requirements: []
|
|
78
76
|
|
|
79
77
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 1.
|
|
78
|
+
rubygems_version: 1.8.9
|
|
81
79
|
signing_key:
|
|
82
80
|
specification_version: 3
|
|
83
81
|
summary: "Extension to support scheduled jobs in Trinidad: Extension"
|