NBA_info 0.1.8 → 0.1.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9bd40594650b7eb85e550538f7d95e256eb0f32
4
- data.tar.gz: e967429be52c2fd5eaf4442b8d9fcab80dce89a4
3
+ metadata.gz: 41ac6ab7ca032aa3bf7155101094d21895e4b408
4
+ data.tar.gz: d0f926003d1797b787daeaf00ae49106c0af2f45
5
5
  SHA512:
6
- metadata.gz: adec0444f2ac9003af3f0eb0fa864484fccc96dba1f0d65eaadd0bce15cb357f701f6fb0d8436c23e5684c0742421b6696430b84cde8aacee0cd0fd14dee4e52
7
- data.tar.gz: f8f83076fa4bfa1e8c4bbaf74989e23d996fe1814fd38fe761bc974ba03d1f3d27dea36229196ce8aadc27697fcae9323f5abb65e8a108d3d4a853c183f34084
6
+ metadata.gz: 7ec3fe0ffbe1d35741a7c8ae8a2238633a2cf323dead9c09723ae90944208bc98fec768446be60d69a8c7fa859829de2626c5705b186d3f4a6cbb681765fe09c
7
+ data.tar.gz: dd1b86a071e4f6b6a45c0c89efb9b32125c72fd989b94c145174f0d3cdadc94f9ef12ef4c2bca8d6a6a9b35d7a3a26098b9382606e5315b85514b4d38cda70b2
Binary file
@@ -61,4 +61,14 @@ class Scraper
61
61
  player_profile = Hash[data.zip(f)]
62
62
  [player_profile, f, @execute]
63
63
  end
64
+
65
+ def leader
66
+ leaders = []
67
+ doc2 = Nokogiri.HTML(open('http://espn.go.com/nba/statistics'))
68
+ leaderscore = doc2.xpath("//div[@class='mod-content']//td[@align='right']/text()")
69
+ leaders << leaderscore[1]
70
+ leaders << leaderscore[19]
71
+ leaders << leaderscore[7]
72
+ leaders
73
+ end
64
74
  end
@@ -1,4 +1,4 @@
1
1
  module NBA_INFO
2
- VERSION = '0.1.8'
3
- DATE = '2014-11-13'
2
+ VERSION = '0.1.9'
3
+ DATE = '2014-01-10'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: NBA_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - poweihuang
@@ -66,6 +66,7 @@ files:
66
66
  - Gemfile.lock
67
67
  - LICENSE
68
68
  - NBA_info-0.1.7.gem
69
+ - NBA_info-0.1.8.gem
69
70
  - NBA_info.gemspec
70
71
  - README.md
71
72
  - Rakefile