naf 2.1.8 → 2.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ Machines have an allocate-able number of slots of a specific affinity. Applicati
41
41
  Scripts have tags to describe the stage/progress of the process. They can be system or custom tags. All tags are visible by the user, so set tags at different stages of your script. This is a way of knowing what is happening in the script without having to take a look at the logs.
42
42
 
43
43
  === Please find up-to-date information on Naf here: {Naf Wiki}[http://www.github.com/fiksu/naf/wiki]
44
- === Instructions on upgrading to Naf v2.1.8: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-from-Naf-v2.1.6-to-Naf-v2.1.8]
44
+ === Instructions on upgrading to Naf v2.1.9: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-from-Naf-v2.1.6-to-Naf-v2.1.9]
45
45
  === Instructions on upgrading to Naf v2.1.6: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v2.1.6]
46
46
  === Instructions on upgrading to Naf v2.0: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v2.0]
47
47
  === Instructions on upgrading to Naf v1.1.4: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v1.1.4]
@@ -1,5 +1,9 @@
1
1
  = Release Notes
2
2
 
3
+ === Version 2.1.9
4
+ Bug fixes:
5
+ * Logical::Naf::ConstructionZone doesn't properly propagate affinity parameters
6
+
3
7
  === Version 2.1.8
4
8
  Bug fixes:
5
9
  * Removed check for signed message. Encrypted data generated by ActiveSupport::MessageVerifier is different depending on the ruby version.
@@ -6,7 +6,7 @@ module Logical::Naf::ConstructionZone
6
6
  application_schedule.application_run_group_name,
7
7
  application_schedule.application_run_group_limit,
8
8
  application_schedule.priority,
9
- application_schedule.affinities,
9
+ application_schedule.application_schedule_affinity_tabs,
10
10
  application_schedule.prerequisites,
11
11
  application_schedule.enqueue_backlogs,
12
12
  application_schedule)
@@ -73,6 +73,10 @@ module Logical::Naf::ConstructionZone
73
73
  }
74
74
  elsif affinity.is_a? ::Naf::ApplicationScheduleAffinityTab
75
75
  # affinity_for application_schedule_affinity_tab
76
+ {
77
+ affinity_id: affinity.affinity_id,
78
+ affinity_parameter: affinity.affinity_parameter
79
+ }
76
80
  elsif affinity.is_a? Hash
77
81
  # should have key: :affinity_id or :affinity_short_name or :affinity_name
78
82
  # may have key: :affinity_parameter
@@ -1,3 +1,3 @@
1
1
  module Naf
2
- VERSION = '2.1.8'
2
+ VERSION = '2.1.9'
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-03-24'
11
+ s.date = '2014-03-25'
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"
@@ -59,10 +59,11 @@ module Logical::Naf::ConstructionZone
59
59
  should == [{ affinity_id: affinity.id }]
60
60
  end
61
61
 
62
- it 'return nil when an ApplicationScheduleAffintyTab object is provided' do
63
- tab = FactoryGirl.build(:app_schedule_affinity_tab_base)
62
+ it 'return hash when an ApplicationScheduleAffintyTab object is provided' do
63
+ tab = FactoryGirl.build(:normal_app_schedule_affinity_tab, affinity_parameter: 1.0)
64
64
  work_order.instance_variable_set(:@affinities, [tab])
65
- work_order.historical_job_affinity_tab_parameters.should == [nil]
65
+ work_order.historical_job_affinity_tab_parameters.
66
+ should == [{ affinity_id: tab.affinity_id, affinity_parameter: tab.affinity_parameter }]
66
67
  end
67
68
 
68
69
  it 'return hash with the affinity_id when a Hash object is provided' do
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.1.8
4
+ version: 2.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-24 00:00:00.000000000 Z
13
+ date: 2014-03-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails