googling 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b7dfc4883fa18056d6f9c590b640350383226d7
4
- data.tar.gz: dfbd4347d6980de8f91a00b4edab665697c8bbd7
3
+ metadata.gz: 865b704187fd49dbd8c6c96409e63b958b4d44ee
4
+ data.tar.gz: 7d54e670ec78717e3dbec8eb19f0a203ebe646ce
5
5
  SHA512:
6
- metadata.gz: b9744670fa0023122113fc940d84e23eb58c90aef2ec0ce9ec9dd464cc5533f50be8d5b22dec58eebc0b68d1180cca596ee49fc5d35b07cb8e623734aea4f3af
7
- data.tar.gz: 7e4efd6486b8240fdeffe6d2fddba1dd14838b3a20fb83d69bf317bee7af397797836946f2412710b1ded0ddcf2bcf0f20eec5947e0a5d8259cd373ac2c9822e
6
+ metadata.gz: 76b3113b32d9e718f5a606c62b4d6d3c1d71330775ff7537b471ff2e174f7081069604dcc999da49bda9aefb50e8cb1d0af73d2ac16db239a1031b7eecfaa0b0
7
+ data.tar.gz: 56cf8b7735df92dfccb9c99d8f87d1f66f70a108175eca092ab5ab04015f9e75035184f14b4a3c43f919dd98f8f1f80c13a26c34971c7069d5d12c70c52aafb9
@@ -34,7 +34,7 @@ module Googling
34
34
  nodes = nodes.select { |r| r.css('table').empty? }
35
35
  nodes.map do |r|
36
36
  title = r.css('h3 a').text
37
- link = r.css('h3 a').map{|x| x['href'].to_s.sub!("/url?q=","")}
37
+ link = r.css('h3 a').first['href'].to_s.sub!("/url?q=","")
38
38
  description = r.css('div.s span.st').text
39
39
  Result.new(title: title, link: link, description: description)
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module Googling
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Imyuan