context_grep 0.0.0 → 0.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: 34d9782767ed12911342d2f7ee50ab690c50dc402dc5bb08b5818496cbaba827
4
- data.tar.gz: 0715e87343a1e3c885c3d0d690f548f82e2b1fcafcb20d9c69157b8504cacb3e
3
+ metadata.gz: ea3059bcd967d01416dfaa3b863e35e5769f4ba324ed8a0e2e955f5dba7af4aa
4
+ data.tar.gz: 67e00462e9acea5656acbfdfaf9332a022517c46accbccc23ec73aa6dace4949
5
5
  SHA512:
6
- metadata.gz: 2d8c5e790c89a6a72fa025005490528217ed793714b04c636409aa3961f5b080e53a91fb009b49458a27de234fb08c8d280b847a315c0833af6bebc4ec4ed3c3
7
- data.tar.gz: dcea446db6fd1ca7f65b9d5670979bace1d6eaa5ec3e8a84ef70302987756cc23ff3a75174329a855268063ca3ef8b49f04424bb4cfee5b3b8d75fdc7a0da1c3
6
+ metadata.gz: 17f35813e93877bfab7cd0e2ecde9bca67fdbab0d76d2ae7f4bc6d348eb88f4d007aa60e43ff264ce7111cd1b77698db4c890bbb99e8c6c5ed747dbdfa555f6d
7
+ data.tar.gz: 2189d4ae24540a092a3dba04f2336cd34389e24e16d6e213b58d958b38d242dc335c3bad560cca8d4fa818ccb44a52b35ed539da2c5cd944b898fb9b8450d35f
data/context_grep.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "context_grep"
3
- spec.version = "0.0.0"
3
+ spec.version = "0.0.1"
4
4
  spec.summary = "grep results with syntactic parent chains"
5
5
 
6
6
  spec.author = "Victor Maslov aka Nakilon"
data/lib/context_grep.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "linguist"
2
+ require "pathname" # undefined method `Pathname' for TreeSitter:Module (NoMethodError)
2
3
  require "tree_stand"
3
- TreeStand.config.parser_path = File.expand_path "~/.contextgrep"
4
+ TreeStand.config.parser_path = File.expand_path "~/.context_grep"
4
5
 
5
6
  def ContextGrep pattern
6
7
  `#{system("rg --version >/dev/null 2>&1") ? "rg -n" : "grep -nrI"} #{pattern} . 2>/dev/null`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context_grep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Maslov aka Nakilon