the_ruby_searcher 0.0.1 → 0.0.2
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/lib/the_ruby_searcher.rb +6 -6
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d5617747ab6615039363ec2e756b7aa0a7c2fa4
|
4
|
+
data.tar.gz: c5b500b84e14a6b3d7959ab68e72142e069e0537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6abcf7418aeb9bdcb0717e1204f6e91bf1e501a9cc3587f7058ea2ce7db59511589d76d169037f83362f061a15b15a825948c7f011cbda28775190487875a1
|
7
|
+
data.tar.gz: 4ba56afbaeeec03a50303371cac4b969d2e00d7655e28ef583275fc9305043adce1e15ebe1292894df76c2644c7f433e3d2e327b935f37ed952695d419784be1
|
data/lib/the_ruby_searcher.rb
CHANGED
@@ -20,13 +20,13 @@ class Rbsearcher
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def search(pattern, path)
|
23
|
-
|
24
|
-
|
23
|
+
if not check()
|
24
|
+
puts "Select Engine not exist, automatically switch to grep"
|
25
25
|
@engine = 'grep'
|
26
26
|
end
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
cmd = [@engine, pattern, path].join(" ")
|
28
|
+
puts cmd
|
29
|
+
stdout, stdeerr, status = Open3.capture3(cmd)
|
30
|
+
return stdout, stdeerr, status
|
31
31
|
end
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_ruby_searcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roy Xue
|
@@ -18,7 +18,8 @@ extra_rdoc_files: []
|
|
18
18
|
files:
|
19
19
|
- lib/the_ruby_searcher.rb
|
20
20
|
homepage: https://github.com/royxue/the_ruby_searcher
|
21
|
-
licenses:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
22
23
|
metadata: {}
|
23
24
|
post_install_message:
|
24
25
|
rdoc_options: []
|