mlb 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -2
- data/.travis.yml +0 -1
- data/Gemfile +3 -1
- data/README.md +78 -50
- data/cache/teams.json +9 -252
- data/lib/mlb/request.rb +2 -1
- data/lib/mlb/team.rb +4 -3
- data/lib/mlb/version.rb +1 -1
- data/mlb.gemspec +9 -9
- data/spec/helper.rb +0 -2
- metadata +38 -37
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
# MLB.rb
|
1
|
+
# MLB.rb [![Build Status](https://secure.travis-ci.org/sferik/mlb.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/sferik/mlb.png?travis)][gemnasium]
|
2
2
|
MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.
|
3
3
|
|
4
|
-
|
4
|
+
[travis]: http://travis-ci.org/sferik/mlb
|
5
|
+
[gemnasium]: https://gemnasium.com/sferik/mlb
|
6
|
+
|
7
|
+
## <a name="installation"></a>Installation
|
5
8
|
gem install mlb
|
6
9
|
|
7
|
-
## <a name="documentation">Documentation
|
8
|
-
[http://rdoc.info/gems/mlb]
|
10
|
+
## <a name="documentation"></a>Documentation
|
11
|
+
[http://rdoc.info/gems/mlb][documentation]
|
9
12
|
|
10
|
-
|
11
|
-
[![Build Status](https://secure.travis-ci.org/sferik/mlb.png)](http://travis-ci.org/sferik/mlb)
|
13
|
+
[documentation]: http://rdoc.info/gems/mlb
|
12
14
|
|
13
|
-
## <a name="examples">Usage Examples
|
15
|
+
## <a name="examples"></a>Usage Examples
|
14
16
|
$ irb
|
15
17
|
>> require 'mlb'
|
16
18
|
>> MLB::Team.all.first.name # => "Arizona Diamondbacks"
|
@@ -27,8 +29,11 @@ MLB.rb is a Ruby library for retrieving current Major League Baseball players, m
|
|
27
29
|
>> MLB::Team.all.first.players.first.number # => 28
|
28
30
|
>> MLB::Team.all.first.players.first.position # => "Right fielder"
|
29
31
|
|
30
|
-
## <a name="contributing">Contributing
|
31
|
-
In the spirit of [free software]
|
32
|
+
## <a name="contributing"></a>Contributing
|
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
|
32
37
|
|
33
38
|
Here are some ways *you* can contribute:
|
34
39
|
|
@@ -37,45 +42,54 @@ Here are some ways *you* can contribute:
|
|
37
42
|
* by suggesting new features
|
38
43
|
* by writing or editing documentation
|
39
44
|
* by writing specifications
|
40
|
-
* by writing code (**no patch is too small**: fix typos, add comments, cleanup
|
45
|
+
* by writing code (**no patch is too small**: fix typos, add comments, cleanup
|
46
|
+
inconsistent whitespace)
|
41
47
|
* by refactoring code
|
42
|
-
* by closing [issues]
|
48
|
+
* by closing [issues][]
|
43
49
|
* by reviewing patches
|
44
|
-
* financially
|
45
50
|
|
46
|
-
|
51
|
+
[issues]: https://github.com/sferik/mlb/issues
|
47
52
|
|
48
|
-
## <a name="issues">Submitting an Issue
|
49
|
-
We use the [GitHub issue tracker]
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
request with failing specs.
|
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.
|
57
61
|
|
58
|
-
|
62
|
+
[gist]: https://gist.github.com/
|
63
|
+
|
64
|
+
## <a name="pulls"></a>Submitting a Pull Request
|
59
65
|
1. Fork the project.
|
60
66
|
2. Create a topic branch.
|
61
67
|
3. Implement your feature or bug fix.
|
62
68
|
4. Add documentation for your feature or bug fix.
|
63
|
-
5. Run
|
69
|
+
5. Run `bundle exec rake doc:yard`. If your changes are not 100% documented, go
|
70
|
+
back to step 4.
|
64
71
|
6. Add specs for your feature or bug fix.
|
65
|
-
7. Run
|
72
|
+
7. Run `bundle exec rake spec`. If your changes are not 100% covered, go back
|
73
|
+
to step 6.
|
66
74
|
8. Commit and push your changes.
|
67
|
-
9. Submit a pull request. Please do not include changes to the gemspec,
|
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.)
|
68
78
|
|
69
|
-
## <a name="
|
70
|
-
This library aims to support and is [tested
|
71
|
-
|
79
|
+
## <a name="versions"></a>Supported Ruby Versions
|
80
|
+
This library aims to support and is [tested against][travis] the following Ruby
|
81
|
+
implementations:
|
72
82
|
|
73
83
|
* Ruby 1.8.7
|
74
|
-
* Ruby 1.9.1
|
75
84
|
* Ruby 1.9.2
|
76
|
-
*
|
77
|
-
* [
|
78
|
-
* [
|
85
|
+
* Ruby 1.9.3
|
86
|
+
* [JRuby][]
|
87
|
+
* [Rubinius][]
|
88
|
+
* [Ruby Enterprise Edition][ree]
|
89
|
+
|
90
|
+
[jruby]: http://www.jruby.org/
|
91
|
+
[rubinius]: http://rubini.us/
|
92
|
+
[ree]: http://www.rubyenterpriseedition.com/
|
79
93
|
|
80
94
|
If something doesn't work on one of these interpreters, it should be considered
|
81
95
|
a bug.
|
@@ -91,20 +105,34 @@ implementation, you will be personally responsible for providing patches in a
|
|
91
105
|
timely fashion. If critical issues for a particular implementation exist at the
|
92
106
|
time of a major release, support for that Ruby version may be dropped.
|
93
107
|
|
94
|
-
## <a name="
|
95
|
-
|
96
|
-
|
97
|
-
* [Bundler]
|
98
|
-
* [Freebase]
|
99
|
-
* [Faraday]
|
100
|
-
* [Markdown]
|
101
|
-
* [MultiJSON]
|
102
|
-
* [RSpec]
|
103
|
-
* [SimpleCov]
|
104
|
-
* [SQLite]
|
105
|
-
* [
|
106
|
-
* [
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
## <a name="colophon"></a>Colophon
|
109
|
+
MLB was built with the following tools:
|
110
|
+
|
111
|
+
* [Bundler][]
|
112
|
+
* [Freebase][]
|
113
|
+
* [Faraday][]
|
114
|
+
* [Markdown][]
|
115
|
+
* [MultiJSON][]
|
116
|
+
* [RSpec][]
|
117
|
+
* [SimpleCov][]
|
118
|
+
* [SQLite][]
|
119
|
+
* [vim][]
|
120
|
+
* [WebMock][]
|
121
|
+
* [YARD][]
|
122
|
+
|
123
|
+
[bundler]: http://gembundler.com/
|
124
|
+
[freebase]: http://www.freebase.com/
|
125
|
+
[faraday]: https://github.com/technoweenie/faraday
|
126
|
+
[markdown]: http://daringfireball.net/projects/markdown/
|
127
|
+
[multijson]: https://github.com/intridea/multi_json
|
128
|
+
[rspec]: http://relishapp.com/rspec/
|
129
|
+
[simplecov]: https://github.com/colszowka/simplecov
|
130
|
+
[sqlite]: http://www.sqlite.org/
|
131
|
+
[vim]: http://www.vim.org/
|
132
|
+
[webmock]: https://github.com/bblimke/webmock
|
133
|
+
[yard]: http://yardoc.org/
|
134
|
+
|
135
|
+
## <a name="copyright"></a>Copyright
|
136
|
+
Copyright (c) 2010 Erik Michaels-Ober. See [LICENSE][] for details.
|
137
|
+
|
138
|
+
[license]: https://github.com/sferik/mlb/blob/master/LICENSE.md
|
data/cache/teams.json
CHANGED
@@ -249,7 +249,7 @@
|
|
249
249
|
],
|
250
250
|
"/sports/sports_team/team_mascot": [],
|
251
251
|
"current_manager": {
|
252
|
-
"name": "
|
252
|
+
"name": "Fredi Gonz\u00e1lez"
|
253
253
|
},
|
254
254
|
"current_roster": [
|
255
255
|
{
|
@@ -1184,249 +1184,6 @@
|
|
1184
1184
|
],
|
1185
1185
|
"type": "/baseball/baseball_team"
|
1186
1186
|
},
|
1187
|
-
{
|
1188
|
-
"/common/topic/image": [
|
1189
|
-
{
|
1190
|
-
"id": "/m/03t4s0m",
|
1191
|
-
"timestamp": "2008-03-13T04:36:58.0013Z"
|
1192
|
-
}
|
1193
|
-
],
|
1194
|
-
"/sports/sports_team/arena_stadium": [
|
1195
|
-
{
|
1196
|
-
"name": "U.S. Cellular Field"
|
1197
|
-
}
|
1198
|
-
],
|
1199
|
-
"/sports/sports_team/founded": [
|
1200
|
-
{
|
1201
|
-
"value": "1900"
|
1202
|
-
}
|
1203
|
-
],
|
1204
|
-
"/sports/sports_team/team_mascot": [
|
1205
|
-
{
|
1206
|
-
"id": "/m/0b7nrv",
|
1207
|
-
"name": "Southpaw",
|
1208
|
-
"type": [
|
1209
|
-
"/common/topic",
|
1210
|
-
"/sports/mascot"
|
1211
|
-
]
|
1212
|
-
}
|
1213
|
-
],
|
1214
|
-
"current_manager": {
|
1215
|
-
"name": "Ozzie Guill\u00e9n"
|
1216
|
-
},
|
1217
|
-
"current_roster": [
|
1218
|
-
{
|
1219
|
-
"number": 12,
|
1220
|
-
"player": "A. J. Pierzynski",
|
1221
|
-
"position": "Catcher"
|
1222
|
-
},
|
1223
|
-
{
|
1224
|
-
"number": 46,
|
1225
|
-
"player": "Adam Russell",
|
1226
|
-
"position": "Relief pitcher"
|
1227
|
-
},
|
1228
|
-
{
|
1229
|
-
"number": 10,
|
1230
|
-
"player": "Alexei Ram\u00edrez",
|
1231
|
-
"position": "Second baseman"
|
1232
|
-
},
|
1233
|
-
{
|
1234
|
-
"number": 40,
|
1235
|
-
"player": "Bartolo Col\u00f3n",
|
1236
|
-
"position": "Starting pitcher"
|
1237
|
-
},
|
1238
|
-
{
|
1239
|
-
"number": 45,
|
1240
|
-
"player": "Bobby Jenks",
|
1241
|
-
"position": "Relief pitcher"
|
1242
|
-
},
|
1243
|
-
{
|
1244
|
-
"number": 60,
|
1245
|
-
"player": "Brandon Allen",
|
1246
|
-
"position": "First baseman"
|
1247
|
-
},
|
1248
|
-
{
|
1249
|
-
"number": 18,
|
1250
|
-
"player": "Brent Lillibridge",
|
1251
|
-
"position": "Shortstop"
|
1252
|
-
},
|
1253
|
-
{
|
1254
|
-
"number": 32,
|
1255
|
-
"player": "Brian Anderson",
|
1256
|
-
"position": "Center fielder"
|
1257
|
-
},
|
1258
|
-
{
|
1259
|
-
"number": 20,
|
1260
|
-
"player": "Carlos Quentin",
|
1261
|
-
"position": "Left fielder"
|
1262
|
-
},
|
1263
|
-
{
|
1264
|
-
"number": 17,
|
1265
|
-
"player": "Chris Getz",
|
1266
|
-
"position": "Second baseman"
|
1267
|
-
},
|
1268
|
-
{
|
1269
|
-
"number": 54,
|
1270
|
-
"player": "Clayton Richard",
|
1271
|
-
"position": "Starting pitcher"
|
1272
|
-
},
|
1273
|
-
{
|
1274
|
-
"number": 63,
|
1275
|
-
"player": "Clevelan Santeliz",
|
1276
|
-
"position": "Pitcher"
|
1277
|
-
},
|
1278
|
-
{
|
1279
|
-
"number": 38,
|
1280
|
-
"player": "Cole Armstrong",
|
1281
|
-
"position": "Catcher"
|
1282
|
-
},
|
1283
|
-
{
|
1284
|
-
"number": 53,
|
1285
|
-
"player": "D. J. Carrasco",
|
1286
|
-
"position": "Relief pitcher"
|
1287
|
-
},
|
1288
|
-
{
|
1289
|
-
"number": 24,
|
1290
|
-
"player": "Day\u00e1n Viciedo",
|
1291
|
-
"position": "Third baseman"
|
1292
|
-
},
|
1293
|
-
{
|
1294
|
-
"number": 31,
|
1295
|
-
"player": "Dewayne Wise",
|
1296
|
-
"position": "Center fielder"
|
1297
|
-
},
|
1298
|
-
{
|
1299
|
-
"number": 43,
|
1300
|
-
"player": "Ehren Wassermann",
|
1301
|
-
"position": "Relief pitcher"
|
1302
|
-
},
|
1303
|
-
{
|
1304
|
-
"number": 34,
|
1305
|
-
"player": "Gavin Floyd",
|
1306
|
-
"position": "Starting pitcher"
|
1307
|
-
},
|
1308
|
-
{
|
1309
|
-
"number": 62,
|
1310
|
-
"player": "Jack Egbert",
|
1311
|
-
"position": "Pitcher"
|
1312
|
-
},
|
1313
|
-
{
|
1314
|
-
"number": 5,
|
1315
|
-
"player": "Jayson Nix",
|
1316
|
-
"position": "Second baseman"
|
1317
|
-
},
|
1318
|
-
{
|
1319
|
-
"number": 48,
|
1320
|
-
"player": "Jeffrey Marquez",
|
1321
|
-
"position": "Pitcher"
|
1322
|
-
},
|
1323
|
-
{
|
1324
|
-
"number": 23,
|
1325
|
-
"player": "Jermaine Dye",
|
1326
|
-
"position": "Right fielder"
|
1327
|
-
},
|
1328
|
-
{
|
1329
|
-
"number": 7,
|
1330
|
-
"player": "Jerry Owens",
|
1331
|
-
"position": "Left fielder"
|
1332
|
-
},
|
1333
|
-
{
|
1334
|
-
"number": 65,
|
1335
|
-
"player": "Jhonny N\u00fa\u00f1ez",
|
1336
|
-
"position": "Pitcher"
|
1337
|
-
},
|
1338
|
-
{
|
1339
|
-
"number": 25,
|
1340
|
-
"player": "Jim Thome",
|
1341
|
-
"position": "Designated hitter"
|
1342
|
-
},
|
1343
|
-
{
|
1344
|
-
"number": 50,
|
1345
|
-
"player": "John Danks",
|
1346
|
-
"position": "Starting pitcher"
|
1347
|
-
},
|
1348
|
-
{
|
1349
|
-
"number": 61,
|
1350
|
-
"player": "Jon Link",
|
1351
|
-
"position": "Relief pitcher"
|
1352
|
-
},
|
1353
|
-
{
|
1354
|
-
"number": 22,
|
1355
|
-
"player": "Josh Fields",
|
1356
|
-
"position": "Third baseman"
|
1357
|
-
},
|
1358
|
-
{
|
1359
|
-
"number": 52,
|
1360
|
-
"player": "Jos\u00e9 Contreras",
|
1361
|
-
"position": "Starting pitcher"
|
1362
|
-
},
|
1363
|
-
{
|
1364
|
-
"number": 57,
|
1365
|
-
"player": "Kelvin Jimenez",
|
1366
|
-
"position": "Relief pitcher"
|
1367
|
-
},
|
1368
|
-
{
|
1369
|
-
"number": 41,
|
1370
|
-
"player": "Lance Broadway",
|
1371
|
-
"position": "Starting pitcher"
|
1372
|
-
},
|
1373
|
-
{
|
1374
|
-
"number": 64,
|
1375
|
-
"player": "Lucas Harrell",
|
1376
|
-
"position": "Pitcher"
|
1377
|
-
},
|
1378
|
-
{
|
1379
|
-
"number": 56,
|
1380
|
-
"player": "Mark Buehrle",
|
1381
|
-
"position": "Starting pitcher"
|
1382
|
-
},
|
1383
|
-
{
|
1384
|
-
"number": 37,
|
1385
|
-
"player": "Matt Thornton",
|
1386
|
-
"position": "Relief pitcher"
|
1387
|
-
},
|
1388
|
-
{
|
1389
|
-
"number": 26,
|
1390
|
-
"player": "Octavio Dotel",
|
1391
|
-
"position": "Relief pitcher"
|
1392
|
-
},
|
1393
|
-
{
|
1394
|
-
"number": 14,
|
1395
|
-
"player": "Paul Konerko",
|
1396
|
-
"position": "First baseman"
|
1397
|
-
},
|
1398
|
-
{
|
1399
|
-
"number": 71,
|
1400
|
-
"player": "Scott Linebrink",
|
1401
|
-
"position": "Relief pitcher"
|
1402
|
-
},
|
1403
|
-
{
|
1404
|
-
"number": null,
|
1405
|
-
"player": "Scott Podsednik",
|
1406
|
-
"position": "Outfielder"
|
1407
|
-
},
|
1408
|
-
{
|
1409
|
-
"number": 15,
|
1410
|
-
"player": "Wilson Betemit",
|
1411
|
-
"position": "First baseman"
|
1412
|
-
}
|
1413
|
-
],
|
1414
|
-
"division": {
|
1415
|
-
"name": "American League Central"
|
1416
|
-
},
|
1417
|
-
"league": {
|
1418
|
-
"name": "American League"
|
1419
|
-
},
|
1420
|
-
"name": "Chicago White Sox",
|
1421
|
-
"team_stats": [
|
1422
|
-
{
|
1423
|
-
"losses": 74,
|
1424
|
-
"season": "2008 Major League Baseball season",
|
1425
|
-
"wins": 89
|
1426
|
-
}
|
1427
|
-
],
|
1428
|
-
"type": "/baseball/baseball_team"
|
1429
|
-
},
|
1430
1187
|
{
|
1431
1188
|
"/common/topic/image": [
|
1432
1189
|
{
|
@@ -2204,7 +1961,7 @@
|
|
2204
1961
|
}
|
2205
1962
|
],
|
2206
1963
|
"current_manager": {
|
2207
|
-
"name": "
|
1964
|
+
"name": "Ozzie Guill\u00e9n"
|
2208
1965
|
},
|
2209
1966
|
"current_roster": [
|
2210
1967
|
{
|
@@ -5185,6 +4942,11 @@
|
|
5185
4942
|
"player": "Cla Meredith",
|
5186
4943
|
"position": "Relief pitcher"
|
5187
4944
|
},
|
4945
|
+
{
|
4946
|
+
"number": 33,
|
4947
|
+
"player": "Clayton Richard",
|
4948
|
+
"position": "Starting pitcher"
|
4949
|
+
},
|
5188
4950
|
{
|
5189
4951
|
"number": 16,
|
5190
4952
|
"player": "Cliff Floyd",
|
@@ -5921,11 +5683,6 @@
|
|
5921
5683
|
"player": "Joel Pi\u00f1eiro",
|
5922
5684
|
"position": "Starting pitcher"
|
5923
5685
|
},
|
5924
|
-
{
|
5925
|
-
"number": 30,
|
5926
|
-
"player": "John Smoltz",
|
5927
|
-
"position": "Pitcher"
|
5928
|
-
},
|
5929
5686
|
{
|
5930
5687
|
"number": 52,
|
5931
5688
|
"player": "Josh Kinney",
|
@@ -6651,7 +6408,7 @@
|
|
6651
6408
|
}
|
6652
6409
|
],
|
6653
6410
|
"current_manager": {
|
6654
|
-
"name": "
|
6411
|
+
"name": "Davey Johnson"
|
6655
6412
|
},
|
6656
6413
|
"current_roster": [
|
6657
6414
|
{
|
@@ -6858,5 +6615,5 @@
|
|
6858
6615
|
}
|
6859
6616
|
],
|
6860
6617
|
"status": "200 OK",
|
6861
|
-
"transaction_id": "cache;cache02.p01.sjc1:8101;
|
6618
|
+
"transaction_id": "cache;cache02.p01.sjc1:8101;2012-02-18T19:10:31Z;0048"
|
6862
6619
|
}
|
data/lib/mlb/request.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
require 'faraday_middleware'
|
3
|
+
require 'json'
|
3
4
|
|
4
5
|
module MLB
|
5
6
|
# @private
|
@@ -16,7 +17,7 @@ module MLB
|
|
16
17
|
|
17
18
|
def self.connection(raw=false)
|
18
19
|
Faraday.new(:url => 'http://api.freebase.com') do |connection|
|
19
|
-
connection.use
|
20
|
+
connection.use FaradayMiddleware::ParseJson unless raw
|
20
21
|
connection.adapter Faraday.default_adapter
|
21
22
|
end
|
22
23
|
end
|
data/lib/mlb/team.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
require '
|
1
|
+
require 'faraday'
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
module MLB
|
4
5
|
class Team
|
@@ -26,7 +27,7 @@ module MLB
|
|
26
27
|
# connection error, in which case read from a fixture file
|
27
28
|
@all ||= begin
|
28
29
|
results_to_team(results_from_freebase)
|
29
|
-
rescue SocketError, Errno::ECONNREFUSED, Timeout::Error
|
30
|
+
rescue SocketError, Errno::ECONNREFUSED, Timeout::Error, Faraday::Error::TimeoutError
|
30
31
|
results_to_team(results_from_cache)
|
31
32
|
end
|
32
33
|
end
|
@@ -49,7 +50,7 @@ module MLB
|
|
49
50
|
end
|
50
51
|
|
51
52
|
def self.results_from_cache
|
52
|
-
|
53
|
+
JSON.parse(file_from_cache("teams.json").read)
|
53
54
|
end
|
54
55
|
|
55
56
|
def self.file_from_cache(file_name)
|
data/lib/mlb/version.rb
CHANGED
data/mlb.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
require File.expand_path('../lib/mlb/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.add_dependency 'faraday', '~> 0.7
|
6
|
-
gem.add_dependency 'faraday_middleware', '~> 0.
|
7
|
-
gem.add_dependency '
|
8
|
-
gem.add_development_dependency 'rake'
|
9
|
-
gem.add_development_dependency 'rdiscount'
|
10
|
-
gem.add_development_dependency 'rspec'
|
11
|
-
gem.add_development_dependency 'simplecov'
|
12
|
-
gem.add_development_dependency 'webmock'
|
13
|
-
gem.add_development_dependency 'yard'
|
5
|
+
gem.add_dependency 'faraday', '~> 0.7'
|
6
|
+
gem.add_dependency 'faraday_middleware', '~> 0.8'
|
7
|
+
gem.add_dependency 'json', '~> 1.6'
|
8
|
+
gem.add_development_dependency 'rake'
|
9
|
+
gem.add_development_dependency 'rdiscount'
|
10
|
+
gem.add_development_dependency 'rspec'
|
11
|
+
gem.add_development_dependency 'simplecov'
|
12
|
+
gem.add_development_dependency 'webmock'
|
13
|
+
gem.add_development_dependency 'yard'
|
14
14
|
gem.author = "Erik Michaels-Ober"
|
15
15
|
gem.description = %q{MLB.rb is a Ruby library for retrieving current Major League Baseball players, managers, teams, divisions, and leagues.}
|
16
16
|
gem.email = 'sferik@gmail.com'
|
data/spec/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mlb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,107 +9,107 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
16
|
-
requirement: &
|
16
|
+
requirement: &70195075458860 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.7
|
21
|
+
version: '0.7'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70195075458860
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday_middleware
|
27
|
-
requirement: &
|
27
|
+
requirement: &70195075458140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: '0.8'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70195075458140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
38
|
-
requirement: &
|
37
|
+
name: json
|
38
|
+
requirement: &70195075457360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
43
|
+
version: '1.6'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70195075457360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &70195075456780 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70195075456780
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rdiscount
|
60
|
-
requirement: &
|
60
|
+
requirement: &70195075456060 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - ! '>='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '
|
65
|
+
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70195075456060
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
|
-
requirement: &
|
71
|
+
requirement: &70195075455600 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70195075455600
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: simplecov
|
82
|
-
requirement: &
|
82
|
+
requirement: &70195075448000 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ! '>='
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: '0
|
87
|
+
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70195075448000
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: webmock
|
93
|
-
requirement: &
|
93
|
+
requirement: &70195075447380 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - ! '>='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
98
|
+
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70195075447380
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: yard
|
104
|
-
requirement: &
|
104
|
+
requirement: &70195075446580 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - ! '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0
|
109
|
+
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70195075446580
|
113
113
|
description: MLB.rb is a Ruby library for retrieving current Major League Baseball
|
114
114
|
players, managers, teams, divisions, and leagues.
|
115
115
|
email: sferik@gmail.com
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: 1.3.6
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 1.8.
|
158
|
+
rubygems_version: 1.8.17
|
159
159
|
signing_key:
|
160
160
|
specification_version: 3
|
161
161
|
summary: MLB.rb is a Ruby library for retrieving current Major League Baseball players,
|
@@ -163,3 +163,4 @@ summary: MLB.rb is a Ruby library for retrieving current Major League Baseball p
|
|
163
163
|
test_files:
|
164
164
|
- spec/helper.rb
|
165
165
|
- spec/mlb_spec.rb
|
166
|
+
has_rdoc:
|