simple_worker 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,12 +1,3 @@
1
- KNOWN ISSUES IN NEW VERSION
2
- =====
3
-
4
- - Cancel chain will not work because we don't have parent task it. Do we need it though?
5
- We could just allow kill all by class name and that would be sufficient? (see runner.rb add_sw_params)
6
-
7
-
8
-
9
-
10
1
  Getting Started
11
2
  ===============
12
3
 
@@ -238,7 +238,7 @@ module SimpleWorker
238
238
  # todo: add a :timeout option
239
239
  def wait_until_complete
240
240
  check_service
241
- SimplerWorker.service.wait_until_complete(self.task_id)
241
+ SimpleWorker.service.wait_until_complete(self.task_id)
242
242
  end
243
243
 
244
244
  def upload
@@ -83,6 +83,7 @@ module SimpleWorker
83
83
  #puts "Searching for #{gem_name}..."
84
84
  gems= Gem::Specification.respond_to?(:each) ? Gem::Specification.find_all_by_name(gem_name) : Gem::GemPathSearcher.new.find_all(gem_name)
85
85
  # gems = searcher.init_gemspecs.select { |gem| gem.name==gem_name }
86
+ gems = Gem::GemPathSearcher.new.init_gemspecs.select { |gem| gem.name==gem_name } if !gems || gems.empty?
86
87
  logger.debug 'gems found=' + gems.inspect
87
88
  gems = gems.select { |g| g.version.version==gem_info[:version] } if gem_info[:version]
88
89
  if !gems.empty?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.7
5
+ version: 1.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Travis Reeder
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-07 00:00:00 Z
13
+ date: 2011-09-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zip