trinidad_resque_extension 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trinidad_resque_extension (0.1.0)
4
+ trinidad_resque_extension (0.1.1)
5
5
  rake
6
6
  resque
7
7
  trinidad
@@ -10,17 +10,19 @@ GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
12
  diff-lcs (1.1.2)
13
- jruby-rack (1.0.7)
14
- json (1.4.6-java)
13
+ jruby-rack (1.1.3)
15
14
  mocha (0.9.12)
16
- rack (1.2.2)
17
- rake (0.8.7)
18
- redis (2.1.1)
19
- redis-namespace (0.10.0)
15
+ multi_json (1.0.4)
16
+ rack (1.4.0)
17
+ rack-protection (1.2.0)
18
+ rack
19
+ rake (0.9.2.2)
20
+ redis (2.2.2)
21
+ redis-namespace (1.0.3)
20
22
  redis (< 3.0.0)
21
- resque (1.15.0)
22
- json (~> 1.4.6)
23
- redis-namespace (>= 0.10.0)
23
+ resque (1.19.0)
24
+ multi_json (~> 1.0)
25
+ redis-namespace (~> 1.0.2)
24
26
  sinatra (>= 0.9.2)
25
27
  vegas (~> 0.1.2)
26
28
  rspec (2.5.0)
@@ -31,14 +33,15 @@ GEM
31
33
  rspec-expectations (2.5.0)
32
34
  diff-lcs (~> 1.1.2)
33
35
  rspec-mocks (2.5.0)
34
- sinatra (1.2.0)
35
- rack (~> 1.1)
36
- tilt (>= 1.2.2, < 2.0)
37
- tilt (1.2.2)
38
- trinidad (1.1.0)
39
- jruby-rack (>= 1.0.6)
40
- trinidad_jars (>= 1.0.0)
41
- trinidad_jars (1.0.1)
36
+ sinatra (1.3.2)
37
+ rack (~> 1.3, >= 1.3.6)
38
+ rack-protection (~> 1.2)
39
+ tilt (~> 1.3, >= 1.3.3)
40
+ tilt (1.3.3)
41
+ trinidad (1.3.2)
42
+ jruby-rack (>= 1.1.1)
43
+ trinidad_jars (>= 1.0.1)
44
+ trinidad_jars (1.0.2)
42
45
  vegas (0.1.8)
43
46
  rack (>= 1.0.0)
44
47
 
@@ -0,0 +1,7 @@
1
+ == 0.1.1
2
+
3
+ * Fix rake task initialization error
4
+
5
+ == 0.1.0
6
+
7
+ * Initial release
@@ -53,7 +53,9 @@ module Trinidad
53
53
  end
54
54
 
55
55
  def invoke_workers(task)
56
- Rake::Task[task].invoke
56
+ t = Rake::Task[task]
57
+ t.application.options[:trace] = true
58
+ t.invoke
57
59
  rescue Errno::ECONNREFUSED
58
60
  puts "WARN: Cannot connect with Redis. Please restart the server when Redis is up again."
59
61
  @redis_econnref = true
@@ -2,7 +2,7 @@ module Trinidad
2
2
  module Extensions
3
3
  require File.expand_path('../resque_lifecycle_listener', __FILE__)
4
4
  module Resque
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  end
7
7
 
8
8
  class ResqueApp < Trinidad::RackupWebApp
@@ -67,8 +67,14 @@ module Trinidad
67
67
 
68
68
  def trap_signals(tomcat)
69
69
  # trap signals and stop tomcat properly to make sure resque is also stopped properly
70
- trap('INT') { tomcat.stop }
71
- trap('TERM') { tomcat.stop }
70
+ trap('INT') do
71
+ ::Resque.workers.each { |w| w.shutdown! }
72
+ tomcat.stop
73
+ end
74
+ trap('TERM') do
75
+ ::Resque.workers.each { |w| w.shutdown! }
76
+ tomcat.stop
77
+ end
72
78
  end
73
79
  end
