simple_worker 0.3.18 → 0.3.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -231,8 +231,7 @@ module SimpleWorker
231
231
  data[iv] = instance_variable_get(iv)
232
232
  end
233
233
 
234
- config_data = {}
235
- config_data['database'] = SimpleWorker.config.database if SimpleWorker.config.database
234
+ config_data = SimpleWorker.config.get_atts_to_send
236
235
  data[:sw_config] = config_data
237
236
  return data
238
237
  end
@@ -23,6 +23,14 @@ module SimpleWorker
23
23
  @extra_requires = []
24
24
  end
25
25
 
26
+ def get_atts_to_send
27
+ config_data = {}
28
+ config_data['database'] = database if database
29
+ config_data['global_attributes'] = global_attributes if global_attributes
30
+ config_data['host'] = host if host
31
+ config_data
32
+ end
33
+
26
34
  end
27
35
 
28
36
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 18
9
- version: 0.3.18
8
+ - 19
9
+ version: 0.3.19
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-29 00:00:00 -08:00
17
+ date: 2010-12-30 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency