cmd_executable 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 946605fbae86fd31435538a3a032333fd66673b5667e11f20d8c5c5001a5f7f7
4
- data.tar.gz: 85ddeaf7c6f07a9d95dbf6d634967c5ad863660c4fa545fe64181d1d27712de8
3
+ metadata.gz: ebca555d7972dd6bd32d9baa1fb29055caa0d5aa4c4f1d77efecc8ef4cd0f9d6
4
+ data.tar.gz: daca2dd878419fa0e5fbc7c9be940ce66bc418038453cfc90165ae095a1e21e8
5
5
  SHA512:
6
- metadata.gz: 788cf46157ad006a44a6df48d5981393660be6c4b12c62b34afbb58e3864c8ac5e6085b31c942cb49f33d60fc7a6efdab9862e571c41a94d671e6842c3ba284d
7
- data.tar.gz: 45a773c916e5a7b5b6d2db49f4806307d0920be70303f837c5c6269c72132723e734b9ca9e4b88b291d464c3023f666e2cfda7de63d783ec596b67f9ca5c62ac
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
- include 'CmdExecutable'
30
-
31
- def instance_method
32
- executable?('ls')
33
- end
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
@@ -33,7 +33,7 @@ require 'cmd_executable/version'
33
33
  # require 'cmd_executable'
34
34
  #
35
35
  # class Klass
36
- # include 'CmdExecutable'
36
+ # include CmdExecutable
37
37
  #
38
38
  # def instance_method
39
39
  # executable?('ls')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CmdExecutable
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmd_executable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiki