ood_core 0.9.1 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9190913080e7b7448422cca14c7687a78dc32c65
4
- data.tar.gz: 9afbd8380ad02e09840274c20e1f10d5c36569ad
3
+ metadata.gz: 40ab5af1e1955af503e10a47b233d7b846ed5f16
4
+ data.tar.gz: 85c9e94a1d4a16b1d444ac02230fba8a8a7f5df9
5
5
  SHA512:
6
- metadata.gz: 7728af206991073f9f32bcb12a8afa1b278899e62b7b0560ae813d6bdd6d97ae6ae7b872c39cc1be30afeb6054b42bfd6661b41950e0a58f3542253fcbff6163
7
- data.tar.gz: efea743a3f4cf18d0beed8ad22c9934206ca60e5e351f01ef555a028d370f422fa55ecfd91a1f06d3e447692a1395ad5c0de43697c03fb766741750818f24aca
6
+ metadata.gz: 4d617a6ab11b960e3a74d773084a7f8125601e1e27f7cca1b3ffe658abded249718481905282100a569f138eab07310171469c9135c7d82cbc91c9f7d2b99a85
7
+ data.tar.gz: 03f198b479fdbd06c1fe14d224db3400fce531c6d68abe7c3bdfc0fef4684d550aea054d713860a6831e92b46e3e35600193c6b186f5aa7681740618042e502a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.9.3] - 2019-05-08
10
+ ### Fixed
11
+ - Fixed bug relating to cluster comparison
12
+
13
+ ## [0.9.2] - 2019-05-08
14
+ ### Changed
15
+ - When `squeue` returns '(null)' for an account the Slurm adapter will now convert that to `nil`
16
+
9
17
  ## [0.9.1] - 2019-05-07
10
18
  ### Added
11
19
  - Added logic to `OodCore::Job::ArrayIds` to return an empty array when the array request is invalid
@@ -181,7 +189,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
181
189
  ### Added
182
190
  - Initial release!
183
191
 
184
- [Unreleased]: https://github.com/OSC/ood_core/compare/v0.9.1...HEAD
192
+ [Unreleased]: https://github.com/OSC/ood_core/compare/v0.9.3...HEAD
193
+ [0.9.3]: https://github.com/OSC/ood_core/compare/v0.9.2...v0.9.3
194
+ [0.9.2]: https://github.com/OSC/ood_core/compare/v0.9.1...v0.9.2
185
195
  [0.9.1]: https://github.com/OSC/ood_core/compare/v0.9.0...v0.9.1
186
196
  [0.9.0]: https://github.com/OSC/ood_core/compare/v0.8.0...v0.9.0
187
197
  [0.8.0]: https://github.com/OSC/ood_core/compare/v0.7.1...v0.8.0
@@ -136,7 +136,7 @@ module OodCore
136
136
  # @param other [#to_sym] object to compare against
137
137
  # @return [Boolean] whether objects are equivalent
138
138
  def ==(other)
139
- id == other.to_s.to_sym
139
+ (other) ? id == other.to_sym : false
140
140
  end
141
141
 
142
142
  # Convert object to symbol
@@ -589,7 +589,7 @@ module OodCore
589
589
  submit_host: nil,
590
590
  job_name: v[:job_name],
591
591
  job_owner: v[:user],
592
- accounting_id: v[:account],
592
+ accounting_id: handle_null_account(v[:account]),
593
593
  procs: v[:cpus],
594
594
  queue_name: v[:partition],
595
595
  wallclock_time: duration_in_seconds(v[:time_used]),
@@ -601,6 +601,11 @@ module OodCore
601
601
  )
602
602
  end
603
603
 
604
+ # Replace '(null)' with nil
605
+ def handle_null_account(account)
606
+ (account != '(null)') ? account : nil
607
+ end
608
+
604
609
  def handle_job_array(info_ary, id)
605
610
  # If only one job was returned we return it
606
611
  return info_ary.first unless info_ary.length > 1
@@ -1,4 +1,4 @@
1
1
  module OodCore
2
2
  # The current version of {OodCore}
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.3"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ood_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Franz
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-05-08 00:00:00.000000000 Z
13
+ date: 2019-05-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ood_support
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.6.11
200
+ rubygems_version: 2.6.14
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Open OnDemand core library