sge 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/sge/qstat/job.rb +2 -1
  2. data/lib/sge/version.rb +1 -1
  3. metadata +11 -11
@@ -44,7 +44,8 @@ module SGE
44
44
 
45
45
  def self.command(opts)
46
46
  if opts[:cmd]
47
- opts[:cmd]
47
+ stat = File.stat(opts[:fifo])
48
+ [opts[:cmd],">", opts[:fifo], stat.pipe? ? "&" : nil].join(' ')
48
49
  else
49
50
  file = opts[:sample] || File.expand_path('../../../../spec/data/qstat.sge',__FILE__)
50
51
  "cat #{file} > #{opts[:fifo]} &"
@@ -1,3 +1,3 @@
1
1
  module SGE
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-31 00:00:00.000000000Z
12
+ date: 2012-02-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70233676098620 !ruby/object:Gem::Requirement
16
+ requirement: &16298600 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70233676098620
24
+ version_requirements: *16298600
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70233676097260 !ruby/object:Gem::Requirement
27
+ requirement: &16298100 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70233676097260
35
+ version_requirements: *16298100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70233676095100 !ruby/object:Gem::Requirement
38
+ requirement: &16297540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70233676095100
46
+ version_requirements: *16297540
47
47
  description: Sun Grid Engine ruby library
48
48
  email:
49
49
  - hery@rails-royce.org
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: -1457147814193271419
102
+ hash: 4457203953407287164
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
@@ -108,10 +108,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -1457147814193271419
111
+ hash: 4457203953407287164
112
112
  requirements: []
113
113
  rubyforge_project: sge
114
- rubygems_version: 1.8.10
114
+ rubygems_version: 1.8.15
115
115
  signing_key:
116
116
  specification_version: 3
117
117
  summary: Sun Grid Engine ruby library