rufus-runner 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 026ca77e2c60d3b31c2930dd9c8bf03e5fb08478
4
- data.tar.gz: f20bf4a2f524d4700765805266a6592436655c59
3
+ metadata.gz: 657ec9bca0d1bcac7cfcc6a8d931f932275cf923
4
+ data.tar.gz: 9d1c21e0cab83276bcfb0f209fe558e2a1ab4a47
5
5
  SHA512:
6
- metadata.gz: c3ad75069a777e751f8d57b6b440061b69cc3bccf85d31580d1e85cfd4b44258ee6a3d864ed974c437d521e979d0a00f7e59d7be30f6d1f35f6b6eee1bef7811
7
- data.tar.gz: 5cbd8a66992378eea954e891845c585368b401f641d9b0e8384158f7e8d50b40200e6821821ba815205445641aa0694711f9e60bea8bc875406b83af5e1bbbf5
6
+ metadata.gz: 846234048856879035880f04d35be1d728ffdd60a73850993aa4e55f70beeb66e81e469f203b9fdddeaf64d49a164877d39f35991bcc96557cc6fac62290f5a6
7
+ data.tar.gz: ec62ee1cac92d2916f749eea3708c60cd963b5fbfc27802e778c80e9c483b45e769caf61e8c71b2adf2ded521a254fad2b844aa5ce2757f827f86ac824fccbf1
data/README.md CHANGED
@@ -8,6 +8,8 @@ standalone process, with job timing, logging, and safe defaults.
8
8
  **Note: I did not write this gem, only deployed it to RubyGems. The project appears to be dead and I'll provide
9
9
  support the best I can. If the original authors decide they want to take it back over, just let me know.**
10
10
 
11
+ Forked from: https://github.com/HouseTrip/rufus-runner
12
+
11
13
  ## Installation
12
14
 
13
15
  Add this line to your application's Gemfile:
@@ -14,7 +14,7 @@ class Rufus::TrackingScheduler::ForkingJobRunner < Rufus::TrackingScheduler::Job
14
14
  unless status.success?
15
15
  raise UnexpectedExitStatus.new(status.exitstatus)
16
16
  end
17
- rescue Rufus::Scheduler::TimeOutError
17
+ rescue Rufus::Scheduler::TimeoutError
18
18
  log("timed out, killing")
19
19
  kill
20
20
  raise
@@ -16,7 +16,7 @@ class Rufus::TrackingScheduler
16
16
 
17
17
  def initialize(options = {})
18
18
  @options = DefaultOptions.merge(options)
19
- @scheduler = Rufus::Scheduler::EmScheduler.start_new
19
+ @scheduler = Rufus::Scheduler.new
20
20
  log('scheduler started')
21
21
  end
22
22
 
@@ -100,7 +100,7 @@ class Rufus::TrackingScheduler
100
100
 
101
101
  def stop_all_jobs
102
102
  shutting_down!
103
- @scheduler.jobs.each_pair do |job_id, job|
103
+ @scheduler.jobs.each do |job|
104
104
  job.unschedule
105
105
  end
106
106
  log "all jobs unscheduled"
@@ -1,5 +1,5 @@
1
1
  module Rufus
2
2
  module Runner
3
- VERSION = "0.0.3"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
data/rufus-runner.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.homepage = "http://github.com/ccallebs/rufus-runner"
16
16
 
17
17
  gem.add_runtime_dependency 'eventmachine'
18
- gem.add_runtime_dependency 'rufus-scheduler', '~> 2.0.23'
18
+ gem.add_runtime_dependency 'rufus-scheduler', '~> 3.1'
19
19
 
20
20
  gem.add_development_dependency 'rake'
21
21
  gem.add_development_dependency 'rspec', '~> 2'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-20 00:00:00.000000000 Z
12
+ date: 2015-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 2.0.23
34
+ version: '3.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 2.0.23
41
+ version: '3.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement