google 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google.rb +4 -1
- metadata +1 -1
data/lib/google.rb
CHANGED
@@ -5,9 +5,10 @@ require_relative 'google/request'
|
|
5
5
|
require_relative 'google/display_serp'
|
6
6
|
require_relative 'google/input'
|
7
7
|
require_relative 'google/grab'
|
8
|
+
require_relative 'google/pipe-view'
|
8
9
|
|
9
10
|
opts = Trollop::options do
|
10
|
-
version "google v1.0.0-
|
11
|
+
version "google v1.0.0-beta2 (c) 2012 Kerrick Long http://kerrick.github.com/google"
|
11
12
|
banner <<-EOM
|
12
13
|
The google gem is a simple tool to search Gooogle with via a CLI.
|
13
14
|
Usage:
|
@@ -51,5 +52,7 @@ end
|
|
51
52
|
query = ARGV.join(' ')
|
52
53
|
raise Trollop::die "no search query specified" if query.empty?
|
53
54
|
|
55
|
+
opts[:result] = 1 if opts[:lucky]
|
56
|
+
|
54
57
|
g = Google.new query, opts
|
55
58
|
g.search
|