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 +4 -4
- data/CHANGELOG.asciidoc +3 -0
- data/lib/pleaserun/detector.rb +3 -3
- data/pleaserun.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7071d1bf586259f396a87d0ba40e149902b07ba
|
|
4
|
+
data.tar.gz: 63eba8936ca0b57bc61f97096913ffdb83bb2bfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/pleaserun/detector.rb
CHANGED
|
@@ -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.
|
|
5
|
+
spec.version = "0.0.23"
|
|
6
6
|
spec.summary = "pleaserun"
|
|
7
7
|
spec.description = "pleaserun"
|
|
8
8
|
spec.license = "Apache 2.0"
|