qtools 0.4.1 → 0.4.2

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/qqsub +2 -1
  3. data/bin/qundo +1 -1
  4. data/lib/qtools/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb43e525d2cab83fa5e423abc7fdf93b5493cd61
4
- data.tar.gz: 42d03f7c9712b282c247a99d89bf422a23191cfc
3
+ metadata.gz: 1f901c06d336710107dcad954dcc1ec2be29381d
4
+ data.tar.gz: c118ba66176d2ef118946315895db2f0d1bd3806
5
5
  SHA512:
6
- metadata.gz: 42ed7171a340d405c3dbdb637fa7701bf4725ec58fa6d9b741a49b31c3c8296174284404f86d583cf1459ac2f98f8dff777fb6837fe2cd1dca239446c74c5573
7
- data.tar.gz: c8cacf15a8717b023ed54ffcfafe8cc91b83a25694ba132af72857659f39c254198c25e91b4501c8153b270134264350a4f24b0ec75bf2c5b0bb610fb8c62fcd
6
+ metadata.gz: e44e136a316454ab8716a4813c7f990405b23476e62efcb9cdc3a762252f42189fb3d1edd92b2a59c2f0836304e7ce9e7194c471523d66453b06a3d253dba9b5
7
+ data.tar.gz: 3fb859b3b76f9505ab6fac79aee0f25db779d7389450fc3a65e010ad1b1e7a81a56e86541d4d9397f8a09d67d984bed5bc16e6d77c97e93a7c2d95259fc7fe1c
data/bin/qqsub CHANGED
@@ -68,7 +68,8 @@ end
68
68
 
69
69
  if args.cpus
70
70
  if SCHEDULER == :sge
71
- header_tree[:pe] = "smp #{args.cpus}"
71
+ header_tree[:pe] = []
72
+ header_tree[:pe] << "smp #{args.cpus}"
72
73
  else
73
74
  header_tree[:l] << "ncpus=#{args.cpus}"
74
75
  end
data/bin/qundo CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'qtools'
4
4
 
5
5
  last_job = `qstat -u $USER | tail -n 1`
6
- last_job_id = `qstat -u $USER | tail -n 1 | sed -rn 's/(^[0-9]*).*/\\1/p'`.strip
6
+ last_job_id = `qstat -u $USER | tail -n 1 | sed -nr 's/\s*?([0-9]*).*/\1/p'`.strip
7
7
 
8
8
  unless last_job.empty?
9
9
  puts "-- The following job will be stopped:"
@@ -1,3 +1,3 @@
1
1
  module Qtools
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qtools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler