pbs 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/pbs/batch.rb +2 -2
- data/lib/pbs/version.rb +1 -1
- data/spec/batch_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58cdb9daccd724002b5fb9392f691d524d3b6c11
|
4
|
+
data.tar.gz: 924d11f062292ed34acbc1eca112afbb014cc3fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5210d6549180d14c904ec4560fcce6be359ca5464d7d056dbb7a7dfbd3fb9418588bc166bbdc67281c632d9f1f9721e055b393be7aa2ba39f4ac3a5f39d96ada
|
7
|
+
data.tar.gz: d84a4b062d9fdff17547675d4aba822d1c252d0140cf324a91e0efd07189ac81dc49437b14cb1f5d676b4c2169063c83e091c2afb3d9412fc062a60f617efd8b
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [2.2.1] - 2018-09-14
|
11
|
+
### Fixed
|
12
|
+
- Fixes a crash that can occur if a script does not have a working directory set
|
13
|
+
|
10
14
|
## [2.2.0] - 2018-04-20
|
11
15
|
### Added
|
12
16
|
- Added a `Batch#submit` method to submit directly with a `qsub` call.
|
@@ -50,7 +54,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
50
54
|
### Added
|
51
55
|
- Initial release of 2.0.0!
|
52
56
|
|
53
|
-
[Unreleased]: https://github.com/OSC/pbs-ruby/compare/v2.2.
|
57
|
+
[Unreleased]: https://github.com/OSC/pbs-ruby/compare/v2.2.1...HEAD
|
58
|
+
[2.2.1]: https://github.com/OSC/pbs-ruby/compare/v2.2.0...v2.2.1
|
54
59
|
[2.2.0]: https://github.com/OSC/pbs-ruby/compare/v2.1.0...v2.2.0
|
55
60
|
[2.1.0]: https://github.com/OSC/pbs-ruby/compare/v2.0.4...v2.1.0
|
56
61
|
[2.0.4]: https://github.com/OSC/pbs-ruby/compare/v2.0.3...v2.0.4
|
data/lib/pbs/batch.rb
CHANGED
@@ -451,8 +451,8 @@ module PBS
|
|
451
451
|
"LD_LIBRARY_PATH" => %{#{lib}:#{ENV["LD_LIBRARY_PATH"]}}
|
452
452
|
})
|
453
453
|
stdin = stdin.to_s
|
454
|
-
chdir
|
455
|
-
o, e, s = Open3.capture3(env, cmd, *args, stdin_data: stdin, chdir: chdir)
|
454
|
+
chdir ||= "."
|
455
|
+
o, e, s = Open3.capture3(env, cmd, *args, stdin_data: stdin, chdir: chdir.to_s)
|
456
456
|
s.success? ? o : raise(PBS::Error, e)
|
457
457
|
end
|
458
458
|
end
|
data/lib/pbs/version.rb
CHANGED
data/spec/batch_spec.rb
CHANGED
@@ -36,7 +36,7 @@ describe PBS::Batch do
|
|
36
36
|
},
|
37
37
|
"BIN/qsub",
|
38
38
|
stdin_data: "CONTENT",
|
39
|
-
chdir:
|
39
|
+
chdir: '.'
|
40
40
|
) do
|
41
41
|
[ "STDOUT", "STDERR", double(success?: true) ]
|
42
42
|
end
|
@@ -64,7 +64,7 @@ describe PBS::Batch do
|
|
64
64
|
},
|
65
65
|
"BIN/qsub",
|
66
66
|
stdin_data: "CONTENT",
|
67
|
-
chdir:
|
67
|
+
chdir: '.'
|
68
68
|
) do
|
69
69
|
[ "STDOUT", "STDERR", double(success?: true) ]
|
70
70
|
end
|
@@ -86,7 +86,7 @@ describe PBS::Batch do
|
|
86
86
|
"a",
|
87
87
|
"b",
|
88
88
|
stdin_data: "CONTENT",
|
89
|
-
chdir:
|
89
|
+
chdir: '.'
|
90
90
|
) do
|
91
91
|
[ "STDOUT", "STDERR", double(success?: true) ]
|
92
92
|
end
|
@@ -124,7 +124,7 @@ describe PBS::Batch do
|
|
124
124
|
},
|
125
125
|
"BIN/qsub",
|
126
126
|
stdin_data: "CONTENT",
|
127
|
-
chdir:
|
127
|
+
chdir: '.'
|
128
128
|
) do
|
129
129
|
[ "STDOUT", "STDERR", double(success?: false) ]
|
130
130
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|