appjob 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/appjob.gemspec +1 -1
- data/lib/appjob.rb +2 -3
- data/lib/appjob/every.rb +1 -0
- metadata +4 -5
- data/lib/appjob/version.rb +0 -3
data/appjob.gemspec
CHANGED
data/lib/appjob.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
require
|
1
|
+
require 'appjob/version'
|
2
2
|
|
3
3
|
class Appjob
|
4
4
|
include Singleton
|
5
|
-
|
6
5
|
EVERY_PATH = File.join(Rails.root,'config','every.rb')
|
7
6
|
|
8
7
|
def self.job(at, to_job)
|
@@ -15,7 +14,7 @@ class Appjob
|
|
15
14
|
if defined? Rails and RAILS_ENV and RAILS_ROOT
|
16
15
|
log 'Init ok, env='+Rails.env.to_s
|
17
16
|
Thread.abort_on_exception = true
|
18
|
-
FileUtils.
|
17
|
+
FileUtils.cp(File.join(File.dirname(__FILE__),'appjob','every.rb'), EVERY_PATH) unless File.exist? EVERY_PATH
|
19
18
|
eval(File.read(EVERY_PATH))
|
20
19
|
else
|
21
20
|
puts 'Appjob: No rails app detected'
|
data/lib/appjob/every.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appjob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeks
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-26 00:00:00 +04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -36,7 +36,6 @@ files:
|
|
36
36
|
- appjob.gemspec
|
37
37
|
- lib/appjob.rb
|
38
38
|
- lib/appjob/every.rb
|
39
|
-
- lib/appjob/version.rb
|
40
39
|
has_rdoc: true
|
41
40
|
homepage: http://github.com/ya-jeks/appjob
|
42
41
|
licenses: []
|
data/lib/appjob/version.rb
DELETED