simple_worker 0.6.7 → 0.7.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/simple_worker/service.rb +1 -2
  2. metadata +5 -5
@@ -84,8 +84,7 @@ module SimpleWorker
84
84
  def get_gem_path(gem_info)
85
85
  gem_name =(gem_info[:require] || gem_info[:name].match(/^[a-zA-Z0-9\-_]+/)[0])
86
86
  puts "Searching for #{gem_name}..."
87
- searcher = Gem::GemPathSearcher.new
88
- gems = searcher.find_all(gem_name)
87
+ gems= Gem::Specification.respond_to?(:each) ? Gem::Specification.find_all_by_name(gem_name) : Gem::GemPathSearcher.new.find_all(gem_name)
89
88
  # gems = searcher.init_gemspecs.select { |gem| gem.name==gem_name }
90
89
  puts 'gems found=' + gems.inspect
91
90
  gems = gems.select { |g| g.version.version==gem_info[:version] } if gem_info[:version]
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.6.7
4
+ prerelease: 6
5
+ version: 0.7.0.beta.1
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-06-20 00:00:00 Z
13
+ date: 2011-07-01 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zip
@@ -70,9 +70,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
73
- - - ">="
73
+ - - ">"
74
74
  - !ruby/object:Gem::Version
75
- version: "0"
75
+ version: 1.3.1
76
76
  requirements: []
77
77
 
78
78
  rubyforge_project: