greenmonster 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -0
  3. data/README.markdown +5 -2
  4. data/lib/greenmonster.rb +2 -0
  5. data/lib/greenmonster/file_downloader.rb +7 -1
  6. data/lib/greenmonster/version.rb +1 -1
  7. data/spec/file_downloader_spec.rb +1 -1
  8. metadata +4 -41
  9. data/doc/Gemfile.html +0 -95
  10. data/doc/Greenmonster.html +0 -312
  11. data/doc/Greenmonster/Spider.html +0 -297
  12. data/doc/Rakefile.html +0 -104
  13. data/doc/created.rid +0 -12
  14. data/doc/images/add.png +0 -0
  15. data/doc/images/brick.png +0 -0
  16. data/doc/images/brick_link.png +0 -0
  17. data/doc/images/bug.png +0 -0
  18. data/doc/images/bullet_black.png +0 -0
  19. data/doc/images/bullet_toggle_minus.png +0 -0
  20. data/doc/images/bullet_toggle_plus.png +0 -0
  21. data/doc/images/date.png +0 -0
  22. data/doc/images/delete.png +0 -0
  23. data/doc/images/find.png +0 -0
  24. data/doc/images/loadingAnimation.gif +0 -0
  25. data/doc/images/macFFBgHack.png +0 -0
  26. data/doc/images/package.png +0 -0
  27. data/doc/images/page_green.png +0 -0
  28. data/doc/images/page_white_text.png +0 -0
  29. data/doc/images/page_white_width.png +0 -0
  30. data/doc/images/plugin.png +0 -0
  31. data/doc/images/ruby.png +0 -0
  32. data/doc/images/tag_blue.png +0 -0
  33. data/doc/images/tag_green.png +0 -0
  34. data/doc/images/transparent.png +0 -0
  35. data/doc/images/wrench.png +0 -0
  36. data/doc/images/wrench_orange.png +0 -0
  37. data/doc/images/zoom.png +0 -0
  38. data/doc/index.html +0 -88
  39. data/doc/js/darkfish.js +0 -153
  40. data/doc/js/jquery.js +0 -18
  41. data/doc/js/navigation.js +0 -142
  42. data/doc/js/search.js +0 -94
  43. data/doc/js/search_index.js +0 -1
  44. data/doc/js/searcher.js +0 -228
  45. data/doc/rdoc.css +0 -543
  46. data/doc/table_of_contents.html +0 -82
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4678752253ce01451b3d56eb3f3b81a05761e47d
4
- data.tar.gz: 4cbc4105fe3d8848e56c3aeda09bd27912842fe8
3
+ metadata.gz: 41cdded335ab450872fdf3e3c76e1a53e7483ae7
4
+ data.tar.gz: 86ab21805430c135c1d336da4dc7d57a39031eef
5
5
  SHA512:
