mlb 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ require 'autotest/bundler'
@@ -1,6 +1,6 @@
1
1
  rvm:
2
2
  - 1.8.7
3
+ - 1.9.1
3
4
  - 1.9.2
4
5
  - ree
5
- - rbx
6
- - jruby
6
+ - ruby-head
data/.yardopts CHANGED
@@ -1,3 +1,3 @@
1
1
  --markup markdown
2
2
  -
3
- LICENSE.mkd
3
+ LICENSE.md
File without changes
@@ -4,11 +4,15 @@ MLB.rb is a Ruby library for retrieving current Major League Baseball players, m
4
4
 
5
5
  Installation
6
6
  ------------
7
- $ [sudo] gem install mlb
7
+ gem install mlb
8
8
 
9
9
  Documentation
10
10
  -------------
11
- <http://rdoc.info/gems/mlb>
11
+ [http://rdoc.info/gems/mlb](http://rdoc.info/gems/mlb)
12
+
13
+ Continuous Integration
14
+ ----------------------
15
+ [![Build Status](https://secure.travis-ci.org/sferik/mlb.png)](http://travis-ci.org/sferik/mlb)
12
16
 
13
17
  Usage Examples
14
18
  -----
@@ -41,7 +45,7 @@ Here are some ways *you* can contribute:
41
45
  * by writing specifications
42
46
  * by writing code (**no patch is too small**: fix typos, add comments, cleanup inconsistent whitespace)
43
47
  * by refactoring code
44
- * by closing [issues](http://github.com/sferik/mlb/issues)
48
+ * by closing [issues](https://github.com/sferik/mlb/issues)
45
49
  * by reviewing patches
46
50
  * financially
47
51
 
@@ -49,10 +53,10 @@ All contributors will be added to the credits and will receive the respect and g
49
53
 
50
54
  Submitting an Issue
51
55
  -------------------
52
- We use the [GitHub issue tracker](http://github.com/sferik/mlb/issues) to track bugs and
56
+ We use the [GitHub issue tracker](https://github.com/sferik/mlb/issues) to track bugs and
53
57
  features. Before submitting a bug report or feature request, check to make sure it hasn't already
54
58
  been submitted. You can indicate support for an existing issuse by voting it up. When submitting a
55
- bug report, please include a [Gist](http://gist.github.com/) that includes a stack trace and any
59
+ bug report, please include a [Gist](https://gist.github.com/) that includes a stack trace and any
56
60
  details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
57
61
  operating system. Ideally, a bug report should include a pull request with failing specs.
58
62
 
@@ -68,6 +72,30 @@ Submitting a Pull Request
68
72
  8. Commit and push your changes.
69
73
  9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
70
74
 
75
+ Supported Rubies
76
+ ----------------
77
+ This library aims to support and is [tested
78
+ against](http://travis-ci.org/sferik/mlb) the following Ruby implementations:
79
+
80
+ * Ruby 1.8.7
81
+ * Ruby 1.9.1
82
+ * Ruby 1.9.2
83
+ * Ruby Enterprise Edition 1.8.7
84
+
85
+ If something doesn't work on one of these interpreters, it should be considered
86
+ a bug.
87
+
88
+ This library may inadvertently work (or seem to work) on other Ruby
89
+ implementations, however support will only be provided for the versions listed
90
+ above.
91
+
92
+ If you would like this library to support another Ruby version, you may
93
+ volunteer to be a maintainer. Being a maintainer entails making sure all tests
94
+ run and pass on that implementation. When something breaks on your
95
+ implementation, you will be personally responsible for providing patches in a
96
+ timely fashion. If critical issues for a particular implementation exist at the
97
+ time of a major release, support for that Ruby version may be dropped.
98
+
71
99
  Credits
72
100
  -------
73
101
  Many thanks to:
@@ -82,3 +110,8 @@ Many thanks to:
82
110
  * [SQLite](http://www.sqlite.org/)
83
111
  * [WebMock](https://github.com/bblimke/webmock/)
84
112
  * [YARD](http://yardoc.org/)
113
+
114
+ Copyright
115
+ ---------
116
+ Copyright (c) 2010 Erik Michaels-Ober.
117
+ See [LICENSE](https://github.com/sferik/mlb/blob/master/LICENSE.md) for details.
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env rake
2
+
1
3
  require 'bundler'
2
4
  Bundler::GemHelper.install_tasks
3
5
 
@@ -10,7 +12,7 @@ task :default => :spec
10
12
  namespace :doc do
11
13
  require 'yard'
12
14
  YARD::Rake::YardocTask.new do |task|
13
- task.files = ['LICENSE.mkd', 'lib/**/*.rb']
15
+ task.files = ['LICENSE.md', 'lib/**/*.rb']
14
16
  task.options = [
15
17
  '--output-dir', 'doc/yard',
16
18
  '--markup', 'markdown',
@@ -2453,7 +2453,7 @@
2453
2453
  ],
2454
2454
  "/sports/sports_team/arena_stadium": [
2455
2455
  {
2456
- "name": "Dolphin Stadium"
2456
+ "name": "Sun Life Stadium"
2457
2457
  }
2458
2458
  ],
2459
2459
  "/sports/sports_team/founded": [
@@ -7158,5 +7158,5 @@
7158
7158
  }
7159
7159
  ],
7160
7160
  "status": "200 OK",
7161
- "transaction_id": "cache;cache02.p01.sjc1:8101;2011-04-06T02:07:16Z;0007"
7161
+ "transaction_id": "cache;cache02.p01.sjc1:8101;2011-05-03T00:10:07Z;0043"
7162
7162
  }
@@ -1,3 +1,3 @@
1
1
  module MLB
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
@@ -1,30 +1,27 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  require File.expand_path('../lib/mlb/version', __FILE__)
3
3
 
4
- Gem::Specification.new do |s|
5
- s.add_development_dependency('bundler', '~> 1.0')
6
- s.add_development_dependency('json', '~> 1.5')
7
- s.add_development_dependency('maruku', '~> 0.6')
8
- s.add_development_dependency('rake', '~> 0.8')
9
- s.add_development_dependency('rspec', '~> 2.5')
10
- s.add_development_dependency('simplecov', '~> 0.4')
11
- s.add_development_dependency('webmock', '~> 1.6')
12
- s.add_development_dependency('yard', '~> 0.6')
13
- s.add_development_dependency('ZenTest', '~> 4.5')
14
- s.add_runtime_dependency('faraday', '~> 0.6.0')
15
- s.add_runtime_dependency('faraday_middleware', '~> 0.6.0')
16
- s.add_runtime_dependency('multi_json', '~> 0.0.5')
17
- s.authors = ["Erik Michaels-Ober"]
18
- s.description = %q{MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.}
19
- s.email = ['sferik@gmail.com']
20
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
- s.files = `git ls-files`.split("\n")
22
- s.homepage = 'http://rubygems.org/gems/mlb'
23
- s.name = 'mlb'
24
- s.rdoc_options = ['--charset=UTF-8']
25
- s.require_paths = ['lib']
26
- s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if s.respond_to? :required_rubygems_version=
27
- s.summary = %q{MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.}
28
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
- s.version = MLB::VERSION
4
+ Gem::Specification.new do |gem|
5
+ gem.add_development_dependency 'maruku', '~> 0.6'
6
+ gem.add_development_dependency 'rake', '~> 0.9'
7
+ gem.add_development_dependency 'rspec', '~> 2.6'
8
+ gem.add_development_dependency 'simplecov', '~> 0.4'
9
+ gem.add_development_dependency 'webmock', '~> 1.6'
10
+ gem.add_development_dependency 'yard', '~> 0.7'
11
+ gem.add_development_dependency 'ZenTest', '~> 4.5'
12
+ gem.add_runtime_dependency 'faraday', '~> 0.7.4'
13
+ gem.add_runtime_dependency 'faraday_middleware', '~> 0.7.0'
14
+ gem.add_runtime_dependency 'multi_json', '~> 1.0.0'
15
+ gem.author = "Erik Michaels-Ober"
16
+ gem.description = %q{MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.}
17
+ gem.email = 'sferik@gmail.com'
18
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ gem.files = `git ls-files`.split("\n")
20
+ gem.homepage = 'https://github.com/sferik/mlb'
21
+ gem.name = 'mlb'
22
+ gem.require_paths = ['lib']
23
+ gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
24
+ gem.summary = gem.description
25
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
26
+ gem.version = MLB::VERSION
30
27
  end
@@ -1,13 +1,10 @@
1
+ $:.unshift File.expand_path('..', __FILE__)
2
+ $:.unshift File.expand_path('../../lib', __FILE__)
1
3
  require 'simplecov'
2
- SimpleCov.start do
3
- add_group 'Libraries', 'lib'
4
- end
4
+ SimpleCov.start
5
5
  require 'mlb'
6
6
  require 'rspec'
7
7
  require 'webmock/rspec'
8
- RSpec.configure do |config|
9
- config.include WebMock::API
10
- end
11
8
 
12
9
  def fixture_path
13
10
  File.expand_path("../../cache", __FILE__)
metadata CHANGED
@@ -1,167 +1,143 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mlb
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.5
4
5
  prerelease:
5
- version: 0.5.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Erik Michaels-Ober
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-04-06 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: bundler
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "1.0"
24
- type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: json
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- version: "1.5"
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-30 00:00:00.000000000 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
38
16
  name: maruku
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
17
+ requirement: &70294870896860 !ruby/object:Gem::Requirement
41
18
  none: false
42
- requirements:
19
+ requirements:
43
20
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: "0.6"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.6'
46
23
  type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: rake
50
24
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
25
+ version_requirements: *70294870896860
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ requirement: &70294870896320 !ruby/object:Gem::Requirement
52
29
  none: false
53
- requirements:
30
+ requirements:
54
31
  - - ~>
55
- - !ruby/object:Gem::Version
56
- version: "0.8"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
57
34
  type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: rspec
61
35
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
36
+ version_requirements: *70294870896320
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ requirement: &70294870895860 !ruby/object:Gem::Requirement
63
40
  none: false
64
- requirements:
41
+ requirements:
65
42
  - - ~>
66
- - !ruby/object:Gem::Version
67
- version: "2.5"
43
+ - !ruby/object:Gem::Version
44
+ version: '2.6'
68
45
  type: :development
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: simplecov
72
46
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
47
+ version_requirements: *70294870895860
48
+ - !ruby/object:Gem::Dependency
49
+ name: simplecov
50
+ requirement: &70294870895380 !ruby/object:Gem::Requirement
74
51
  none: false
75
- requirements:
52
+ requirements:
76
53
  - - ~>
77
- - !ruby/object:Gem::Version
78
- version: "0.4"
54
+ - !ruby/object:Gem::Version
55
+ version: '0.4'
79
56
  type: :development
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: webmock
83
57
  prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
58
+ version_requirements: *70294870895380
59
+ - !ruby/object:Gem::Dependency
60
+ name: webmock
61
+ requirement: &70294870894920 !ruby/object:Gem::Requirement
85
62
  none: false
86
- requirements:
63
+ requirements:
87
64
  - - ~>
88
- - !ruby/object:Gem::Version
89
- version: "1.6"
65
+ - !ruby/object:Gem::Version
66
+ version: '1.6'
90
67
  type: :development
91
- version_requirements: *id007
92
- - !ruby/object:Gem::Dependency
93
- name: yard
94
68
  prerelease: false
95
- requirement: &id008 !ruby/object:Gem::Requirement
69
+ version_requirements: *70294870894920
70
+ - !ruby/object:Gem::Dependency
71
+ name: yard
72
+ requirement: &70294870894400 !ruby/object:Gem::Requirement
96
73
  none: false
97
- requirements:
74
+ requirements:
98
75
  - - ~>
99
- - !ruby/object:Gem::Version
100
- version: "0.6"
76
+ - !ruby/object:Gem::Version
77
+ version: '0.7'
101
78
  type: :development
102
- version_requirements: *id008
103
- - !ruby/object:Gem::Dependency
104
- name: ZenTest
105
79
  prerelease: false
106
- requirement: &id009 !ruby/object:Gem::Requirement
80
+ version_requirements: *70294870894400
81
+ - !ruby/object:Gem::Dependency
82
+ name: ZenTest
83
+ requirement: &70294870893900 !ruby/object:Gem::Requirement
107
84
  none: false
108
- requirements:
85
+ requirements:
109
86
  - - ~>
110
- - !ruby/object:Gem::Version
111
- version: "4.5"
87
+ - !ruby/object:Gem::Version
88
+ version: '4.5'
112
89
  type: :development
113
- version_requirements: *id009
114
- - !ruby/object:Gem::Dependency
115
- name: faraday
116
90
  prerelease: false
117
- requirement: &id010 !ruby/object:Gem::Requirement
91
+ version_requirements: *70294870893900
92
+ - !ruby/object:Gem::Dependency
93
+ name: faraday
94
+ requirement: &70294870893440 !ruby/object:Gem::Requirement
118
95
  none: false
119
- requirements:
96
+ requirements:
120
97
  - - ~>
121
- - !ruby/object:Gem::Version
122
- version: 0.6.0
98
+ - !ruby/object:Gem::Version
99
+ version: 0.7.4
123
100
  type: :runtime
124
- version_requirements: *id010
125
- - !ruby/object:Gem::Dependency
126
- name: faraday_middleware
127
101
  prerelease: false
128
- requirement: &id011 !ruby/object:Gem::Requirement
102
+ version_requirements: *70294870893440
103
+ - !ruby/object:Gem::Dependency
104
+ name: faraday_middleware
105
+ requirement: &70294870892920 !ruby/object:Gem::Requirement
129
106
  none: false
130
- requirements:
107
+ requirements:
131
108
  - - ~>
132
- - !ruby/object:Gem::Version
133
- version: 0.6.0
109
+ - !ruby/object:Gem::Version
110
+ version: 0.7.0
134
111
  type: :runtime
135
- version_requirements: *id011
136
- - !ruby/object:Gem::Dependency
137
- name: multi_json
138
112
  prerelease: false
139
- requirement: &id012 !ruby/object:Gem::Requirement
113
+ version_requirements: *70294870892920
114
+ - !ruby/object:Gem::Dependency
115
+ name: multi_json
116
+ requirement: &70294870892420 !ruby/object:Gem::Requirement
140
117
  none: false
141
- requirements:
118
+ requirements:
142
119
  - - ~>
143
- - !ruby/object:Gem::Version
144
- version: 0.0.5
120
+ - !ruby/object:Gem::Version
121
+ version: 1.0.0
145
122
  type: :runtime
146
- version_requirements: *id012
147
- description: MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
148
- email:
149
- - sferik@gmail.com
123
+ prerelease: false
124
+ version_requirements: *70294870892420
125
+ description: MLB.rb is a Ruby library for retrieving current Major League Baseball
126
+ players, managers, teams, divisions, and leagues.
127
+ email: sferik@gmail.com
150
128
  executables: []
151
-
152
129
  extensions: []
153
-
154
130
  extra_rdoc_files: []
155
-
156
- files:
131
+ files:
132
+ - .autotest
157
133
  - .gemtest
158
134
  - .gitignore
159
135
  - .rspec
160
136
  - .travis.yml
161
137
  - .yardopts
162
138
  - Gemfile
163
- - LICENSE.mkd
164
- - README.mkd
139
+ - LICENSE.md
140
+ - README.md
165
141
  - Rakefile
166
142
  - cache/teams.json
167
143
  - lib/mlb.rb
@@ -172,33 +148,32 @@ files:
172
148
  - mlb.gemspec
173
149
  - spec/helper.rb
174
150
  - spec/mlb_spec.rb
175
- homepage: http://rubygems.org/gems/mlb
151
+ has_rdoc: true
152
+ homepage: https://github.com/sferik/mlb
176
153
  licenses: []
177
-
178
154
  post_install_message:
179
- rdoc_options:
180
- - --charset=UTF-8
181
- require_paths:
155
+ rdoc_options: []
156
+ require_paths:
182
157
  - lib
183
- required_ruby_version: !ruby/object:Gem::Requirement
158
+ required_ruby_version: !ruby/object:Gem::Requirement
184
159
  none: false
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- version: "0"
189
- required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ! '>='
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ required_rubygems_version: !ruby/object:Gem::Requirement
190
165
  none: false
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
166
+ requirements:
167
+ - - ! '>='
168
+ - !ruby/object:Gem::Version
194
169
  version: 1.3.6
195
170
  requirements: []
196
-
197
171
  rubyforge_project:
198
- rubygems_version: 1.7.2
172
+ rubygems_version: 1.6.2
199
173
  signing_key:
200
174
  specification_version: 3
201
- summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
202
- test_files:
175
+ summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players,
176
+ managers, teams, divisions, and leagues.
177
+ test_files:
203
178
  - spec/helper.rb
204
179
  - spec/mlb_spec.rb