74
80
 
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'trinidad_resque_extension'
16
- s.version = '0.1.0'
17
- s.date = '2011-04-01'
16
+ s.version = '0.1.1'
17
+ s.date = '2012-01-15'
18
18
  s.rubyforge_project = 'trinidad_resque_extension'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
56
56
  s.files = %w[
57
57
  Gemfile
58
58
  Gemfile.lock
59
+ History.txt
59
60
  LICENSE
60
61
  README.md
61
62
  Rakefile
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: trinidad_resque_extension
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Calavera
@@ -10,64 +10,63 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-01 00:00:00 -07:00
14
- default_executable:
13
+ date: 2012-01-15 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: rake
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ version_requirements: &id001 !ruby/object:Gem::Requirement
20
18
  none: false
21
19
  requirements:
22
20
  - - ">="
23
21
  - !ruby/object:Gem::Version
24
22
  version: "0"
23
+ requirement: *id001
24
+ prerelease: false
25
25
  type: :runtime
26
- version_requirements: *id001
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: trinidad
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ version_requirements: &id002 !ruby/object:Gem::Requirement
31
29
  none: false
32
30
  requirements:
33
31
  - - ">="
34
32
  - !ruby/object:Gem::Version
35
33
  version: "0"
34
+ requirement: *id002
35
+ prerelease: false
36
36
  type: :runtime
37
- version_requirements: *id002
38
37
  - !ruby/object:Gem::Dependency
39
38
  name: resque
40
- prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ version_requirements: &id003 !ruby/object:Gem::Requirement
42
40
  none: false
43
41
  requirements:
44
42
  - - ">="
45
43
  - !ruby/object:Gem::Version
46
44
  version: "0"
45
+ requirement: *id003
46
+ prerelease: false
47
47
  type: :runtime
48
- version_requirements: *id003
49
48
  - !ruby/object:Gem::Dependency
50
49
  name: rspec
51
- prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ version_requirements: &id004 !ruby/object:Gem::Requirement
53
51
  none: false
54
52
  requirements:
55
53
  - - ">="
56
54
  - !ruby/object:Gem::Version
57
55
  version: "0"
56
+ requirement: *id004
57
+ prerelease: false
58
58
  type: :development
59
- version_requirements: *id004
60
59
  - !ruby/object:Gem::Dependency
61
60
  name: mocha
62
- prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ version_requirements: &id005 !ruby/object:Gem::Requirement
64
62
  none: false
65
63
  requirements:
66
64
  - - ">="
67
65
  - !ruby/object:Gem::Version
68
66
  version: "0"
67
+ requirement: *id005
68
+ prerelease: false
69
69
  type: :development
70
- version_requirements: *id005
71
70
  description: Trinidad extension to autoconfigure and launch Resque
72
71
  email: calavera@apache.org
73
72
  executables: []
@@ -80,6 +79,7 @@ extra_rdoc_files:
80
79
  files:
81
80
  - Gemfile
82
81
  - Gemfile.lock
82
+ - History.txt
83
83
  - LICENSE
84
84
  - README.md
85
85
  - Rakefile
@@ -92,7 +92,6 @@ files:
92
92
  - spec/spec_helper.rb
93
93
  - spec/trinidad_resque_extension_spec.rb
94
94
  - trinidad_resque_extension.gemspec
95
- has_rdoc: true
96
95
  homepage: http://github.com/trinidad/trinidad_resque_extension
97
96
  licenses: []
98
97
 
@@ -106,6 +105,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
105
  requirements:
107
106
  - - ">="
108
107
  - !ruby/object:Gem::Version
108
+ hash: 2
109
+ segments:
110
+ - 0
109
111
  version: "0"
110
112
  required_rubygems_version: !ruby/object:Gem::Requirement
111
113
  none: false
@@ -116,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
118
  requirements: []
117
119
 
118
120
  rubyforge_project: trinidad_resque_extension
119
- rubygems_version: 1.5.1
121
+ rubygems_version: 1.8.9
120
122
  signing_key:
121
123
  specification_version: 2
122
124
  summary: Trinidad resque extension