6
- metadata.gz: 11f26ac5cf8d7f264eadaffbb9b78e7926f74bf7e33c3db81cf695d47794d987dd676d09ee4a236a931d806b0d82d85efa2e26fd124831df9ae90df26d3606bf
7
- data.tar.gz: ba7734d2908004bff1784e1a0ee755b019c388829faec5439a54545d9a0df991bb4a0d6db941a5895283bee69593167e0a6d8f2aac0678191b0530b490434172
6
+ metadata.gz: 10b75f4cee48db882505f6bdc985f7f26cc889f75a017628b15fe43f6de14fa3844784f73870a6310a74042467e5eb7cd9d854a6389aa1d4e7ff1f116bbeaf2b
7
+ data.tar.gz: 32f2657dc53e1d783191e27d7779ae13a0cb5336a8b5c7438a2ae991305428adde9e39123f7b06978c7e64853159c96aa621280adb465f94f63a770e20e9af23
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - ruby-head
@@ -1,7 +1,10 @@
1
+ [![Code Climate](https://codeclimate.com/github/geoffharcourt/greenmonster/badges/gpa.svg)](https://codeclimate.com/github/geoffharcourt/greenmonster)
2
+ [![Build Status](https://travis-ci.org/geoffharcourt/greenmonster.svg?branch=master)](https://travis-ci.org/geoffharcourt/greenmonster)
3
+
1
4
  Greenmonster
2
5
  ============
3
6
 
4
- Greenmonster is a toolkit for baseball stat enthusiasts or sabermetricians to build a database of play-by-play stats from MLB's [Gameday XML data](http://gd.mlb.com/components/game/). The current tool provides the ability to spider Gameday XML data from MLB's servers for personal research. Future iterations of the tool will provide the ability to parse the data and store it in a SQL database.
7
+ Greenmonster is a toolkit for baseball stat enthusiasts or sabermetricians to retrieve play-by-play stats from MLB's [Gameday XML data](http://gd.mlb.com/components/game/). The tool provides the ability to spider Gameday XML data from MLB's servers for personal research.
5
8
 
6
9
  Usage
7
10
  =====
@@ -31,7 +34,7 @@ Download games from a given date.
31
34
  Greenmonster::DaySpider.new(date: Date.today, sport_code: "mlb").pull
32
35
 
33
36
  # Pull all rookie league games for today
34
- Greenmonster::Spider.pull_day(date: Date.today, sport_code: "rok")
37
+ Greenmonster::DaySpider(date: Date.today, sport_code: "rok").pull
35
38
  ```
36
39
 
37
40
  Requirements
@@ -1,3 +1,5 @@
1
+ #encoding: utf-8
2
+
1
3
  require "date"
2
4
  require "fileutils"
3
5
  require "httparty"
@@ -1,3 +1,5 @@
1
+ #encoding: utf-8
2
+
1
3
  module Greenmonster
2
4
  class FileDownloader
3
5
  def initialize(file_name:, game_path:)
@@ -29,9 +31,13 @@ module Greenmonster
29
31
  "#{Greenmonster::REMOTE_DATA_ROOT}/#{game_path}/#{file_name}"
30
32
  end
31
33
 
34
+ def encoded_response
35
+ fetch.body.force_encoding("utf-8")
36
+ end
37
+
32
38
  def write_file
33
39
  File.open(local_path, "w") do |file|
34
- file.write(fetch.body)
40
+ file.write(encoded_response)
35
41
  end
36
42
  end
37
43
  end
@@ -1,3 +1,3 @@
1
1
  module Greenmonster
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -21,7 +21,7 @@ describe Greenmonster::FileDownloader do
21
21
  "mlb/year_2015/month_04/day_18" +
22
22
  "gid_2015_04_18_balmlb_bosmlb_1/players.xml"
23
23
  )
24
- ).to eq(File.read("/Users/geoff/github/geoffharcourt/greenmonster/spec/fixtures/players.xml"))
24
+ ).to eq(File.read(File.expand_path("../fixtures/players.xml", __FILE__)))
25
25
  end
26
26
  end
27
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greenmonster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Harcourt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-10 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -104,50 +104,13 @@ extra_rdoc_files: []
104
104
  files:
105
105
  - ".gitignore"
106
106
  - ".rspec"
107
+ - ".travis.yml"
107
108
  - CHANGELOG.markdown
108
109
  - CODE_OF_CONDUCT.md
109
110
  - Gemfile
110
111
  - LICENSE.txt
111
112
  - README.markdown
112
113
  - Rakefile
113
- - doc/Gemfile.html
114
- - doc/Greenmonster.html
115
- - doc/Greenmonster/Spider.html
116
- - doc/Rakefile.html
117
- - doc/created.rid
118
- - doc/images/add.png
119
- - doc/images/brick.png
120
- - doc/images/brick_link.png
121
- - doc/images/bug.png
122
- - doc/images/bullet_black.png
123
- - doc/images/bullet_toggle_minus.png
124
- - doc/images/bullet_toggle_plus.png
125
- - doc/images/date.png
126
- - doc/images/delete.png
127
- - doc/images/find.png
128
- - doc/images/loadingAnimation.gif
129
- - doc/images/macFFBgHack.png
130
- - doc/images/package.png
131
- - doc/images/page_green.png
132
- - doc/images/page_white_text.png
133
- - doc/images/page_white_width.png
134
- - doc/images/plugin.png
135
- - doc/images/ruby.png
136
- - doc/images/tag_blue.png
137
- - doc/images/tag_green.png
138
- - doc/images/transparent.png
139
- - doc/images/wrench.png
140
- - doc/images/wrench_orange.png
141
- - doc/images/zoom.png
142
- - doc/index.html
143
- - doc/js/darkfish.js
144
- - doc/js/jquery.js
145
- - doc/js/navigation.js
146
- - doc/js/search.js
147
- - doc/js/search_index.js
148
- - doc/js/searcher.js
149
- - doc/rdoc.css
150
- - doc/table_of_contents.html
151
114
  - greenmonster.gemspec
152
115
  - lib/greenmonster.rb
153
116
  - lib/greenmonster/day_spider.rb
@@ -195,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
158
  version: '0'
196
159
  requirements: []
197
160
  rubyforge_project:
198
- rubygems_version: 2.4.6
161
+ rubygems_version: 2.4.7
199
162
  signing_key:
200
163
  specification_version: 4
201
164
  summary: A utility for working with MLB Gameday XML data.
@@ -1,95 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>Gemfile - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
-
22
-
23
- <body class="file">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="project-metadata">
47
- <nav id="fileindex-section" class="section project-section">
48
- <h3 class="section-header">Pages</h3>
49
-
50
- <ul>
51
-
52
- <li class="file"><a href="./Gemfile.html">Gemfile</a>
53
-
54
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
55
-
56
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/gid_2012_03_27_aaamlb_aabmlb_1/blank_txt.html">blank</a>
57
-
58
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/gid_2012_03_27_aaamlb_aabmlb_1_bak/blank_txt.html">blank</a>
59
-
60
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/not_2012_03_27_aaamlb_aabmlb_1/blank_txt.html">blank</a>
61
-
62
- </ul>
63
- </nav>
64
-
65
- <nav id="classindex-section" class="section project-section">
66
- <h3 class="section-header">Class and Module Index</h3>
67
-
68
- <ul class="link-list">
69
-
70
- <li><a href="./Greenmonster.html">Greenmonster</a>
71
-
72
- <li><a href="./Greenmonster/Spider.html">Greenmonster::Spider</a>
73
-
74
- </ul>
75
- </nav>
76
-
77
- </div>
78
- </nav>
79
-
80
- <div id="documentation" class="description">
81
-
82
- <p>source “<a href="http://rubygems.org">rubygems.org</a>”</p>
83
-
84
- <p># Specify your gem’s dependencies in greenmonster.gemspec gemspec</p>
85
-
86
- </div>
87
-
88
-
89
-
90
- <footer id="validator-badges">
91
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
92
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
93
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
94
- </footer>
95
-
@@ -1,312 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
-
7
- <title>module Greenmonster - RDoc Documentation</title>
8
-
9
- <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
-
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "./";
13
- </script>
14
-
15
- <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="./index.html">Home</a>
28
- <a href="./table_of_contents.html#classes">Classes</a>
29
- <a href="./table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/greenmonster/version.rb
51
- <li>lib/greenmonster.rb
52
- </ul>
53
- </nav>
54
-
55
-
56
- </div>
57
-
58
- <div id="class-metadata">
59
-
60
-
61
-
62
- <!-- Method Quickref -->
63
- <nav id="method-list-section" class="section">
64
- <h3 class="section-header">Methods</h3>
65
-
66
- <ul class="link-list">
67
-
68
- <li><a href="#method-c-games_folder">::games_folder</a>
69
-
70
- <li><a href="#method-c-set_games_folder">::set_games_folder</a>
71
-
72
- <li><a href="#method-c-traverse_dates">::traverse_dates</a>
73
-
74
- <li><a href="#method-c-traverse_folders_for_date">::traverse_folders_for_date</a>
75
-
76
- </ul>
77
- </nav>
78
-
79
- </div>
80
-
81
- <div id="project-metadata">
82
- <nav id="fileindex-section" class="section project-section">
83
- <h3 class="section-header">Pages</h3>
84
-
85
- <ul>
86
-
87
- <li class="file"><a href="./Gemfile.html">Gemfile</a>
88
-
89
- <li class="file"><a href="./Rakefile.html">Rakefile</a>
90
-
91
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/gid_2012_03_27_aaamlb_aabmlb_1/blank_txt.html">blank</a>
92
-
93
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/gid_2012_03_27_aaamlb_aabmlb_1_bak/blank_txt.html">blank</a>
94
-
95
- <li class="file"><a href="./spec/games/tst/year_2012/month_03/day_27/not_2012_03_27_aaamlb_aabmlb_1/blank_txt.html">blank</a>
96
-
97
- </ul>
98
- </nav>
99
-
100
- <nav id="classindex-section" class="section project-section">
101
- <h3 class="section-header">Class and Module Index</h3>
102
-
103
- <ul class="link-list">
104
-
105
- <li><a href="./Greenmonster.html">Greenmonster</a>
106
-
107
- <li><a href="./Greenmonster/Spider.html">Greenmonster::Spider</a>
108
-
109
- </ul>
110
- </nav>
111
-
112
- </div>
113
- </nav>
114
-
115
- <div id="documentation">
116
- <h1 class="module">module Greenmonster</h1>
117
-
118
- <div id="description" class="description">
119
-
120
- </div><!-- description -->
121
-
122
-
123
-
124
-
125
- <section id="5Buntitled-5D" class="documentation-section">
126
-
127
-
128
-
129
-
130
-
131
- <!-- Constants -->
132
- <section id="constants-list" class="section">
133
- <h3 class="section-header">Constants</h3>
134
- <dl>
135
-
136
- <dt id="SPORT_CODES">SPORT_CODES
137
-
138
- <dd class="description">
139
-
140
-
141
- <dt id="VERSION">VERSION
142
-
143
- <dd class="description">
144
-
145
-
146
- </dl>
147
- </section>
148
-
149
-
150
-
151
-
152
- <!-- Methods -->
153
-
154
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
155
- <h3 class="section-header">Public Class Methods</h3>
156
-
157
-
158
- <div id="method-c-games_folder" class="method-detail ">
159
-
160
- <div class="method-heading">
161
- <span class="method-name">games_folder</span><span
162
- class="method-args">()</span>
163
- <span class="method-click-advice">click to toggle source</span>
164
- </div>
165
-
166
-
167
- <div class="method-description">
168
-
169
- <p>Return the default games folder location</p>
170
-
171
- <p>Example:</p>
172
-
173
- <pre class="ruby"><span class="ruby-operator">&gt;&gt;</span> <span class="ruby-constant">Greenmonster</span>.<span class="ruby-identifier">set_games_folder</span>(<span class="ruby-string">&quot;/Users/geoff/game_data&quot;</span>)
174
- <span class="ruby-operator">&gt;&gt;</span> <span class="ruby-constant">Greenmonster</span>.<span class="ruby-identifier">games_folder</span>
175
- =<span class="ruby-operator">&gt;</span> <span class="ruby-comment">#&lt;Pathname:/Users/geoff/game_data&gt;</span>
176
- </pre>
177
-
178
-
179
-
180
- <div class="method-source-code" id="games_folder-source">
181
- <pre><span class="ruby-comment"># File lib/greenmonster.rb, line 38</span>
182
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">games_folder</span>
183
- <span class="ruby-identifier">@@games_folder</span>
184
- <span class="ruby-keyword">end</span></pre>
185
- </div><!-- games_folder-source -->
186
-
187
- </div>
188
-
189
-
190
-
191
-
192
- </div><!-- games_folder-method -->
193
-
194
-
195
- <div id="method-c-set_games_folder" class="method-detail ">
196
-
197
- <div class="method-heading">
198
- <span class="method-name">set_games_folder</span><span
199
- class="method-args">(location)</span>
200
- <span class="method-click-advice">click to toggle source</span>
201
- </div>
202
-
203
-
204
- <div class="method-description">
205
-
206
- <p>Set the default folder to which games are saved after being downloaded from
207
- the server.</p>
208
-
209
- <p>Example:</p>
210
-
211
- <pre class="ruby">=<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Greenmonster</span>.<span class="ruby-identifier">set_games_folder</span>(<span class="ruby-string">&quot;/Users/geoff/game_data&quot;</span>)
212
- </pre>
213
-
214
- <p>Arguments:</p>
215
-
216
- <pre>location: (String)</pre>
217
-
218
-
219
-
220
- <div class="method-source-code" id="set_games_folder-source">
221
- <pre><span class="ruby-comment"># File lib/greenmonster.rb, line 26</span>
222
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">set_games_folder</span>(<span class="ruby-identifier">location</span>)
223
- <span class="ruby-identifier">@@games_folder</span> = <span class="ruby-constant">Pathname</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">location</span>)
224
- <span class="ruby-keyword">end</span></pre>
225
- </div><!-- set_games_folder-source -->
226
-
227
- </div>
228
-
229
-
230
-
231
-
232
- </div><!-- set_games_folder-method -->
233
-
234
-
235
- <div id="method-c-traverse_dates" class="method-detail ">
236
-
237
- <div class="method-heading">
238
- <span class="method-name">traverse_dates</span><span
239
- class="method-args">(range, args) { |day,args| ... }</span>
240
- <span class="method-click-advice">click to toggle source</span>
241
- </div>
242
-
243
-
244
- <div class="method-description">
245
-
246
- <p>Walk the dates in a range of dates, and execute whatever methods on the
247
- date and argument set specified. Used when processing games and players.</p>
248
-
249
-
250
-
251
- <div class="method-source-code" id="traverse_dates-source">
252
- <pre><span class="ruby-comment"># File lib/greenmonster.rb, line 49</span>
253
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">traverse_dates</span>(<span class="ruby-identifier">range</span>, <span class="ruby-identifier">args</span>)
254
- <span class="ruby-identifier">range</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">day</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">day</span>,<span class="ruby-identifier">args</span> }
255
- <span class="ruby-keyword">end</span></pre>
256
- </div><!-- traverse_dates-source -->
257
-
258
- </div>
259
-
260
-
261
-
262
-
263
- </div><!-- traverse_dates-method -->
264
-
265
-
266
- <div id="method-c-traverse_folders_for_date" class="method-detail ">
267
-
268
- <div class="method-heading">
269
- <span class="method-name">traverse_folders_for_date</span><span
270
- class="method-args">(date, args) { |gdir, args| ... }</span>
271
- <span class="method-click-advice">click to toggle source</span>
272
- </div>
273
-
274
-
275
- <div class="method-description">
276
-
277
- <p>Walk the game folders in a range of dates, and execute whatever methods on
278
- the game folder and argument set specified. Used when processing games and
279
- players.</p>
280
-
281
-
282
-
283
- <div class="method-source-code" id="traverse_folders_for_date-source">
284
- <pre><span class="ruby-comment"># File lib/greenmonster.rb, line 60</span>
285
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">traverse_folders_for_date</span>(<span class="ruby-identifier">date</span>, <span class="ruby-identifier">args</span>)
286
- <span class="ruby-identifier">game_folders_for_date_and_sport_code</span>(<span class="ruby-identifier">date</span>, <span class="ruby-identifier">args</span>[<span class="ruby-value">:sport_code</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">gdir</span><span class="ruby-operator">|</span>
287
- <span class="ruby-keyword">yield</span> <span class="ruby-identifier">gdir</span>, <span class="ruby-identifier">args</span>
288
- <span class="ruby-keyword">end</span>
289
- <span class="ruby-keyword">end</span></pre>
290
- </div><!-- traverse_folders_for_date-source -->
291
-
292
- </div>
293
-
294
-
295
-
296
-
297
- </div><!-- traverse_folders_for_date-method -->
298
-
299
-
300
- </section><!-- public-class-method-details -->
301
-
302
- </section><!-- 5Buntitled-5D -->
303
-
304
- </div><!-- documentation -->
305
-
306
-
307
- <footer id="validator-badges">
308
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
309
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
310
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
311
- </footer>
312
-