lib/europe/tasks/eurostat.rake in europe-0.0.13 vs lib/europe/tasks/eurostat.rake in europe-0.0.14
- old
+ new
@@ -1,10 +1,12 @@
+# frozen_string_literal: true
+
require 'open-uri'
namespace :eurostat do
EUROSTAT_BULK_URL = 'http://ec.europa.eu/eurostat/' \
'estat-navtree-portlet-prod/BulkDownloadListing' \
- '?sort=1&file='.freeze
+ '?sort=1&file='
desc 'Download categories from Eurostat Bulk Facility'
task :download_categories do
data = Net::HTTP.get_response(
URI.parse(EUROSTAT_BULK_URL + 'table_of_contents_en.txt')