cgrep 0.1.0 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -5
- data/cgrep.gemspec +2 -4
- data/exe/cgrep +1 -2
- 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: 24548f0cc6c7a3dc1ee9b1fa3d03d1b5b953e741
|
|
4
|
+
data.tar.gz: e81e204f17d0fcec85f8393286578fb7c73df860
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbb8aab4e464e73e602550406f01dd047914cfcf465d252236035b451ded1d1a4fcce0181f89ae64a49db7c2994b26c13db3addc863ad59363dd584355e49fbe
|
|
7
|
+
data.tar.gz: 592755b8d360a74f9c50ff51c35788156f9282c06c9383d1669b5024c64e006f235b3694f19d5adca908261dd0b551fb1d554a5fa612d6aff58ead9add1162ec
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
# Colorized Grep
|
|
2
2
|
> Minor tool to colorize terminal output
|
|
3
3
|
|
|
4
|
-
##
|
|
4
|
+
## Simple color grep
|
|
5
5
|
|
|
6
6
|

|
|
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
|
+

|
|
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.
|
|
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 =
|
|
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
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.
|
|
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:
|