google 1.0.0.beta2 → 1.0.0

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.
Files changed (2) hide show
  1. data/lib/google.rb +4 -1
  2. metadata +4 -4
data/lib/google.rb CHANGED
@@ -8,7 +8,7 @@ require_relative 'google/grab'
8
8
  require_relative 'google/pipe-view'
9
9
 
10
10
  opts = Trollop::options do
11
- version "google v1.0.0-beta2 (c) 2012 Kerrick Long http://kerrick.github.com/google"
11
+ version "google v1.0.0 (c) 2012 Kerrick Long http://kerrick.github.com/google"
12
12
  banner <<-EOM
13
13
  The google gem is a simple tool to search Gooogle with via a CLI.
14
14
  Usage:
@@ -53,6 +53,9 @@ query = ARGV.join(' ')
53
53
  raise Trollop::die "no search query specified" if query.empty?
54
54
 
55
55
  opts[:result] = 1 if opts[:lucky]
56
+ if !opts[:readability] && opts[:markdown]
57
+ raise Trollop::die "Must use --no-markdown if you use --no-readability"
58
+ end
56
59
 
57
60
  g = Google.new query, opts
58
61
  g.search
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kerrick Long
@@ -99,9 +99,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
102
- - - ! '>'
102
+ - - ! '>='
103
103
  - !ruby/object:Gem::Version
104
- version: 1.3.1
104
+ version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
107
  rubygems_version: 1.8.24