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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5970896fb073a016c531753aee5a4ea8e23537c1
4
- data.tar.gz: f2ab740989e19f697af5fe94bcb3b79fcb396925
3
+ metadata.gz: 657de9c9a6382eef43472bf4809f9f8f5396d986
4
+ data.tar.gz: ebf2083c7638417cf6bddb00bd8305e9d0f86982
5
5
  SHA512:
6
- metadata.gz: 7632215dcd09df77023e986964e939d4d6637ab72cc929b54d30651a7fb35fb1ec51adbb30e490da8ce065fb91bd69ba4b3f6bc826df2d754b33bd7638c372fb
7
- data.tar.gz: da479cce6948f4f90bc274785b0055d12e533e9847431c93f59b262779d03609d903c42e24a65b4b3aca4ba9443b277dcf06a8cca2073c592ba723d520ae9fec
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).
@@ -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] || true
66
+ @colorize = @opts[:colorize].nil? ? true : @opts[:colorize]
67
67
  end
68
68
 
69
69
  def self.get_default_config
@@ -1,3 +1,3 @@
1
1
  module GrepPage
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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.8
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-06-08 00:00:00.000000000 Z
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop