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.
Files changed (2) hide show
  1. data/lib/google.rb +4 -1
  2. 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-beta.1 (c) 2012 Kerrick Long http://kerrick.github.com/google"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta1
4
+ version: 1.0.0.beta2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: