mlb 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ namespace :doc do
19
19
  end
20
20
 
21
21
  namespace :cache do
22
- require File.expand_path('../lib/mlb', __FILE__)
22
+ require 'mlb'
23
23
  desc "Update the teams file cache"
24
24
  task :update do
25
25
  doc = MLB::Team.results_from_freebase(true)
data/cache/teams.json CHANGED
@@ -520,11 +520,6 @@
520
520
  "player": "Alfredo Simon",
521
521
  "position": "Relief pitcher"
522
522
  },
523
- {
524
- "number": 17,
525
- "player": "Aubrey Huff",
526
- "position": "Designated hitter"
527
- },
528
523
  {
529
524
  "number": 41,
530
525
  "player": "Bob McCrory",
@@ -1553,6 +1548,11 @@
1553
1548
  "player": "David Weathers",
1554
1549
  "position": "Relief pitcher"
1555
1550
  },
1551
+ {
1552
+ "number": null,
1553
+ "player": "Edgar Renter\u00eda",
1554
+ "position": "Shortstop"
1555
+ },
1556
1556
  {
1557
1557
  "number": 36,
1558
1558
  "player": "Edinson Volquez",
@@ -5705,6 +5705,11 @@
5705
5705
  "player": "Alex Hinshaw",
5706
5706
  "position": "Relief pitcher"
5707
5707
  },
5708
+ {
5709
+ "number": null,
5710
+ "player": "Aubrey Huff",
5711
+ "position": "First baseman"
5712
+ },
5708
5713
  {
5709
5714
  "number": 75,
5710
5715
  "player": "Barry Zito",
@@ -5730,11 +5735,6 @@
5730
5735
  "player": "Conor Gillaspie",
5731
5736
  "position": "Third baseman"
5732
5737
  },
5733
- {
5734
- "number": 16,
5735
- "player": "Edgar Renter\u00eda",
5736
- "position": "Shortstop"
5737
- },
5738
5738
  {
5739
5739
  "number": 7,
5740
5740
  "player": "Emmanuel Burriss",
@@ -7158,5 +7158,5 @@
7158
7158
  }
7159
7159
  ],
7160
7160
  "status": "200 OK",
7161
- "transaction_id": "cache;cache02.p01.sjc1:8101;2010-11-07T17:25:04Z;0023"
7161
+ "transaction_id": "cache;cache02.p01.sjc1:8101;2011-03-20T20:47:28Z;0033"
7162
7162
  }
data/lib/mlb.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MLB
2
- require File.expand_path('../mlb/request', __FILE__)
3
- require File.expand_path('../mlb/team', __FILE__)
4
- require File.expand_path('../mlb/player', __FILE__)
2
+ require 'mlb/request'
3
+ require 'mlb/team'
4
+ require 'mlb/player'
5
5
  end
data/lib/mlb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MLB
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
data/mlb.gemspec CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |s|
7
7
  s.add_development_dependency('maruku', '~> 0.6')
8
8
  s.add_development_dependency('rake', '~> 0.8')
9
9
  s.add_development_dependency('rspec', '~> 2.5')
10
- s.add_development_dependency('simplecov', '~> 0.3')
10
+ s.add_development_dependency('simplecov', '~> 0.4')
11
11
  s.add_development_dependency('webmock', '~> 1.6')
12
12
  s.add_development_dependency('yard', '~> 0.6')
13
- s.add_development_dependency('ZenTest', '~> 4.4')
13
+ s.add_development_dependency('ZenTest', '~> 4.5')
14
14
  s.add_runtime_dependency('faraday', '~> 0.5.3')
15
15
  s.add_runtime_dependency('faraday_middleware', '~> 0.3.1')
16
16
  s.add_runtime_dependency('multi_json', '~> 0.0.5')
@@ -2,9 +2,7 @@ require 'simplecov'
2
2
  SimpleCov.start do
3
3
  add_group 'Libraries', 'lib'
4
4
  end
5
-
6
- require File.expand_path('../../lib/mlb', __FILE__)
7
-
5
+ require 'mlb'
8
6
  require 'rspec'
9
7
  require 'webmock/rspec'
10
8
  RSpec.configure do |config|
data/spec/mlb_spec.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path('../spec_helper', __FILE__)
1
+ require 'helper'
2
2
 
3
3
  describe MLB::Team, ".all" do
4
4
  context "with connection" do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mlb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.2
5
+ version: 0.5.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Erik Michaels-Ober
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-06 00:00:00 -05:00
13
+ date: 2011-03-20 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ~>
78
78
  - !ruby/object:Gem::Version
79
- version: "0.3"
79
+ version: "0.4"
80
80
  type: :development
81
81
  version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
@@ -109,7 +109,7 @@ dependencies:
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- version: "4.4"
112
+ version: "4.5"
113
113
  type: :development
114
114
  version_requirements: *id009
115
115
  - !ruby/object:Gem::Dependency
@@ -170,8 +170,8 @@ files:
170
170
  - lib/mlb/team.rb
171
171
  - lib/mlb/version.rb
172
172
  - mlb.gemspec
173
+ - spec/helper.rb
173
174
  - spec/mlb_spec.rb
174
- - spec/spec_helper.rb
175
175
  has_rdoc: true
176
176
  homepage: http://rubygems.org/gems/mlb
177
177
  licenses: []
@@ -196,10 +196,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements: []
197
197
 
198
198
  rubyforge_project:
199
- rubygems_version: 1.5.0
199
+ rubygems_version: 1.6.2
200
200
  signing_key:
201
201
  specification_version: 3
202
202
  summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
203
203
  test_files:
204
+ - spec/helper.rb
204
205
  - spec/mlb_spec.rb
205
- - spec/spec_helper.rb