torque_rm 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +6 -14
  2. data/VERSION +1 -1
  3. data/lib/torque_rm/qsub.rb +14 -10
  4. data/torque_rm.gemspec +4 -4
  5. metadata +44 -41
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDkzYTFiZjE5YjQxOTk1NGFjZDVjNzYxNmVlYzc1OWJmYjBkY2QxYg==
5
- data.tar.gz: !binary |-
6
- ZmNiNTdmMDhiMmMxMmNjYTM5OTQ5MWY0OWE5MTZlNGMxYTY2MTM3NA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MTBiODk5YmJlMmVmNTcxOGE2NzIyMjJkNGJkZjQyZGQzNjU2YTc0YzNlNzI2
10
- M2RiYjBjNTA5Y2JmZGM5ZDY3ZTU4NjVjZTliMTNhYWY4OGU2MjA5ZGRiNTBj
11
- NjIyYzVjNDI1ZWFjMTU1M2JjMzc0Yjg5OThkODMxZjEyODEzNDA=
12
- data.tar.gz: !binary |-
13
- NzM4MzIwYjE5YzYwZGQyZjRhY2FkZDY3OGZiYjhkMDM0ZGEyNzdjMTgzYTk3
14
- ZTQzM2IwZjhiZWI1OTE3M2JlMjU3ZjgzZDkzNzRlZjY3MjFmOWM3ZDEyNzhi
15
- YTJjYTM0OTFiYmMzMGViYThmNDZlZjdmNjZjOWMwNzU0YjM3Y2Y=
2
+ SHA1:
3
+ metadata.gz: 47ee4fcab51452d188fe376704f4a9f8541291e4
4
+ data.tar.gz: beacb1d5272a50a61a68d98aa5c197f0efc25241
5
+ SHA512:
6
+ metadata.gz: d15f030284c8077e90d36d05d9cf74999c5478bc033379a33aa654c5acce64b63ef3c17adaf0cc3bc505c07fe4e3f064c750c3e67fdaa780afd2ccbb70d81fb6
7
+ data.tar.gz: aef72d417585f9f97f9928916f495dfbcd2c345f2b6fb7ac480eb9ac6056d8fb01f897d6cc7355ccad5342e278d85afc16381e31949445d862d0165ac0ec7124
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.7
@@ -98,7 +98,7 @@ module TORQUE
98
98
  @gres = opts[:gres]
99
99
  @ppn = opts[:ppn]
100
100
  @procs = opts[:procs]
101
- @m = validate_mail_options(opts)
101
+ @m = validate_mail_options(opts)
102
102
  @M = opts[:M] || opts[:email]
103
103
  @N = opts[:N] || opts[:name]
104
104
  @o = opts[:o] || opts[:stdout] # [hostname:]path_name
@@ -134,13 +134,18 @@ module TORQUE
134
134
  end
135
135
  end # config
136
136
 
137
- def l
138
- data=[@l, nodes, @walltime, @gres].select{|x| x}.join(',')
139
- if data.empty?
140
- nil
141
- else
142
- data
143
- end
137
+ def l
138
+ if @l
139
+ return @l.join(",")
140
+ else
141
+ data=[@l, nodes, @walltime, @gres].select{|x| x}.join(',')
142
+ if data.empty?
143
+ nil
144
+ else
145
+ data
146
+ end
147
+ return data
148
+ end
144
149
  end
145
150
 
146
151
  def nodes
@@ -158,9 +163,8 @@ module TORQUE
158
163
 
159
164
  end
160
165
 
161
-
162
166
  def to_s
163
- pbs_script = ""
167
+ pbs_script = "#!/usr/bin/env bash\n"
164
168
  [:a, :A,:b,:c,:C,:d,:D,:e,:f,:h,:I,:j,:k,:l,:m,:M,:N,:o,:p,:P,:q,:r,:S,:t,:u,:v,:V,:W,:X,:z].each do |option|
165
169
  value = send(option)
166
170
  pbs_script << "#PBS -#{option} #{value}\n" unless value.nil?
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "torque_rm"
8
- s.version = "0.2.5"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Raoul Jean Pierre Bonnal"]
12
- s.date = "2013-09-19"
11
+ s.authors = ["Raoul Jean Pierre Bonnal","Francesco Strozzi"]
12
+ s.date = "2015-04-10"
13
13
  s.description = "TORQUE Resource Manager for Ruby. Submit, check and control your job directly from Ruby."
