iron_worker 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
@@ -2,18 +2,22 @@
2
2
 
3
3
  module IronWorker
4
4
 
5
- class InvalidWorkerError < StandardError; end
5
+ class InvalidWorkerError < StandardError;
6
+ end
6
7
 
7
8
  class << self
8
9
  def running_class=(rc)
9
10
  @running_class = rc
10
11
  end
12
+
11
13
  def running_class
12
14
  @running_class
13
15
  end
16
+
14
17
  def task_data=(td)
15
18
  @task_data = td
16
19
  end
20
+
17
21
  def task_data
18
22
  @task_data
19
23
  end
@@ -31,34 +35,35 @@ module IronWorker
31
35
  @queueing_enabled
32
36
  end
33
37
 
38
+ class Config
39
+
40
+ def merge(file)
41
+ end
42
+
43
+ def unmerge(file)
44
+ end
45
+
46
+ def merge_gem(gem_name, options={})
47
+ end
48
+
49
+ def unmerge_gem(gem_name)
50
+ end
51
+
52
+ def merge_folder(path)
53
+ end
54
+
55
+
56
+ end
57
+
34
58
 
35
59
  class Base
36
60
 
37
61
  class << self
38
62
 
39
63
  def merge(*files)
40
- #files.each do |file|
41
- # file = file.to_s
42
- # unless file.end_with?(".rb")
43
- # file << ".rb"
44
- # end
45
- # #puts 'code_dir=' + code_dir.inspect
46
- # filename = File.join(code_dir, File.basename(file))
47
- # #puts "merge #{filename}"
48
- # #puts "FILENAME #{filename}"
49
- # require filename if File.exist?(filename) # for backwards compatability
50
- #end
51
-
52
64
  end
53
65
 
54
-
55
66
  def merge_folder(path)
56
- #puts "PATH=#{path}"
57
- #puts "#{code_dir}/#{Digest::MD5.hexdigest(path)}/**/*.rb"
58
- #Dir["#{code_dir}/#{Digest::MD5.hexdigest(path)}/**/*.rb"].each do |f|
59
- # puts "requiring #{f.inspect}"
60
- # require f if File.exist?(f)
61
- #end
62
67
  end
63
68
 
64
69
  def unmerge(*files)
@@ -66,22 +71,9 @@ module IronWorker
66
71
  end
67
72
 
68
73
  def merge_mailer(mailer, params=nil)
69
- #merge(mailer)
70
74
  end
71
75
 
72
76
  def merge_gem(gem, version=nil)
73
- #gem_info = {:name=>gem}
74
- #if version.is_a?(Hash)
75
- # gem_info.merge!(version)
76
- #else
77
- # gem_info[:version] = version
78
- #end
79
- #gem_name =(gem.match(/^[a-zA-Z0-9\-_]+/)[0])
80
- #$LOAD_PATH << File.join(code_dir, "/gems/#{gem_name}") #backwards compatibility, should be removed later
81
- #$LOAD_PATH << File.join(code_dir, "/gems/#{gem_name}/lib")
82
- # # what's the diff here? This one seems more common: $:.unshift File.join(File.dirname(__FILE__), "/gems/#{gem_name}")
83
- # #puts 'gem_info = ' + gem_info.inspect
84
- #require gem_info[:require] || gem_name
85
77
  end
86
78
 
87
79
  def merge_worker(file, class_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zip
16
- requirement: &22128360 !ruby/object:Gem::Requirement
16
+ requirement: &23155260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *22128360
24
+ version_requirements: *23155260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rest-client
27
- requirement: &22127820 !ruby/object:Gem::Requirement
27
+ requirement: &23154320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *22127820
35
+ version_requirements: *23154320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: zip
38
- requirement: &22127060 !ruby/object:Gem::Requirement
38
+ requirement: &23153100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *22127060
46
+ version_requirements: *23153100
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rest-client
49
- requirement: &22125520 !ruby/object:Gem::Requirement
49
+ requirement: &23152180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *22125520
57
+ version_requirements: *23152180
58
58
  description: The official IronWorker gem for IronWorker by Iron.io. http://www.iron.io
59
59
  email: travis@iron.io
60
60
  executables: []