packet 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/packet.rb +1 -1
  2. data/lib/packet_master.rb +4 -1
  3. metadata +1 -1
@@ -33,5 +33,5 @@ require "worker"
33
33
  PACKET_APP = File.expand_path'../' unless defined?(PACKET_APP)
34
34
 
35
35
  module Packet
36
- VERSION='0.1.1'
36
+ VERSION='0.1.2'
37
37
  end
@@ -98,7 +98,10 @@ module Packet
98
98
  worker_name_key = gen_worker_key(worker_name,worker_options[:job_key])
99
99
  return if @live_workers[worker_name_key]
100
100
  worker_options.delete(:worker)
101
- require worker_name
101
+ begin
102
+ require worker_name
103
+ rescue LoadError
104
+ end
102
105
  worker_klass = Object.const_get(packet_classify(worker_name))
103
106
  fork_and_load(worker_klass,worker_options)
104
107
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hemant Kumar