14
- s.email = "ilpuccio.febo@gmail.com"
14
+ s.email = ["ilpuccio.febo@gmail.com","francesco.strozzi@gmail.com"]
15
15
  s.executables = ["torque_rm_rest"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
metadata CHANGED
@@ -1,242 +1,245 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torque_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raoul Jean Pierre Bonnal
8
+ - Francesco Strozzi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
12
+ date: 2015-04-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rye
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ! '>='
18
+ - - ">="
18
19
  - !ruby/object:Gem::Version
19
20
  version: '0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ! '>='
25
+ - - ">="
25
26
  - !ruby/object:Gem::Version
26
27
  version: '0'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: parslet
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ! '>='
32
+ - - ">="
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ! '>='
39
+ - - ">="
39
40
  - !ruby/object:Gem::Version
40
41
  version: '0'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: colorize
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
- - - ! '>='
46
+ - - ">="
46
47
  - !ruby/object:Gem::Version
47
48
  version: '0'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
- - - ! '>='
53
+ - - ">="
53
54
  - !ruby/object:Gem::Version
54
55
  version: '0'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: terminal-table
57
58
  requirement: !ruby/object:Gem::Requirement
58
59
  requirements:
59
- - - ! '>='
60
+ - - ">="
60
61
  - !ruby/object:Gem::Version
61
62
  version: '0'
62
63
  type: :runtime
63
64
  prerelease: false
64
65
  version_requirements: !ruby/object:Gem::Requirement
65
66
  requirements:
66
- - - ! '>='
67
+ - - ">="
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  - !ruby/object:Gem::Dependency
70
71
  name: sinatra
71
72
  requirement: !ruby/object:Gem::Requirement
72
73
  requirements:
73
- - - ! '>='
74
+ - - ">="
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  type: :runtime
77
78
  prerelease: false
78
79
  version_requirements: !ruby/object:Gem::Requirement
79
80
  requirements:
80
- - - ! '>='
81
+ - - ">="
81
82
  - !ruby/object:Gem::Version
82
83
  version: '0'
83
84
  - !ruby/object:Gem::Dependency
84
85
  name: sinatra-contrib
85
86
  requirement: !ruby/object:Gem::Requirement
86
87
  requirements:
87
- - - ! '>='
88
+ - - ">="
88
89
  - !ruby/object:Gem::Version
89
90
  version: '0'
90
91
  type: :runtime
91
92
  prerelease: false
92
93
  version_requirements: !ruby/object:Gem::Requirement
93
94
  requirements:
94
- - - ! '>='
95
+ - - ">="
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  - !ruby/object:Gem::Dependency
98
99
  name: shotgun
99
100
  requirement: !ruby/object:Gem::Requirement
100
101
  requirements:
101
- - - ! '>='
102
+ - - ">="
102
103
  - !ruby/object:Gem::Version
103
104
  version: '0'
104
105
  type: :runtime
105
106
  prerelease: false
106
107
  version_requirements: !ruby/object:Gem::Requirement
107
108
  requirements:
108
- - - ! '>='
109
+ - - ">="
109
110
  - !ruby/object:Gem::Version
110
111
  version: '0'
111
112
  - !ruby/object:Gem::Dependency
112
113
  name: haml
113
114
  requirement: !ruby/object:Gem::Requirement
114
115
  requirements:
115
- - - ! '>='
116
+ - - ">="
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  type: :runtime
119
120
  prerelease: false
120
121
  version_requirements: !ruby/object:Gem::Requirement
121
122
  requirements:
122
- - - ! '>='
123
+ - - ">="
123
124
  - !ruby/object:Gem::Version
124
125
  version: '0'
125
126
  - !ruby/object:Gem::Dependency
126
127
  name: sinatra-twitter-bootstrap
127
128
  requirement: !ruby/object:Gem::Requirement
128
129
  requirements:
129
- - - ! '>='
130
+ - - ">="
130
131
  - !ruby/object:Gem::Version
131
132
  version: '0'
132
133
  type: :runtime
133
134
  prerelease: false
134
135
  version_requirements: !ruby/object:Gem::Requirement
135
136
  requirements:
136
- - - ! '>='
137
+ - - ">="
137
138
  - !ruby/object:Gem::Version
138
139
  version: '0'
139
140
  - !ruby/object:Gem::Dependency
140
141
  name: activesupport
141
142
  requirement: !ruby/object:Gem::Requirement
142
143
  requirements:
143
- - - ! '>='
144
+ - - ">="
144
145
  - !ruby/object:Gem::Version
145
146
  version: '0'
146
147
  type: :runtime
147
148
  prerelease: false
148
149
  version_requirements: !ruby/object:Gem::Requirement
149
150
  requirements:
150
- - - ! '>='
151
+ - - ">="
151
152
  - !ruby/object:Gem::Version
152
153
  version: '0'
153
154
  - !ruby/object:Gem::Dependency
154
155
  name: time_diff
155
156
  requirement: !ruby/object:Gem::Requirement
156
157
  requirements:
157
- - - ! '>='
158
+ - - ">="
158
159
  - !ruby/object:Gem::Version
159
160
  version: '0'
160
161
  type: :runtime
161
162
  prerelease: false
162
163
  version_requirements: !ruby/object:Gem::Requirement
163
164
  requirements:
164
- - - ! '>='
165
+ - - ">="
165
166
  - !ruby/object:Gem::Version
166
167
  version: '0'
167
168
  - !ruby/object:Gem::Dependency
168
169
  name: rspec
169
170
  requirement: !ruby/object:Gem::Requirement
170
171
  requirements:
171
- - - ~>
172
+ - - "~>"
172
173
  - !ruby/object:Gem::Version
173
174
  version: 2.8.0
174
175
  type: :development
175
176
  prerelease: false
176
177
  version_requirements: !ruby/object:Gem::Requirement
177
178
  requirements:
178
- - - ~>
179
+ - - "~>"
179
180
  - !ruby/object:Gem::Version
180
181
  version: 2.8.0
181
182
  - !ruby/object:Gem::Dependency
182
183
  name: rdoc
183
184
  requirement: !ruby/object:Gem::Requirement
184
185
  requirements:
185
- - - ~>
186
+ - - "~>"
186
187
  - !ruby/object:Gem::Version
187
188
  version: '3.12'
188
189
  type: :development
189
190
  prerelease: false
190
191
  version_requirements: !ruby/object:Gem::Requirement
191
192
  requirements:
192
- - - ~>
193
+ - - "~>"
193
194
  - !ruby/object:Gem::Version
194
195
  version: '3.12'
195
196
  - !ruby/object:Gem::Dependency
196
197
  name: cucumber
197
198
  requirement: !ruby/object:Gem::Requirement
198
199
  requirements:
199
- - - ! '>='
200
+ - - ">="
200
201
  - !ruby/object:Gem::Version
201
202
  version: '0'
202
203
  type: :development
203
204
  prerelease: false
204
205
  version_requirements: !ruby/object:Gem::Requirement
205
206
  requirements:
206
- - - ! '>='
207
+ - - ">="
207
208
  - !ruby/object:Gem::Version
208
209
  version: '0'
209
210
  - !ruby/object:Gem::Dependency
210
211
  name: bundler
211
212
  requirement: !ruby/object:Gem::Requirement
212
213
  requirements:
213
- - - ! '>'
214
+ - - ">"
214
215
  - !ruby/object:Gem::Version
215
216
  version: 1.0.0
216
217
  type: :development
217
218
  prerelease: false
218
219
  version_requirements: !ruby/object:Gem::Requirement
219
220
  requirements:
220
- - - ! '>'
221
+ - - ">"
221
222
  - !ruby/object:Gem::Version
222
223
  version: 1.0.0
223
224
  - !ruby/object:Gem::Dependency
224
225
  name: jeweler
225
226
  requirement: !ruby/object:Gem::Requirement
226
227
  requirements:
227
- - - ~>
228
+ - - "~>"
228
229
  - !ruby/object:Gem::Version
229
230
  version: 1.8.4
230
231
  type: :development
231
232
  prerelease: false
232
233
  version_requirements: !ruby/object:Gem::Requirement
233
234
  requirements:
234
- - - ~>
235
+ - - "~>"
235
236
  - !ruby/object:Gem::Version
236
237
  version: 1.8.4
237
238
  description: TORQUE Resource Manager for Ruby. Submit, check and control your job
238
239
  directly from Ruby.
239
- email: ilpuccio.febo@gmail.com
240
+ email:
241
+ - ilpuccio.febo@gmail.com
242
+ - francesco.strozzi@gmail.com
240
243
  executables:
241
244
  - torque_rm_rest
242
245
  extensions: []
@@ -245,10 +248,11 @@ extra_rdoc_files:
245
248
  - README.html
246
249
  - README.md
247
250
  files:
248
- - .document
249
- - .rspec
251
+ - ".document"
252
+ - ".rspec"
250
253
  - Gemfile
251
254
  - LICENSE.txt
255
+ - README.html
252
256
  - README.md
253
257
  - Rakefile
254
258
  - VERSION
@@ -273,7 +277,6 @@ files:
273
277
  - web/views/qstat_job.haml
274
278
  - web/views/qsub.haml
275
279
  - web/views/qsub_submit.haml
276
- - README.html
277
280
  homepage: http://github.com/helios/torque_rm
278
281
  licenses:
279
282
  - MIT
@@ -284,17 +287,17 @@ require_paths:
284
287
  - lib
285
288
  required_ruby_version: !ruby/object:Gem::Requirement
286
289
  requirements:
287
- - - ! '>='
290
+ - - ">="
288
291
  - !ruby/object:Gem::Version
289
292
  version: '0'
290
293
  required_rubygems_version: !ruby/object:Gem::Requirement
291
294
  requirements:
292
- - - ! '>='
295
+ - - ">="
293
296
  - !ruby/object:Gem::Version
294
297
  version: '0'
295
298
  requirements: []
296
299
  rubyforge_project:
297
- rubygems_version: 2.0.7
300
+ rubygems_version: 2.4.3
298
301
  signing_key:
299
302
  specification_version: 4
300
303
  summary: TORQUE Resource Manager wrapper for Ruby