golfscrape 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,11 +60,10 @@ module Golfscrape
60
60
  url = "http://espn.go.com/golf/schedule"
61
61
  doc = Nokogiri::HTML(open(url))
62
62
 
63
- events_curr = doc.css('table.tablehead')[0].css('tr')
64
-
63
+ events_curr = doc.css('table.tablehead')[0].css('tr')
65
64
  events_curr.each do |event|
66
65
  begin
67
- unless events.index(event) == 0 || events.index(event) == 1
66
+ unless events_curr.index(event) == 0 || events_curr.index(event) == 1
68
67
  @dates = event.css('td').css('nobr').first.children.first.content.split(" - ")
69
68
  @start_date = Time.parse(@dates.first)
70
69
  @end_date = Time.parse(@dates.last)
@@ -1,3 +1,3 @@
1
1
  module Golfscrape
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golfscrape
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Johnny Khai Nguyen