cmd_executable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/cmd_executable.rb +1 -1
- data/lib/cmd_executable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebca555d7972dd6bd32d9baa1fb29055caa0d5aa4c4f1d77efecc8ef4cd0f9d6
|
4
|
+
data.tar.gz: daca2dd878419fa0e5fbc7c9be940ce66bc418038453cfc90165ae095a1e21e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e2771593c1c188bbd89c5681a09f14d171cb970ea7bfbd6b34d28e739d77e847e2fb2c577dd2b28aba96f11ee9fa5b33025e519e572fb993ed142db27582a56
|
7
|
+
data.tar.gz: 753b1d39d8522b79e7941e3a0796a3b3f36ebb0452ae7712b45d66d012cfeb06f8fb65fe8f62684399147bd6dcaa55924b18662e099ed1339cd5bc7338fd96c3
|
data/README.md
CHANGED
@@ -26,11 +26,14 @@ Or install it yourself as:
|
|
26
26
|
require 'cmd_executable'
|
27
27
|
|
28
28
|
class Klass
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
29
|
+
include CmdExecutable
|
30
|
+
|
31
|
+
def instance_method
|
32
|
+
executable?('/bin/ls')
|
33
|
+
executable?('ls')
|
34
|
+
executable?(:ls)
|
35
|
+
executable?('./bin/setup')
|
36
|
+
end
|
34
37
|
end
|
35
38
|
```
|
36
39
|
### as CLI
|
data/lib/cmd_executable.rb
CHANGED