golfscrape 0.0.5 → 0.0.6

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.
@@ -73,7 +73,7 @@ module Golfscrape
73
73
  @dates = event.css('td').css('nobr').first.children.first.content.split(" - ")
74
74
  @start_date = Time.parse(@dates.first)
75
75
  @end_date = Time.parse(@dates.last)
76
- @name = event.css('td')[1].children.first.content
76
+ @name = event.css('td')[1].children.first.children.empty? ? event.css('td')[1].children.first.content : event.css('td')[1].children.first.children.first.content
77
77
  @location = event.css('td')[1].css('em').first.children.first.content
78
78
  end
79
79
  rescue
@@ -89,7 +89,7 @@ module Golfscrape
89
89
  @dates = event.css('td').css('nobr').first.children.first.content.split(" - ")
90
90
  @start_date = Time.parse(@dates.first)
91
91
  @end_date = Time.parse(@dates.last)
92
- @name = event.css('td')[1].children.first.content
92
+ @name = event.css('td')[1].children.first.children.empty? ? event.css('td')[1].children.first.content : event.css('td')[1].children.first.children.first.content
93
93
  @location = event.css('td')[1].css('em').first.children.first.content
94
94
  end
95
95
  rescue
@@ -1,3 +1,3 @@
1
1
  module Golfscrape
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Johnny Khai Nguyen
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-17 00:00:00 -05:00
19
- default_executable:
18
+ date: 2012-01-23 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: nokogiri
@@ -112,7 +111,6 @@ files:
112
111
  - spec/vcr_cassettes/leaderboard.yml
113
112
  - spec/vcr_cassettes/rankings.yml
114
113
  - spec/vcr_setup.rb
115
- has_rdoc: true
116
114
  homepage: https://github.com/phuphighter/golfscrape
117
115
  licenses: []
118
116
 
@@ -142,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
140
  requirements: []
143
141
 
144
142
  rubyforge_project: golfscrape
145
- rubygems_version: 1.6.2
143
+ rubygems_version: 1.8.15
146
144
  signing_key:
147
145
  specification_version: 3
148
146
  summary: Ruby class to scrape PGA Tour golf data