symphony 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 095d96d07d5e07c3b0cecfa55d5705e1c5dddb55
4
- data.tar.gz: cfc61ebc105673602505d959956bb2a24a939e3a
3
+ metadata.gz: d761d88a38dbc8980673034e671bd89b9956f3e6
4
+ data.tar.gz: 856dd02150122e9b7e4deedaf14d5a7cdb9471f2
5
5
  SHA512:
6
- metadata.gz: 2c9443c031f087f3ae3633be51d70d9dfc7adfd817ac72972cd992a72716525d76c2965303bfbb726d7e06acb5143ec168b3e379b4253cbee1ed1643e25b7397
7
- data.tar.gz: 7661d67300b397b7b97e8b24e011c8328bd3737c9f89b44cc668121589e5ec63364c5a957f09c148ea407b872bbda3ec9faf37abe0849d086a7039cf3fb15da9
6
+ metadata.gz: 375ac4565f916ea5d2ae12aace517718c81d7525a0a2ed5299bc927b7f3e4988dca3845153af5d8ad054457316a4921084c43f65f4287cb6569cc122252c647c
7
+ data.tar.gz: 6a0b74ed46933f93a6de5e8df9d15a9abcd7c4957c49f7b74b81cc786902b739351f56110cb9cc3230a1f51ab12321c42368f6af8144ab9c30f5a58154b43058
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ == v0.9.1 [2015-06-08] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Fixes:
4
+
5
+ - Make Symphony.tasks contain just the task names.
6
+ The Daemon will now load task classes on startup. This is so code can
7
+ depend on Symphony without loading every configured task anytime its
8
+ config loads.
9
+
10
+
1
11
  == v0.9.0 [2015-06-01] Michael Granger <ged@FaerieMUD.org>
2
12
 
3
13
  Improvements:
@@ -12,10 +12,10 @@ module Symphony
12
12
  Configurability
13
13
 
14
14
  # Library version constant
15
- VERSION = '0.9.0'
15
+ VERSION = '0.9.1'
16
16
 
17
17
  # Version-control revision constant
18
- REVISION = %q$Revision: 84c169f1c831 $
18
+ REVISION = %q$Revision: a3458bb40133 $
19
19
 
20
20
 
21
21
  # The name of the environment variable to check for config file overrides
@@ -72,7 +72,8 @@ module Symphony
72
72
 
73
73
  ### Load the tasks with the specified +task_names+ and return them
74
74
  ### as an Array.
75
- def self::load_configured_tasks( task_config )
75
+ def self::load_configured_tasks
76
+ task_config = self.tasks
76
77
  if task_config.respond_to?( :each_pair )
77
78
  return self.task_config_from_hash( task_config )
78
79
  else
@@ -129,8 +130,7 @@ module Symphony
129
130
  self.throttle_max = config[:throttle_max]
130
131
  self.throttle_factor = config[:throttle_factor]
131
132
  self.scaling_interval = config[:scaling_interval]
132
-
133
- self.tasks = self.load_configured_tasks( config[:tasks] )
133
+ self.tasks = config[:tasks]
134
134
  end
135
135
 
136
136
  end # module Symphony
@@ -214,7 +214,7 @@ class Symphony::Daemon
214
214
 
215
215
  self.log.debug "Managing task groups: %p" % [ old_task_groups ]
216
216
 
217
- Symphony.tasks.each do |task_class, max|
217
+ Symphony.load_configured_tasks.each do |task_class, max|
218
218
  # If the task is still configured, restart all of its workers
219
219
  if group = old_task_groups.delete( task_class )
220
220
  self.log.info "%p still configured; restarting its task group." % [ task_class ]
@@ -66,9 +66,10 @@ describe Symphony do
66
66
  described_class.load_config( 'a/different/configfile.yml', database: {dbname: 'test'} )
67
67
  end
68
68
 
69
+
69
70
  it "loads a task class for each configured task" do
70
- expect( Symphony.tasks.size ).to eq( 1 )
71
- expect( Symphony.tasks ).to include( Symphony::SpecHelpers::TestTask )
71
+ expect( Symphony.tasks.size ).to eq( 2 )
72
+ expect( Symphony.load_configured_tasks ).to include( Symphony::SpecHelpers::TestTask )
72
73
  end
73
74
 
74
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symphony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -31,7 +31,7 @@ cert_chain:
31
31
  G8LHR7EjtPPmqCCunfyecJ6MmCNaiJCBxq2NYzyNmluPyHT8+0fuB5kccUVZm6CD
32
32
  xn3DzOkDE6NYbk8gC9rTsA==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-06-01 00:00:00.000000000 Z
34
+ date: 2015-06-09 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: configurability
@@ -179,14 +179,14 @@ dependencies:
179
179
  requirements:
180
180
  - - "~>"
181
181
  - !ruby/object:Gem::Version
182
- version: '0.6'
182
+ version: '0.7'
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
186
186
  requirements:
187
187
  - - "~>"
188
188
  - !ruby/object:Gem::Version
189
- version: '0.6'
189
+ version: '0.7'
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: hoe-highline
192
192
  requirement: !ruby/object:Gem::Requirement
@@ -361,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
361
  version: 2.0.3
362
362
  requirements: []
363
363
  rubyforge_project:
364
- rubygems_version: 2.4.6
364
+ rubygems_version: 2.4.7
365
365
  signing_key:
366
366
  specification_version: 4
367
367
  summary: Symphony is a subscription-based asynchronous job system
metadata.gz.sig CHANGED
Binary file