File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ def archive_filename(package)
35
35
p [ s ..-1 ]
36
36
end
37
37
38
+ def archive_edition ( package )
39
+ {
40
+ geolite_country_csv : "GeoLite2-Country-CSV" ,
41
+ geolite_city_csv : "GeoLite2-City-CSV" ,
42
+ geolite_asn_csv : "GeoLite2-ASN-CSV"
43
+ } [ package ]
44
+ end
45
+
38
46
private # -------------------------------------------------------------
39
47
40
48
def table_columns ( table_name )
@@ -94,14 +102,6 @@ def archive_url(package)
94
102
base_url + archive_url_path ( package )
95
103
end
96
104
97
- def archive_edition ( package )
98
- {
99
- geolite_country_csv : "GeoLite2-Country-CSV" ,
100
- geolite_city_csv : "GeoLite2-City-CSV" ,
101
- geolite_asn_csv : "GeoLite2-ASN-CSV"
102
- } [ package ]
103
- end
104
-
105
105
def base_url ( edition )
106
106
"https://download.maxmind.com/app/geoip_download?edition_id=#{ edition } &license_key=#{ ENV [ 'LICENSE_KEY' ] } &suffix=zip"
107
107
end
You can’t perform that action at this time.
0 commit comments