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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa7c0ba8a56376aab5103ebb4eebf0d16f52119
4
- data.tar.gz: 753cc32ca3fe38b919016f055e8c583e253d4285
3
+ metadata.gz: 58cdb9daccd724002b5fb9392f691d524d3b6c11
4
+ data.tar.gz: 924d11f062292ed34acbc1eca112afbb014cc3fc
5
5
  SHA512:
6
- metadata.gz: f19d0e62442fe802557dd8ddbef4e002f1e593739004e3bdd5147e5c1bedde46a522a4da560388b3cc087df4e7bbfc3a2595f096438e3d2234143a0fdebde346
7
- data.tar.gz: 83743aa12d21569bb311c34aa9ef86f02804b309ee4a0e1ed1f25a1e7e36f0296ec85188ca423ae4e40a893b7ba279c7fc6a193215b04451eef410e85f8b7f23
6
+ metadata.gz: 5210d6549180d14c904ec4560fcce6be359ca5464d7d056dbb7a7dfbd3fb9418588bc166bbdc67281c632d9f1f9721e055b393be7aa2ba39f4ac3a5f39d96ada
7
+ data.tar.gz: d84a4b062d9fdff17547675d4aba822d1c252d0140cf324a91e0efd07189ac81dc49437b14cb1f5d676b4c2169063c83e091c2afb3d9412fc062a60f617efd8b
@@ -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.0...HEAD
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
@@ -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 = chdir && chdir.to_s
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
@@ -1,4 +1,4 @@
1
1
  module PBS
2
2
  # The current version of PBS
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
4
4
  end
@@ -36,7 +36,7 @@ describe PBS::Batch do
36
36
  },
37
37
  "BIN/qsub",
38
38
  stdin_data: "CONTENT",
39
- chdir: nil
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: nil
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: nil
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: nil
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.0
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-04-20 00:00:00.000000000 Z
11
+ date: 2018-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi