delayed_job_tracer 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,6 +85,8 @@ Example for running every 15 minutes, replace with your actual app and ruby loca
85
85
  <pre>
86
86
  */15 * * * * /usr/local/bin/delayed_job_tracer -c /opt/apps/appname/current/config/delayed_job_tracer_config.yml
87
87
  </pre>
88
+
89
+ *Note*: If you're using bundler to install gems within an application-specific gem environment, you may need to also install the gem manually on the server so that the executable is available via the location in the example cron entry above.
88
90
 
89
91
  * Finish configuring your settings in the config/delayed_job_tracer_config.yml file. Your database and ActionMailer config will be applied via the generator, but you'll still need to provide an alternate e-mail account to send administrative notifications through, provide the admin's e-mail address and so forth.
90
92
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency('tmail', '1.2.7.1')
18
18
  s.add_dependency('mms2r', '2.4.1')
19
- s.add_dependency('mysql', '2.7')
19
+ s.add_dependency('mysql2', '0.2.6')
20
20
 
21
21
  s.files = `git ls-files`.split("\n")
22
22
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,17 +1,17 @@
1
- require 'mysql'
1
+ require 'mysql2'
2
2
 
3
3
  class MySQLInterface
4
4
 
5
5
  # Connects to the db and submits a query
6
6
  def self.query(sql)
7
7
  c = DelayedJobTracer.config['database']
8
- d = Mysql::new(c['ip'], c['user'], c['password'], c['database'])
8
+ d = Mysql2::Client.new(:host => c['ip'], :database => c['database'], :username => c['user'], :password => c['password'])
9
9
  d.query(sql)
10
10
  end
11
11
 
12
12
  # Returns true if there are no stale records
13
13
  def self.delayed_job_queue_ok?
14
- query(delayed_job_stale_records).num_rows.zero?
14
+ query(delayed_job_stale_records).count.zero?
15
15
  end
16
16
 
17
17
  # Inserts a delayed_job record
@@ -1,3 +1,3 @@
1
1
  module DelayedJobTracer
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 5
10
+ version: 1.0.5
5
11
  platform: ruby
6
12
  authors:
7
13
  - Kenny Johnston
@@ -9,39 +15,58 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2011-02-28 00:00:00 -08:00
18
+ date: 2011-04-06 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: tmail
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - "="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 81
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 7
34
+ - 1
23
35
  version: 1.2.7.1
24
- version:
36
+ type: :runtime
37
+ version_requirements: *id001
25
38
  - !ruby/object:Gem::Dependency
26
39
  name: mms2r
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
30
43
  requirements:
31
44
  - - "="
32
45
  - !ruby/object:Gem::Version
46
+ hash: 29
47
+ segments:
48
+ - 2
49
+ - 4
50
+ - 1
33
51
  version: 2.4.1
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: mysql
37
52
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: mysql2
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
40
59
  requirements:
41
60
  - - "="
42
61
  - !ruby/object:Gem::Version
43
- version: "2.7"
44
- version:
62
+ hash: 27
63
+ segments:
64
+ - 0
65
+ - 2
66
+ - 6
67
+ version: 0.2.6
68
+ type: :runtime
69
+ version_requirements: *id003
45
70
  description: |-
46
71
  Monitors the delayed_job queue and periodically tests its ability to deliver
47
72
  e-mail messages and e-mails you if something goes wrong, such as the delayed_job
@@ -79,21 +104,27 @@ rdoc_options: []
79
104
  require_paths:
80
105
  - lib
81
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
82
108
  requirements:
83
109
  - - ">="
84
110
  - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
85
114
  version: "0"
86
- version:
87
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
88
117
  requirements:
89
118
  - - ">="
90
119
  - !ruby/object:Gem::Version
120
+ hash: 3
121
+ segments:
122
+ - 0
91
123
  version: "0"
92
- version:
93
124
  requirements: []
94
125
 
95
126
  rubyforge_project:
96
- rubygems_version: 1.3.5
127
+ rubygems_version: 1.5.3
97
128
  signing_key:
98
129
  specification_version: 3
99
130
  summary: Like a tracer bullet for your delayed_job queue