Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add more updater mappings

  • Loading branch information...
commit 7b87bec170f757d1c5c08693c02233a3201b1466 1 parent 83d4a77
@geraldb geraldb authored
Showing with 12 additions and 2 deletions.
  1. +11 −1 lib/sportdb/updater.rb
  2. +1 −1  lib/sportdb/version.rb
View
12 lib/sportdb/updater.rb
@@ -22,7 +22,7 @@ def map_event_to_dlurl( event )
season_path = season_key.gsub( '/', '_') # convert 2013/14 to 2013_14
###
- # e.g. https://raw.github.com/openfootball/at-austria/master/2013_14/bl.txt
+ # e.g. https://raw.github.com/openfootball/at-austria/master/2013_14
dlurl = "https://raw.github.com/openfootball/#{repo_path}/master"
dlurl << "/#{folder_path}" if folder_path.present?
@@ -38,8 +38,18 @@ def map_key_to_repo_n_folder_path( key )
[ 'at', 'at-austria' ],
[ 'at.*', 'at-austria' ],
[ 'de', 'de-deutschland' ],
+ [ 'de.*', 'de-deutschland' ],
+ [ 'en', 'en-england' ],
+ [ 'es', 'es-espana' ],
+ [ 'it', 'it-italy' ],
[ 'be', 'europe', 'be-belgium' ], # NB: europe/be-belgium
+ [ 'ro', 'europe', 'ro-romania' ],
[ 'cl', 'europe' ],
+ [ 'el', 'europe' ],
+ [ 'br', 'br-brazil' ],
+ [ 'mx', 'mx-mexico' ], # todo: add mx.* for clausura etc ??
+ [ 'euro', 'euro-cup', ],
+ [ 'world', 'world-cup' ],
[ 'world.*', 'world-cup' ]]
map.each do |entry|
View
2  lib/sportdb/version.rb
@@ -1,6 +1,6 @@
module SportDb
- VERSION = '1.7.5'
+ VERSION = '1.7.6'
end
Please sign in to comment.
Something went wrong with that request. Please try again.