lib/sportdb/loader.rb in sportdb-0.9.1 vs lib/sportdb/loader.rb in sportdb-0.9.2
- old
+ new
@@ -63,25 +63,9 @@
end
private
- ##
- # fix/todo: share helper w/ other readers
-
- # helper
- # change at/2012_13/bl to at.2012/13.bl
- # or quali_2012_13_europe_c to quali.2012/13.europe.c
-
- def fixture_name_to_prop_key( name )
- prop_key = name.gsub( '/', '.' )
- prop_key = prop_key.gsub( /(\d{4})_(\d{2})/, '\1/\2' ) # 2012_13 => 2012/13
- prop_key = prop_key.gsub( '_', '.' )
- prop_key
- end
-
-
-
def load_fixtures_worker( code )
self.class_eval( code )