naf 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -159,17 +159,19 @@ module Logical
159
159
  end
160
160
 
161
161
  def affinities
162
- @app.application_schedule.application_schedule_affinity_tabs.map do |tab|
163
- if tab.affinity_short_name.present?
164
- if tab.affinity_parameter.present? && tab.affinity_parameter > 0
165
- tab.affinity_short_name + "(#{tab.affinity_parameter})"
162
+ if @app.application_schedule.try(:application_schedule_affinity_tabs).present?
163
+ @app.application_schedule.application_schedule_affinity_tabs.map do |tab|
164
+ if tab.affinity_short_name.present?
165
+ if tab.affinity_parameter.present? && tab.affinity_parameter > 0
166
+ tab.affinity_short_name + "(#{tab.affinity_parameter})"
167
+ else
168
+ tab.affinity_short_name
169
+ end
166
170
  else
167
- tab.affinity_short_name
171
+ tab.affinity_classification_name + '_' + tab.affinity_name
168
172
  end
169
- else
170
- tab.affinity_classification_name + '_' + tab.affinity_name
171
- end
172
- end.join(", \n")
173
+ end.join(", \n")
174
+ end
173
175
  end
174
176
 
175
177
  end
@@ -1,3 +1,3 @@
1
1
  module Naf
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.name = "naf"
9
9
  s.version = Naf::VERSION
10
10
  s.license = 'New BSD License'
11
- s.date = '2014-01-03'
11
+ s.date = '2014-01-06'
12
12
  s.summary = "Creates infrastructure for a customizable and robust Postgres-backed script scheduling/running"
13
13
  s.description = "A cloud based distributed cron, application framework and operations console. Naf works as a distributed script running " +
14
14
  "system that provides scheduling, logging, alarming, machine redundancy, and the ability to set constraint during script execution"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-01-03 00:00:00.000000000 Z
15
+ date: 2014-01-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails