google 1.0.4 → 1.0.5

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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "google"
3
- s.version = "1.0.4"
3
+ s.version = "1.0.5"
4
4
  s.executables << 'google'
5
5
  s.add_runtime_dependency "json", ["~> 1"]
6
6
  s.add_runtime_dependency "htmlentities", ["~> 4"]
@@ -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.3 (c) 2012 Kerrick Long http://kerrick.github.com/google"
11
+ version "google v1.0.5 (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:
@@ -35,9 +35,10 @@ class Google
35
35
  if info[:query_strings][:start] <= num &&
36
36
  info[:query_strings][:start] + @opts[:size] > num
37
37
  if str[3].nil?
38
- view result_array[num]['url']
38
+ view result_array[num - info[:query_strings][:start]]['url']
39
39
  else
40
- pipe str[3].strip, result_array[num]['url']
40
+ pipe str[3].strip,
41
+ result_array[num - info[:query_strings][:start]]['url']
41
42
  end
42
43
  else
43
44
  Formatador.display Utils::wrap("[yellow]! Result not on this page.")
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.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: