Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Jul 16, 2012
2 parents 288431c + 9bf160b commit eefdb58
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
@@ -1,5 +1,5 @@
---
:major: 2
:minor: 3
:patch: 14
:patch: 15
:build: !!null
6 changes: 3 additions & 3 deletions iron_worker.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = "iron_worker"
s.version = "2.3.14"
s.version = "2.3.15"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Travis Reeder"]
s.date = "2012-04-25"
s.date = "2012-07-13"
s.description = "The official IronWorker gem for IronWorker by Iron.io. http://www.iron.io"
s.email = "travis@iron.io"
s.extra_rdoc_files = [
Expand All @@ -35,7 +35,7 @@ Gem::Specification.new do |s|
s.homepage = "http://www.iron.io"
s.require_paths = ["lib"]
s.required_ruby_version = Gem::Requirement.new(">= 1.9")
s.rubygems_version = "1.8.21"
s.rubygems_version = "1.8.24"
s.summary = "The official IronWorker gem for IronWorker by Iron.io. http://www.iron.io"

if s.respond_to? :specification_version then
Expand Down
6 changes: 5 additions & 1 deletion lib/iron_worker/service.rb
Expand Up @@ -223,8 +223,12 @@ def build_merged_file(filename, merged, unmerge, merged_gems, unmerged_gems, mer
# require merged gems
merged_gems.each_pair do |k, gem|
IronWorker.logger.debug "Bundling gem #{gem[:name]}..."
f.write "$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/gems/#{gem[:name]}/lib'))\n"
end
merged_gems.each_pair do |k, gem|
IronWorker.logger.debug "Bundling gem #{gem[:name]}..."
#f.write "$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '/gems/#{gem[:name]}/lib'))\n"
next if gem[:bypass_require]
IronWorker.logger.debug 'writing requires: ' + gem[:require].inspect
if gem[:require].nil?
Expand Down
2 changes: 1 addition & 1 deletion test/Gemfile.lock
Expand Up @@ -134,7 +134,7 @@ GEM
multi_json (~> 1.0)
signature (~> 0.1.2)
rack (1.4.1)
rest (2.0.1)
rest (2.0.0)
net-http-persistent
rest-client (>= 0.3.0)
rest-client (1.6.7)
Expand Down
2 changes: 2 additions & 0 deletions test/batch_run.rb
Expand Up @@ -34,7 +34,9 @@ def test_concur_batch
response_hash = worker2.queue(:priority=>(@config[:priority] || 0))
puts "response_hash #{i} = " + response_hash.inspect
assert response_hash["msg"]
assert response_hash["status_code"]
assert response_hash["tasks"]
assert response_hash["status_code"] == 200
assert response_hash["tasks"][0]["id"].length == 24, "length is #{response_hash["tasks"][0]["id"].length}"
assert response_hash["tasks"][0]["id"] == worker2.task_id, "id in hash: #{response_hash["tasks"][0]["id"]}, task_id: #{worker2.task_id}. response was #{worker2.response.inspect}"
worker2
Expand Down
2 changes: 1 addition & 1 deletion test/quick_run.rb
Expand Up @@ -7,7 +7,7 @@ class QuickRun < TestBase

def test_worker
tasks = []
50.times do |i|
1.times do |i|
puts "Queuing #{i}"
worker = OneLineWorker.new
worker.x = i
Expand Down
1 change: 1 addition & 0 deletions test/workers/one_line_worker.rb
@@ -1,6 +1,7 @@
# bump......
class OneLineWorker < IronWorker::Base


attr_accessor :x

def run
Expand Down

0 comments on commit eefdb58

Please sign in to comment.