cgrep 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +7 -5
  4. data/cgrep.gemspec +2 -4
  5. data/exe/cgrep +1 -2
  6. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f38e3dc45de2e6b4139d3ae577d7af6c98020a
4
- data.tar.gz: 98a7416a1aea6b9ab0ff387a1f21b3a8ac62b52c
3
+ metadata.gz: 24548f0cc6c7a3dc1ee9b1fa3d03d1b5b953e741
4
+ data.tar.gz: e81e204f17d0fcec85f8393286578fb7c73df860
5
5
  SHA512:
6
- metadata.gz: e75db1b51fe8f346577468a9dfc9aaef05741cab24a248ade12f7fc5e7e1c2419fad9973cec062d92fe8fd4f82b972e7b4ef739da40bfca7065d6068cb3a36df
7
- data.tar.gz: eeb9656b771810120f2313b1ed1a2db170193c97c0889768bb27a8544a571ee6a697dda8c4245d5ccb987155db7183c599278d53e01e50e8fe2ee98fdeb0aeea
6
+ metadata.gz: cbb8aab4e464e73e602550406f01dd047914cfcf465d252236035b451ded1d1a4fcce0181f89ae64a49db7c2994b26c13db3addc863ad59363dd584355e49fbe
7
+ data.tar.gz: 592755b8d360a74f9c50ff51c35788156f9282c06c9383d1669b5024c64e006f235b3694f19d5adca908261dd0b551fb1d554a5fa612d6aff58ead9add1162ec
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ PLATFORMS
7
7
  ruby
8
8
 
9
9
  DEPENDENCIES
10
- rainbow (= 3.0.0)
10
+ rainbow (~> 3.0)
11
11
 
12
12
  BUNDLED WITH
13
13
  1.16.3
data/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  # Colorized Grep
2
2
  > Minor tool to colorize terminal output
3
3
 
4
- ## How
4
+ ## Simple color grep
5
5
 
6
6
  ![demo](demo.gif)
7
7
 
8
- ```
9
- ~/path/to/project$ ruby ./cgrep.rb -p beatifull:pink this is the start of a beautiful friendship
10
- this is the start of a beautiful friendship <-- believe me this will be in pink
11
- ```
12
8
  * -p or --pattern, using the format **pattern:color** to colorize the string match
13
9
 
10
+ ## Piped input
11
+
12
+ ![demo-stdinput](demo-stdinput.gif)
13
+
14
+ * -i or --input, get input from standard input (piped)
15
+
14
16
  ## Roadmap
15
17
 
16
18
  * create a gem
data/cgrep.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "cgrep"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["Alex Rocha"]
9
9
  spec.email = ["alex.rochas@yahoo.com.br"]
10
10
 
@@ -14,9 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.bindir = "exe"
17
- spec.executables = spec.files.grep(%r{^exe/}) { |f|
18
- puts f
19
- File.basename(f) }
17
+ spec.executables = "cgrep"
20
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
19
  spec.require_paths = ["lib"]
22
20
 
data/exe/cgrep CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "cgrep"
3
+ require "cgrep"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cgrep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rocha
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: To grep and color input by pattern
56
56
  email:
57
57
  - alex.rochas@yahoo.com.br
58
- executables: []
58
+ executables:
59
+ - cgrep
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files: