simple_worker 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/railtie.rb CHANGED
@@ -49,7 +49,6 @@ module SimpleWorker
49
49
  specs.each do |spec|
50
50
  SimpleWorker.logger.debug 'spec.name=' + spec.name.inspect
51
51
  SimpleWorker.logger.debug 'spec=' + spec.inspect
52
- p spec.methods
53
52
  if self.class.gems_to_skip.include?(spec.name)
54
53
  SimpleWorker.logger.debug "Skipping #{spec.name}"
55
54
  next
@@ -75,13 +75,17 @@ module SimpleWorker
75
75
  JSON.parse(hash["gems"])
76
76
  end
77
77
 
78
+ def logger
79
+ SimpleWorker.logger
80
+ end
81
+
78
82
  def self.get_gem_path(gem_info)
79
83
  # gem_name =(gem_info[:require] || gem_info[:name].match(/^[a-zA-Z0-9\-_]+/)[0])
80
84
  gem_name =(gem_info[:name].match(/^[a-zA-Z0-9\-_]+/)[0])
81
- puts "Searching for #{gem_name}..."
85
+ #puts "Searching for #{gem_name}..."
82
86
  gems= Gem::Specification.respond_to?(:each) ? Gem::Specification.find_all_by_name(gem_name) : Gem::GemPathSearcher.new.find_all(gem_name)
83
87
  # gems = searcher.init_gemspecs.select { |gem| gem.name==gem_name }
84
- puts 'gems found=' + gems.inspect
88
+ logger.debug 'gems found=' + gems.inspect
85
89
  gems = gems.select { |g| g.version.version==gem_info[:version] } if gem_info[:version]
86
90
  if !gems.empty?
87
91
  gem = gems.first
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: simple_worker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
5
+ version: 0.7.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-07-06 00:00:00 Z
13
+ date: 2011-07-07 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: zip