torque_rm 0.2.0 → 0.2.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: 53e16eae105bf6988ad355b72030b9aa28571c9e
4
- data.tar.gz: 57adda4ebf39189379a2ffbe10f7832d957875c2
3
+ metadata.gz: fc5180467bbf5700678f5edfa3f37555ae7a9b71
4
+ data.tar.gz: 0f65ecd53df2f1125717ec4c9441dae1d97f7d0d
5
5
  SHA512:
6
- metadata.gz: b71f85629a720d80667f6449be6d2b1b528dd36ac284524ee9b23b9ff1035bc6af2d75274d9c60caf34f364ba9133182101abfeb7eb5ff1b49db134a92101bf7
7
- data.tar.gz: ef01213ebcc576eba3a8175f38347df1aa8be41c4f2e8b0bd6fc07e0fcab506d62a5eb4f3ed82e31015c5369205d8e920f581f2e4cc91c31218d01ff52e86a71
6
+ metadata.gz: 225a1aa339cd79deca383148144aa78a2d43247ebcc06e80532bf0b4374499373ee9947cf8331763d7a01d16c9fbc9af6c598745fd018890d498c726e290a31f
7
+ data.tar.gz: da206591c414c0f5ccf9fc1fa5a3b5cc8e7622e2c7b948cf00439bfdbdc44873230c5be2fbe973527056512b05a7cddf60bb0a9be889238651fc9208a44a6fad
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -96,11 +96,11 @@ module TORQUE
96
96
  alias is_in_queue? is_queued?
97
97
 
98
98
  def time
99
- return (resources_used.walltime) ? resources_used.walltime : "-"
99
+ return (resources_used && resources_used.walltime) ? resources_used.walltime : "-"
100
100
  end
101
101
 
102
102
  def memory
103
- resources_used.mem ? (resources_used.mem.split("kb").first.to_f/1000).round(1) : "0"
103
+ (resources_used && resources_used.mem) ? (resources_used.mem.split("kb").first.to_f/1000).round(1) : "0"
104
104
  end
105
105
 
106
106
  def node
data/torque_rm.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "torque_rm"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Raoul Jean Pierre Bonnal"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raoul Jean Pierre Bonnal