ripgrep 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3778f790aa4fe46bd2573b5e5fefa8429cfda234928d56c89b4b5485c8e681d4
4
- data.tar.gz: 5e15af07a7008e772666d35a0c38e0e5d2ad8824a4ae4a42b77c2073d4252645
3
+ metadata.gz: 44ff07d862f58d2af436d6291cf716bccd785bbcef2dd39cca34fca259feab1b
4
+ data.tar.gz: 4e45c783a11cebb988198612c24df11f4f2c249302cf05b407ba1fca844d1a09
5
5
  SHA512:
6
- metadata.gz: 53c17879617f7a49629ffda4099cd231ae1b2746c3b1c456a7a613b453dbb55466996b560cf8e3db7e46dfda098fe5d59c4cd09f06f6edea1cd28de4e66f29b7
7
- data.tar.gz: f87295bc407b1b46bc916110c34a74230691d6e3af81cfeaa7c0ebd407456a09477daf8049c7ce1f54a7ccb25462bf08224bc0c97154f0aaaac0feb8eb30ae4c
6
+ metadata.gz: 400b3e1f6ac0a64238ec17920c35776fe90ef5a475d2dd4eb307a6c961619d2b8e50b63d7bf5d31c4eb57ba488609c2838452af52f655dc7546594eab5b321da
7
+ data.tar.gz: 2aeeb1b384ba253a338b75e8a2114d79b267c7fb61105469c388423a0f28256169ac82f24df80677ba22656351aeb7ae9d67706c08f1571a548013694e15e775
@@ -4,7 +4,7 @@ module Ripgrep
4
4
  class Client
5
5
  extend Forwardable
6
6
 
7
- def_delegators Core, :version, :help
7
+ def_delegators Core, :version, :help, :files
8
8
 
9
9
  def initialize(verbose: false)
10
10
  @verbose = verbose
@@ -18,5 +18,9 @@ module Ripgrep
18
18
  def self.help
19
19
  self.exec('--help').to_s
20
20
  end
21
+
22
+ def self.files
23
+ self.exec('--files').to_a
24
+ end
21
25
  end
22
26
  end
@@ -33,6 +33,7 @@ module Ripgrep
33
33
  def lines
34
34
  @raw_result.to_s.split("\n")
35
35
  end
36
+ alias_method :to_a, :lines
36
37
 
37
38
  def to_s
38
39
  @raw_result.to_s
@@ -1,3 +1,3 @@
1
1
  module Ripgrep
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripgrep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - motoki-shun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-27 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler