sports_db 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sports_db/twitter_builder.rb +9 -4
- data/lib/sports_db/version.rb +1 -1
- metadata +5 -44
@@ -29,10 +29,15 @@ class TwitterBuilder
|
|
29
29
|
if SimpleConfig.for(:application).woven_feed_server != "woven.zumobi.net"
|
30
30
|
feed_url = feed_url.gsub("woven.zumobi.net", SimpleConfig.for(:application).woven_feed_server)
|
31
31
|
end
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
|
33
|
+
begin
|
34
|
+
team_obj = Team.find_by_id!(feed_obj.team_id)
|
35
|
+
feed_name = (team_obj.nil? ? "Unknown" : team_obj.city_name)
|
36
|
+
parse_feed(new_tweets, feed_url, feed_name, feed_obj.team_id)
|
37
|
+
|
38
|
+
rescue ActiveRecord::RecordNotFound
|
39
|
+
p "--- Couldn't update feed, no matching team: #{feed_url}"
|
40
|
+
end
|
36
41
|
end
|
37
42
|
|
38
43
|
Twitter.transaction do
|
data/lib/sports_db/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sports_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Alx Dark
|
@@ -15,18 +14,16 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2013-05-29 00:00:00 -
|
17
|
+
date: 2013-05-29 00:00:00 -07:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rails
|
23
22
|
prerelease: false
|
24
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
24
|
requirements:
|
27
25
|
- - ~>
|
28
26
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 21
|
30
27
|
segments:
|
31
28
|
- 3
|
32
29
|
- 2
|
@@ -38,11 +35,9 @@ dependencies:
|
|
38
35
|
name: sqlite3
|
39
36
|
prerelease: false
|
40
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
38
|
requirements:
|
43
39
|
- - ">="
|
44
40
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
41
|
segments:
|
47
42
|
- 0
|
48
43
|
version: "0"
|
@@ -140,36 +135,6 @@ files:
|
|
140
135
|
- MIT-LICENSE
|
141
136
|
- Rakefile
|
142
137
|
- README.rdoc
|
143
|
-
- test/dummy/app/assets/javascripts/application.js
|
144
|
-
- test/dummy/app/assets/stylesheets/application.css
|
145
|
-
- test/dummy/app/controllers/application_controller.rb
|
146
|
-
- test/dummy/app/helpers/application_helper.rb
|
147
|
-
- test/dummy/app/views/layouts/application.html.erb
|
148
|
-
- test/dummy/config/application.rb
|
149
|
-
- test/dummy/config/boot.rb
|
150
|
-
- test/dummy/config/database.yml
|
151
|
-
- test/dummy/config/environment.rb
|
152
|
-
- test/dummy/config/environments/development.rb
|
153
|
-
- test/dummy/config/environments/production.rb
|
154
|
-
- test/dummy/config/environments/test.rb
|
155
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
156
|
-
- test/dummy/config/initializers/inflections.rb
|
157
|
-
- test/dummy/config/initializers/mime_types.rb
|
158
|
-
- test/dummy/config/initializers/secret_token.rb
|
159
|
-
- test/dummy/config/initializers/session_store.rb
|
160
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
161
|
-
- test/dummy/config/locales/en.yml
|
162
|
-
- test/dummy/config/routes.rb
|
163
|
-
- test/dummy/config.ru
|
164
|
-
- test/dummy/public/404.html
|
165
|
-
- test/dummy/public/422.html
|
166
|
-
- test/dummy/public/500.html
|
167
|
-
- test/dummy/public/favicon.ico
|
168
|
-
- test/dummy/Rakefile
|
169
|
-
- test/dummy/README.rdoc
|
170
|
-
- test/dummy/script/rails
|
171
|
-
- test/sports_db_test.rb
|
172
|
-
- test/test_helper.rb
|
173
138
|
has_rdoc: true
|
174
139
|
homepage: http://www.zumobi.com/
|
175
140
|
licenses: []
|
@@ -180,27 +145,23 @@ rdoc_options: []
|
|
180
145
|
require_paths:
|
181
146
|
- lib
|
182
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
-
none: false
|
184
148
|
requirements:
|
185
149
|
- - ">="
|
186
150
|
- !ruby/object:Gem::Version
|
187
|
-
hash: 3
|
188
151
|
segments:
|
189
152
|
- 0
|
190
153
|
version: "0"
|
191
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
155
|
requirements:
|
194
156
|
- - ">="
|
195
157
|
- !ruby/object:Gem::Version
|
196
|
-
hash: 3
|
197
158
|
segments:
|
198
159
|
- 0
|
199
160
|
version: "0"
|
200
161
|
requirements: []
|
201
162
|
|
202
163
|
rubyforge_project:
|
203
|
-
rubygems_version: 1.6
|
164
|
+
rubygems_version: 1.3.6
|
204
165
|
signing_key:
|
205
166
|
specification_version: 3
|
206
167
|
summary: Shared code for the Zumobi sports applications
|