pleaserun 0.0.22 → 0.0.23

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7e0519711adf2648e38698c8e3aca1b736f4c4e
4
- data.tar.gz: 8ea0617089d0b51121baffb1afe909f223b56ce3
3
+ metadata.gz: a7071d1bf586259f396a87d0ba40e149902b07ba
4
+ data.tar.gz: 63eba8936ca0b57bc61f97096913ffdb83bb2bfe
5
5
  SHA512:
6
- metadata.gz: 4161d65cabbb8f8668e2a3a088b76c25533bb5efe98350b81b5582d22f6fbd42adb83d38ff60aa59baca06f58f2a71604f542cc8a284241cd0af5de525dc2c3b
7
- data.tar.gz: 63faf6d869a494389564d6ec18680224b44e434a279b395bf90e1ca62081d82a69124794de590aa3d9ae58d35026c4a6fe7797568ad13db3e3b591aa3311c96b
6
+ metadata.gz: 62b2beabc557bf4629865e282f1dc17120c66ee401a558430039dd9ff4555b179b8d610dd797d4d0565b11585d6eaca3a1be78b2ad20fd6ef2e0562a6e0e4400
7
+ data.tar.gz: aef5691cffd14cf40e566e56704be65af42ea7bb63c16ee0798dbd2c395ce36f54da90d2f9bc1077a344d2eb6abf5f04933d3711903ba65f2757675cfc59a49d
data/CHANGELOG.asciidoc CHANGED
@@ -1,5 +1,8 @@
1
1
  = Pleaserun Changes and Releases
2
2
 
3
+ == 0.0.23 (May 19, 2016)
4
+ * Catch JRuby IOError when execution of a missing file fails.
5
+
3
6
  == 0.0.22 (May 18, 2016)
4
7
  * systemd platform now defaults to targeting /etc/systemd/system for writing
5
8
  unit files. This was chosen based on research across across 7 different
@@ -30,7 +30,7 @@ module PleaseRun::Detector
30
30
  return false unless success
31
31
 
32
32
  # version is the last word on the first line of the --version output
33
- version = out.split("\n").first.split(/\s+/).last
33
+ version = out.split("\n").first.split(/\s+/).last
34
34
  ["systemd", version]
35
35
  end
36
36
 
@@ -48,7 +48,7 @@ module PleaseRun::Detector
48
48
 
49
49
  def detect_sysv
50
50
  return false unless File.directory?("/etc/init.d")
51
-
51
+
52
52
  # TODO(sissel): Do more specific testing.
53
53
  ["sysv", "lsb-3.1"]
54
54
  end
@@ -78,7 +78,7 @@ module PleaseRun::Detector
78
78
  exit_status = wait_thr.value
79
79
  return out, exit_status.success?
80
80
  end
81
- rescue Errno::ENOENT, Errno::EACCES => e
81
+ rescue Errno::ENOENT, Errno::EACCES, IOError => e
82
82
  # If the path doesn't exist or we cannot execute it, return the exception
83
83
  # message as the output and indicate a failure to run.
84
84
  return e.message, false
data/pleaserun.gemspec CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
2
2
  files = File.read(__FILE__)[/^__END__$.*/m].split("\n")[1..-1]
3
3
 
4
4
  spec.name = "pleaserun"
5
- spec.version = "0.0.22"
5
+ spec.version = "0.0.23"
6
6
  spec.summary = "pleaserun"
7
7
  spec.description = "pleaserun"
8
8
  spec.license = "Apache 2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleaserun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel