mlb 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.yardopts +2 -0
- data/CONTRIBUTING.md +49 -0
- data/README.md +23 -55
- data/Rakefile +3 -13
- data/lib/mlb/player.rb +3 -3
- data/lib/mlb/request.rb +1 -1
- data/lib/mlb/team.rb +12 -12
- data/lib/mlb/version.rb +1 -1
- data/mlb.gemspec +26 -24
- data/spec/helper.rb +7 -0
- data/spec/mlb_spec.rb +11 -19
- metadata +105 -180
- metadata.gz.sig +0 -0
- data/.gemtest +0 -0
- data/.gitignore +0 -9
- data/.rspec +0 -2
- data/.travis.yml +0 -6
- data/Gemfile +0 -5
- data/cache/teams.json +0 -7390
data.tar.gz.sig
ADDED
Binary file
|
data/.yardopts
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
## Contributing
|
2
|
+
In the spirit of [free software][free-sw], **everyone** is encouraged to help
|
3
|
+
improve this project.
|
4
|
+
|
5
|
+
[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
|
6
|
+
|
7
|
+
Here are some ways *you* can contribute:
|
8
|
+
|
9
|
+
* by using alpha, beta, and prerelease versions
|
10
|
+
* by reporting bugs
|
11
|
+
* by suggesting new features
|
12
|
+
* by writing or editing documentation
|
13
|
+
* by writing specifications
|
14
|
+
* by writing code (**no patch is too small**: fix typos, add comments, cleanup
|
15
|
+
inconsistent whitespace)
|
16
|
+
* by refactoring code
|
17
|
+
* by closing [issues][]
|
18
|
+
* by reviewing patches
|
19
|
+
|
20
|
+
[issues]: https://github.com/sferik/mlb/issues
|
21
|
+
|
22
|
+
## Submitting an Issue
|
23
|
+
We use the [GitHub issue tracker][issues] to track bugs and features. Before
|
24
|
+
submitting a bug report or feature request, check to make sure it hasn't
|
25
|
+
already been submitted. When submitting a bug report, please include a [Gist][]
|
26
|
+
that includes a stack trace and any details that may be necessary to reproduce
|
27
|
+
the bug, including your gem version, Ruby version, and operating system.
|
28
|
+
Ideally, a bug report should include a pull request with failing specs.
|
29
|
+
|
30
|
+
[gist]: https://gist.github.com/
|
31
|
+
|
32
|
+
## Submitting a Pull Request
|
33
|
+
1. [Fork the repository.][fork]
|
34
|
+
2. [Create a topic branch.][branch]
|
35
|
+
3. Add specs for your unimplemented feature or bug fix.
|
36
|
+
4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
|
37
|
+
5. Implement your feature or bug fix.
|
38
|
+
6. Run `bundle exec rake spec`. If your specs fail, return to step 5.
|
39
|
+
7. Run `open coverage/index.html`. If your changes are not completely covered
|
40
|
+
by your tests, return to step 3.
|
41
|
+
8. Add documentation for your feature or bug fix.
|
42
|
+
9. Run `bundle exec rake yard`. If your changes are not 100% documented, go
|
43
|
+
back to step 8.
|
44
|
+
10. Add, commit, and push your changes.
|
45
|
+
11. [Submit a pull request.][pr]
|
46
|
+
|
47
|
+
[fork]: http://help.github.com/fork-a-repo/
|
48
|
+
[branch]: http://learn.github.com/p/branching.html
|
49
|
+
[pr]: http://help.github.com/send-pull-requests/
|
data/README.md
CHANGED
@@ -1,18 +1,33 @@
|
|
1
|
-
# MLB.rb
|
2
|
-
|
1
|
+
# MLB.rb
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/mlb.png)][gem]
|
3
|
+
[![Build Status](https://secure.travis-ci.org/sferik/mlb.png?branch=master)][travis]
|
4
|
+
[![Dependency Status](https://gemnasium.com/sferik/mlb.png?travis)][gemnasium]
|
3
5
|
|
6
|
+
[gem]: https://rubygems.org/gems/mlb
|
4
7
|
[travis]: http://travis-ci.org/sferik/mlb
|
5
8
|
[gemnasium]: https://gemnasium.com/sferik/mlb
|
6
9
|
|
7
|
-
|
10
|
+
MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
|
11
|
+
|
12
|
+
## Installation
|
8
13
|
gem install mlb
|
9
14
|
|
10
|
-
|
15
|
+
To ensure the code you're installing hasn't been tampered with, it's
|
16
|
+
recommended that you verify the signature. To do this, you need to add my
|
17
|
+
public key as a trusted certificate (you only need to do this once):
|
18
|
+
|
19
|
+
gem cert --add <(curl -Ls https://gist.github.com/sferik/4701180/raw/public_cert.pem)
|
20
|
+
|
21
|
+
Then, install the gem with the high security trust policy:
|
22
|
+
|
23
|
+
gem install mlb -P HighSecurity
|
24
|
+
|
25
|
+
## Documentation
|
11
26
|
[http://rdoc.info/gems/mlb][documentation]
|
12
27
|
|
13
28
|
[documentation]: http://rdoc.info/gems/mlb
|
14
29
|
|
15
|
-
##
|
30
|
+
## Usage Examples
|
16
31
|
$ irb
|
17
32
|
>> require 'mlb'
|
18
33
|
>> MLB::Team.all.first.name # => "Arizona Diamondbacks"
|
@@ -29,54 +44,7 @@ MLB.rb is a Ruby library for retrieving current Major League Baseball players, m
|
|
29
44
|
>> MLB::Team.all.first.players.first.number # => 28
|
30
45
|
>> MLB::Team.all.first.players.first.position # => "Right fielder"
|
31
46
|
|
32
|
-
##
|
33
|
-
In the spirit of [free software][free-sw], **everyone** is encouraged to help
|
34
|
-
improve this project.
|
35
|
-
|
36
|
-
[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
|
37
|
-
|
38
|
-
Here are some ways *you* can contribute:
|
39
|
-
|
40
|
-
* by using alpha, beta, and prerelease versions
|
41
|
-
* by reporting bugs
|
42
|
-
* by suggesting new features
|
43
|
-
* by writing or editing documentation
|
44
|
-
* by writing specifications
|
45
|
-
* by writing code (**no patch is too small**: fix typos, add comments, cleanup
|
46
|
-
inconsistent whitespace)
|
47
|
-
* by refactoring code
|
48
|
-
* by closing [issues][]
|
49
|
-
* by reviewing patches
|
50
|
-
|
51
|
-
[issues]: https://github.com/sferik/mlb/issues
|
52
|
-
|
53
|
-
## <a name="issues"></a>Submitting an Issue
|
54
|
-
We use the [GitHub issue tracker][issues] to track bugs and features. Before
|
55
|
-
submitting a bug report or feature request, check to make sure it hasn't
|
56
|
-
already been submitted. You can indicate support for an existing issue by
|
57
|
-
voting it up. When submitting a bug report, please include a [Gist][] that
|
58
|
-
includes a stack trace and any details that may be necessary to reproduce the
|
59
|
-
bug, including your gem version, Ruby version, and operating system. Ideally, a
|
60
|
-
bug report should include a pull request with failing specs.
|
61
|
-
|
62
|
-
[gist]: https://gist.github.com/
|
63
|
-
|
64
|
-
## <a name="pulls"></a>Submitting a Pull Request
|
65
|
-
1. Fork the project.
|
66
|
-
2. Create a topic branch.
|
67
|
-
3. Implement your feature or bug fix.
|
68
|
-
4. Add documentation for your feature or bug fix.
|
69
|
-
5. Run `bundle exec rake doc:yard`. If your changes are not 100% documented, go
|
70
|
-
back to step 4.
|
71
|
-
6. Add specs for your feature or bug fix.
|
72
|
-
7. Run `bundle exec rake spec`. If your changes are not 100% covered, go back
|
73
|
-
to step 6.
|
74
|
-
8. Commit and push your changes.
|
75
|
-
9. Submit a pull request. Please do not include changes to the gemspec,
|
76
|
-
version, or history file. (If you want to create your own version for some
|
77
|
-
reason, please do so in a separate commit.)
|
78
|
-
|
79
|
-
## <a name="versions"></a>Supported Ruby Versions
|
47
|
+
## Supported Ruby Versions
|
80
48
|
This library aims to support and is [tested against][travis] the following Ruby
|
81
49
|
implementations:
|
82
50
|
|
@@ -100,7 +68,7 @@ implementation, you will be personally responsible for providing patches in a
|
|
100
68
|
timely fashion. If critical issues for a particular implementation exist at the
|
101
69
|
time of a major release, support for that Ruby version may be dropped.
|
102
70
|
|
103
|
-
##
|
71
|
+
## Colophon
|
104
72
|
MLB was built with the following tools:
|
105
73
|
|
106
74
|
* [Bundler][]
|
@@ -127,7 +95,7 @@ MLB was built with the following tools:
|
|
127
95
|
[webmock]: https://github.com/bblimke/webmock
|
128
96
|
[yard]: http://yardoc.org/
|
129
97
|
|
130
|
-
##
|
98
|
+
## Copyright
|
131
99
|
Copyright (c) 2010 Erik Michaels-Ober. See [LICENSE][] for details.
|
132
100
|
|
133
101
|
[license]: https://github.com/sferik/mlb/blob/master/LICENSE.md
|
data/Rakefile
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
|
3
1
|
require 'bundler'
|
4
2
|
Bundler::GemHelper.install_tasks
|
5
3
|
|
@@ -9,17 +7,6 @@ RSpec::Core::RakeTask.new(:spec)
|
|
9
7
|
task :test => :spec
|
10
8
|
task :default => :spec
|
11
9
|
|
12
|
-
namespace :doc do
|
13
|
-
require 'yard'
|
14
|
-
YARD::Rake::YardocTask.new do |task|
|
15
|
-
task.files = ['LICENSE.md', 'lib/**/*.rb']
|
16
|
-
task.options = [
|
17
|
-
'--output-dir', 'doc/yard',
|
18
|
-
'--markup', 'markdown',
|
19
|
-
]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
10
|
namespace :cache do
|
24
11
|
require 'mlb'
|
25
12
|
desc "Update the teams file cache"
|
@@ -30,3 +17,6 @@ namespace :cache do
|
|
30
17
|
end
|
31
18
|
end
|
32
19
|
end
|
20
|
+
|
21
|
+
require 'yard'
|
22
|
+
YARD::Rake::YardocTask.new
|
data/lib/mlb/player.rb
CHANGED
@@ -15,9 +15,9 @@ module MLB
|
|
15
15
|
def self.all_from_roster(players)
|
16
16
|
players.map do |player|
|
17
17
|
new(
|
18
|
-
:
|
19
|
-
:
|
20
|
-
:
|
18
|
+
name: player['player'],
|
19
|
+
number: player['number'],
|
20
|
+
position: player['position']
|
21
21
|
)
|
22
22
|
end
|
23
23
|
end
|
data/lib/mlb/request.rb
CHANGED
@@ -15,7 +15,7 @@ module MLB
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def self.connection(raw=false)
|
18
|
-
Faraday.new(:
|
18
|
+
Faraday.new(url: 'http://api.freebase.com') do |connection|
|
19
19
|
connection.use FaradayMiddleware::ParseJson unless raw
|
20
20
|
connection.adapter Faraday.default_adapter
|
21
21
|
end
|
data/lib/mlb/team.rb
CHANGED
@@ -45,7 +45,7 @@ module MLB
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.results_from_freebase(raw=false)
|
48
|
-
options = {:
|
48
|
+
options = {query: mql_query}
|
49
49
|
Request.get('/api/service/mqlread', options, raw)
|
50
50
|
end
|
51
51
|
|
@@ -72,17 +72,17 @@ module MLB
|
|
72
72
|
players = result['current_roster']
|
73
73
|
|
74
74
|
teams << new(
|
75
|
-
:
|
76
|
-
:
|
77
|
-
:
|
78
|
-
:
|
79
|
-
:
|
80
|
-
:
|
81
|
-
:
|
82
|
-
:
|
83
|
-
:
|
84
|
-
:
|
85
|
-
:
|
75
|
+
name: result['name'],
|
76
|
+
league: (league ? league['name'] : nil),
|
77
|
+
division: (division ? division['name'] : nil),
|
78
|
+
manager: (manager ? manager['name'] : nil),
|
79
|
+
wins: (stats ? stats['wins'].to_i : nil),
|
80
|
+
losses: (stats ? stats['losses'].to_i : nil),
|
81
|
+
founded: (founded ? founded['value'].to_i : nil),
|
82
|
+
mascot: (mascot ? mascot['name'] : nil),
|
83
|
+
ballpark: (ballpark ? ballpark['name'] : nil),
|
84
|
+
logo_url: (logo_suffix ? logo_prefix + logo_suffix['id'] : nil),
|
85
|
+
players: (players ? Player.all_from_roster(players) : [])
|
86
86
|
)
|
87
87
|
end
|
88
88
|
teams
|
data/lib/mlb/version.rb
CHANGED
data/mlb.gemspec
CHANGED
@@ -1,26 +1,28 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'mlb/version'
|
3
5
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.add_dependency 'faraday', '~> 0.8'
|
8
|
+
spec.add_dependency 'faraday_middleware', '~> 0.8'
|
9
|
+
spec.add_dependency 'multi_json', '~> 1.3'
|
10
|
+
spec.add_development_dependency 'bundler', '~> 1.0'
|
11
|
+
spec.author = "Erik Michaels-Ober"
|
12
|
+
spec.cert_chain = ['certs/sferik.pem']
|
13
|
+
spec.description = %q{MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.}
|
14
|
+
spec.email = 'sferik@gmail.com'
|
15
|
+
spec.files = %w(.yardopts CONTRIBUTING.md LICENSE.md README.md Rakefile mlb.gemspec)
|
16
|
+
spec.files += Dir.glob("lib/**/*.rb")
|
17
|
+
spec.files += Dir.glob("spec/**/*")
|
18
|
+
spec.homepage = 'https://github.com/sferik/mlb'
|
19
|
+
spec.licenses = ['MIT']
|
20
|
+
spec.name = 'mlb'
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
spec.required_rubygems_version = '>= 1.3.6'
|
23
|
+
spec.required_ruby_version = '>= 1.9.2'
|
24
|
+
spec.signing_key = File.expand_path("~/.gem/private_key.pem") if $0 =~ /gem\z/
|
25
|
+
spec.summary = spec.description
|
26
|
+
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
27
|
+
spec.version = MLB::VERSION
|
26
28
|
end
|
data/spec/helper.rb
CHANGED
@@ -4,10 +4,17 @@ unless ENV['CI']
|
|
4
4
|
add_filter 'spec'
|
5
5
|
end
|
6
6
|
end
|
7
|
+
|
7
8
|
require 'mlb'
|
8
9
|
require 'rspec'
|
9
10
|
require 'webmock/rspec'
|
10
11
|
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.expect_with :rspec do |c|
|
14
|
+
c.syntax = :expect
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
11
18
|
def fixture_path
|
12
19
|
File.expand_path("../../cache", __FILE__)
|
13
20
|
end
|
data/spec/mlb_spec.rb
CHANGED
@@ -3,59 +3,51 @@ require 'helper'
|
|
3
3
|
describe MLB::Team, ".all" do
|
4
4
|
context "with connection" do
|
5
5
|
before do
|
6
|
-
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').
|
7
|
-
with(:query => {:query => MLB::Team.mql_query}).
|
8
|
-
to_return(:body => fixture("teams.json"))
|
6
|
+
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').with(query: {query: MLB::Team.mql_query}).to_return(body: fixture("teams.json"))
|
9
7
|
end
|
10
8
|
|
11
9
|
after do
|
12
10
|
MLB::Team.reset
|
13
11
|
end
|
14
12
|
|
15
|
-
it "
|
13
|
+
it "requests the correct resource" do
|
16
14
|
MLB::Team.all
|
17
|
-
a_request(:get, 'http://api.freebase.com/api/service/mqlread').
|
18
|
-
with(:query => {:query => MLB::Team.mql_query}).
|
19
|
-
should have_been_made
|
15
|
+
expect(a_request(:get, 'http://api.freebase.com/api/service/mqlread').with(query: {query: MLB::Team.mql_query})).to have_been_made
|
20
16
|
end
|
21
17
|
|
22
|
-
it "
|
18
|
+
it "returns the correct results" do
|
23
19
|
teams = MLB::Team.all
|
24
|
-
teams.first.name.
|
20
|
+
expect(teams.first.name).to eq "Arizona Diamondbacks"
|
25
21
|
end
|
26
22
|
end
|
27
23
|
|
28
24
|
context "with timeout" do
|
29
25
|
before do
|
30
|
-
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').
|
31
|
-
with(:query => {:query => MLB::Team.mql_query}).
|
32
|
-
to_timeout
|
26
|
+
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').with(query: {query: MLB::Team.mql_query}).to_timeout
|
33
27
|
end
|
34
28
|
|
35
29
|
after do
|
36
30
|
MLB::Team.reset
|
37
31
|
end
|
38
32
|
|
39
|
-
it "
|
33
|
+
it "returns the correct results" do
|
40
34
|
teams = MLB::Team.all
|
41
|
-
teams.first.name.
|
35
|
+
expect(teams.first.name).to eq "Arizona Diamondbacks"
|
42
36
|
end
|
43
37
|
end
|
44
38
|
|
45
39
|
context "without connection" do
|
46
40
|
before do
|
47
|
-
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').
|
48
|
-
with(:query => {:query => MLB::Team.mql_query}).
|
49
|
-
to_raise(SocketError)
|
41
|
+
stub_request(:get, 'http://api.freebase.com/api/service/mqlread').with(query: {query: MLB::Team.mql_query}).to_raise(SocketError)
|
50
42
|
end
|
51
43
|
|
52
44
|
after do
|
53
45
|
MLB::Team.reset
|
54
46
|
end
|
55
47
|
|
56
|
-
it "
|
48
|
+
it "returns the correct results" do
|
57
49
|
teams = MLB::Team.all
|
58
|
-
teams.first.name.
|
50
|
+
expect(teams.first.name).to eq "Arizona Diamondbacks"
|
59
51
|
end
|
60
52
|
end
|
61
53
|
end
|
metadata
CHANGED
@@ -1,229 +1,154 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mlb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
hash: 5
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 1
|
10
|
-
version: 0.6.1
|
5
|
+
version: 0.6.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Erik Michaels-Ober
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
|
-
cert_chain:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
cert_chain:
|
12
|
+
- !binary |-
|
13
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURMakNDQWhhZ0F3SUJB
|
14
|
+
Z0lCQURBTkJna3Foa2lHOXcwQkFRVUZBREE5TVE4d0RRWURWUVFEREFaelpt
|
15
|
+
VnkKYVdzeEZUQVRCZ29Ka2lhSmsvSXNaQUVaRmdWbmJXRnBiREVUTUJFR0Nn
|
16
|
+
bVNKb21UOGl4a0FSa1dBMk52YlRBZQpGdzB4TXpBeU1ETXhNREF5TWpkYUZ3
|
17
|
+
MHhOREF5TURNeE1EQXlNamRhTUQweER6QU5CZ05WQkFNTUJuTm1aWEpwCmF6
|
18
|
+
RVZNQk1HQ2dtU0pvbVQ4aXhrQVJrV0JXZHRZV2xzTVJNd0VRWUtDWkltaVpQ
|
19
|
+
eUxHUUJHUllEWTI5dE1JSUIKSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4
|
20
|
+
QU1JSUJDZ0tDQVFFQWwweDVkeDh1S3hpN1Rrckl1eUJVVEpWQgp2MW85M25V
|
21
|
+
QjlqL3k0TTk2Z1Yycll3QWNpMUpQQnNlTmQ2RnliempvM1lHdUhsN0VRSHVT
|
22
|
+
SE5hZjFwMmx4ZXcvCnk2MEpYSUpCQmdQY0RLL0tDUDROVUhvZm0wamZvWUQr
|
23
|
+
SDV1TkpmSENOcTcvWnNUeE90RTNSYTkyczBCQ01UcG0Kd0JNTWxXUjVNdGRF
|
24
|
+
aElZdUJPNFhobmVqWWdIMEwvN0JMMmx5bW50Vm5zci9hZ2RRb29qUUNOMUlR
|
25
|
+
bXNSSnZyUgpkdVpSTzN0WnZvSW8xcEJjNEpFZWhEdXFDZXlCZ1BMT3FNb0t0
|
26
|
+
UWxvbGQxVFFzMWtXVUJLN0tXTUZFaEtDL0tnCnp5ektSSFFvOXlEWXdPdllu
|
27
|
+
Z29CTFkrVC9sd0NUNGR5c3NkaHpSYmZueEFoYUt1NFNBc3NJd2FDMDF5Vm93
|
28
|
+
SUQKQVFBQm96a3dOekFKQmdOVkhSTUVBakFBTUIwR0ExVWREZ1FXQkJTMHJ1
|
29
|
+
RGZSYWs1Y2kxT3BETlgvWmRERWtJcwppVEFMQmdOVkhROEVCQU1DQkxBd0RR
|
30
|
+
WUpLb1pJaHZjTkFRRUZCUUFEZ2dFQkFISFNNcy9NUDBzT2FMa0V2NEpvCnp2
|
31
|
+
a20zcW41QTZ0MHZhSHg3NzRjbWVqeU1VKzV3eVN4UmV6c3BMN1VMaDlOZXVL
|
32
|
+
Mk9oVStPZTNUcHFyQWc1VEsKUjhHUUlMblZ1MkZlbUdBNnNBa1BEbGNQdGdB
|
33
|
+
NmllSTE5UFpPRjZIVkxtYy9JRC9kUC9OZ1pXV3pFZXFRS21jSwoyK0hNK1NF
|
34
|
+
RURoWmtTY1lla3c0Wk9lMTY0WnRaRzgxNm9BdjV4MHBHaXRTSWt1bVVwN1Y4
|
35
|
+
aUVaLzZlaHI3WTllClhPZzRlZXVuNUwvSmptakFSb1cya05kdmtSRDNjMkVl
|
36
|
+
U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
|
37
|
+
cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
|
38
|
+
cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
39
|
+
date: 2013-02-08 00:00:00.000000000 Z
|
40
|
+
dependencies:
|
41
|
+
- !ruby/object:Gem::Dependency
|
22
42
|
prerelease: false
|
23
|
-
|
24
|
-
|
25
|
-
requirements:
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
26
45
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 8
|
32
|
-
version: "0.8"
|
33
|
-
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: faraday_middleware
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.8'
|
39
48
|
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 27
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
- 8
|
47
|
-
version: "0.8"
|
48
49
|
type: :runtime
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
prerelease: false
|
53
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
|
-
requirements:
|
50
|
+
name: faraday
|
51
|
+
requirement: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
56
53
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
segments:
|
60
|
-
- 1
|
61
|
-
- 7
|
62
|
-
version: "1.7"
|
63
|
-
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: multi_json
|
67
|
-
prerelease: false
|
68
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0.8'
|
69
56
|
none: false
|
70
|
-
|
71
|
-
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
hash: 9
|
74
|
-
segments:
|
75
|
-
- 1
|
76
|
-
- 3
|
77
|
-
version: "1.3"
|
78
|
-
type: :runtime
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: maruku
|
57
|
+
- !ruby/object:Gem::Dependency
|
82
58
|
prerelease: false
|
83
|
-
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ~>
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.8'
|
84
64
|
none: false
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
version:
|
92
|
-
type: :development
|
93
|
-
version_requirements: *id005
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rake
|
96
|
-
prerelease: false
|
97
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
65
|
+
type: :runtime
|
66
|
+
name: faraday_middleware
|
67
|
+
requirement: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.8'
|
98
72
|
none: false
|
99
|
-
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
hash: 3
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
version: "0"
|
106
|
-
type: :development
|
107
|
-
version_requirements: *id006
|
108
|
-
- !ruby/object:Gem::Dependency
|
109
|
-
name: rspec
|
73
|
+
- !ruby/object:Gem::Dependency
|
110
74
|
prerelease: false
|
111
|
-
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.3'
|
112
80
|
none: false
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
version:
|
120
|
-
type: :development
|
121
|
-
version_requirements: *id007
|
122
|
-
- !ruby/object:Gem::Dependency
|
123
|
-
name: simplecov
|
124
|
-
prerelease: false
|
125
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
81
|
+
type: :runtime
|
82
|
+
name: multi_json
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '1.3'
|
126
88
|
none: false
|
127
|
-
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
hash: 3
|
131
|
-
segments:
|
132
|
-
- 0
|
133
|
-
version: "0"
|
134
|
-
type: :development
|
135
|
-
version_requirements: *id008
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: webmock
|
89
|
+
- !ruby/object:Gem::Dependency
|
138
90
|
prerelease: false
|
139
|
-
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.0'
|
140
96
|
none: false
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
hash: 3
|
145
|
-
segments:
|
146
|
-
- 0
|
147
|
-
version: "0"
|
148
97
|
type: :development
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
98
|
+
name: bundler
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.0'
|
154
104
|
none: false
|
155
|
-
|
156
|
-
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
hash: 3
|
159
|
-
segments:
|
160
|
-
- 0
|
161
|
-
version: "0"
|
162
|
-
type: :development
|
163
|
-
version_requirements: *id010
|
164
|
-
description: MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
|
105
|
+
description: MLB.rb is a Ruby library for retrieving current Major League Baseball
|
106
|
+
players, managers, teams, divisions, and leagues.
|
165
107
|
email: sferik@gmail.com
|
166
108
|
executables: []
|
167
|
-
|
168
109
|
extensions: []
|
169
|
-
|
170
110
|
extra_rdoc_files: []
|
171
|
-
|
172
|
-
files:
|
173
|
-
- .gemtest
|
174
|
-
- .gitignore
|
175
|
-
- .rspec
|
176
|
-
- .travis.yml
|
111
|
+
files:
|
177
112
|
- .yardopts
|
178
|
-
-
|
113
|
+
- CONTRIBUTING.md
|
179
114
|
- LICENSE.md
|
180
115
|
- README.md
|
181
116
|
- Rakefile
|
182
|
-
-
|
183
|
-
- lib/mlb.rb
|
117
|
+
- mlb.gemspec
|
184
118
|
- lib/mlb/player.rb
|
185
119
|
- lib/mlb/request.rb
|
186
120
|
- lib/mlb/team.rb
|
187
121
|
- lib/mlb/version.rb
|
188
|
-
- mlb.
|
122
|
+
- lib/mlb.rb
|
189
123
|
- spec/helper.rb
|
190
124
|
- spec/mlb_spec.rb
|
191
125
|
homepage: https://github.com/sferik/mlb
|
192
|
-
licenses:
|
193
|
-
|
126
|
+
licenses:
|
127
|
+
- MIT
|
194
128
|
post_install_message:
|
195
129
|
rdoc_options: []
|
196
|
-
|
197
|
-
require_paths:
|
130
|
+
require_paths:
|
198
131
|
- lib
|
199
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 1.9.2
|
200
137
|
none: false
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
segments:
|
206
|
-
- 0
|
207
|
-
version: "0"
|
208
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
|
-
requirements:
|
211
|
-
- - ">="
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
hash: 23
|
214
|
-
segments:
|
215
|
-
- 1
|
216
|
-
- 3
|
217
|
-
- 6
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
218
142
|
version: 1.3.6
|
143
|
+
none: false
|
219
144
|
requirements: []
|
220
|
-
|
221
145
|
rubyforge_project:
|
222
|
-
rubygems_version: 1.8.
|
146
|
+
rubygems_version: 1.8.25
|
223
147
|
signing_key:
|
224
148
|
specification_version: 3
|
225
|
-
summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players,
|
226
|
-
|
149
|
+
summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players,
|
150
|
+
managers, teams, divisions, and leagues.
|
151
|
+
test_files:
|
227
152
|
- spec/helper.rb
|
228
153
|
- spec/mlb_spec.rb
|
229
154
|
has_rdoc:
|