Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed data directory to fit gem name, and fixed looking up the data…

… directory.
  • Loading branch information...
commit 00b7857e90ef31796b6ef1056ebff40b90700e0c 1 parent e8cef6a
@apeiros authored
View
0  data/swissmatch/communities_20120401.csv → ...ssmatch-location/communities_20120401.csv
File renamed without changes
View
0  data/swissmatch/districts_20120401.csv → ...wissmatch-location/districts_20120401.csv
File renamed without changes
View
0  data/swissmatch/plz_c_20120821.txt → data/swissmatch-location/plz_c_20120821.txt
File renamed without changes
View
0  data/swissmatch/plz_p1_20120821.txt → data/swissmatch-location/plz_p1_20120821.txt
File renamed without changes
View
0  data/swissmatch/plz_p2_20120821.txt → data/swissmatch-location/plz_p2_20120821.txt
File renamed without changes
View
4 lib/swissmatch/location/datafiles.rb
@@ -121,8 +121,8 @@ def initialize(data_directory=nil)
elsif ENV['SWISSMATCH_DATA'] then
@data_directory = ENV['SWISSMATCH_DATA']
else
- data_directory = File.expand_path('../../../../data/swissmatch', __FILE__)
- data_directory = Gem.datadir 'swissmatch' if defined?(Gem) && !File.directory?(data_directory)
+ data_directory = File.expand_path('../../../../data/swissmatch-location', __FILE__)
+ data_directory = Gem.datadir 'swissmatch-location' if defined?(Gem) && !File.directory?(data_directory)
@data_directory = data_directory
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.