grepg 0.0.8 → 0.0.9
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/README.md +3 -0
- data/lib/grepg/parser.rb +1 -1
- data/lib/grepg/version.rb +1 -1
- data/spec/grepg/parser_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 657de9c9a6382eef43472bf4809f9f8f5396d986
|
|
4
|
+
data.tar.gz: ebf2083c7638417cf6bddb00bd8305e9d0f86982
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3d1ba4d6f545339211a89ec713e5dc63a8a238c8c6f7a522c5f547f7e31e54f1f9f2c8b40b42717f493d4b74b32409376c673ee129bd085ebc404d2fc031392
|
|
7
|
+
data.tar.gz: c67a775122fff8255f4787ced35fc70382111bed6298bad0439f5d845652373b77f8fcd74cf58e64b1cc6ce35fd1d39f48655a7830fb19d6f51d14188a6ffbac
|
data/README.md
CHANGED
|
@@ -99,5 +99,8 @@ User: evidanary, Topic: bootstrap
|
|
|
99
99
|
#Development
|
|
100
100
|
To execute tests run ```bundle exec rake spec```. To install the gem locally, first build it using ```bundle exec rake build```. Then install the gem ```gem install pkg/grepg-0.0.1.gem```
|
|
101
101
|
|
|
102
|
+
#Related Projects
|
|
103
|
+
[Python Client](https://github.com/tejal29/grepg)
|
|
104
|
+
|
|
102
105
|
#License
|
|
103
106
|
grepg is under the [MIT License](http://www.opensource.org/licenses/MIT).
|
data/lib/grepg/parser.rb
CHANGED
|
@@ -63,7 +63,7 @@ Defaults:
|
|
|
63
63
|
@topic = @opts[:topic]
|
|
64
64
|
@search_term = @opts[:search]
|
|
65
65
|
@search_operator = (@opts[:search_operator] || "and").upcase.to_sym
|
|
66
|
-
@colorize = @opts[:colorize]
|
|
66
|
+
@colorize = @opts[:colorize].nil? ? true : @opts[:colorize]
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def self.get_default_config
|
data/lib/grepg/version.rb
CHANGED
data/spec/grepg/parser_spec.rb
CHANGED
|
@@ -37,6 +37,12 @@ describe GrepPage::Parser do
|
|
|
37
37
|
expect(output.inspect).to include("\\e[0;34;49m")
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
it "does not colorize output of the result" do
|
|
41
|
+
parser = GrepPage::Parser.new('-u kdavis -t css --no-colorize'.split(' '))
|
|
42
|
+
output = capture_stdout { parser.run! }
|
|
43
|
+
expect(output.inspect).not_to include("\\e[0;34;49m")
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
# Test if defaut file gets read
|
|
41
47
|
it "reads username from the defaults file" do
|
|
42
48
|
expect(File).to receive(:exist?).and_return(true)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grepg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yash Ranadive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: trollop
|