Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ task :etld_data do
begin
load File.join('.', ETLD_DATA_RB)
data = ETLD_DATA_URI.read(
'If-Modified-Since' => Time.parse(DomainName::ETLD_DATA_DATE).rfc2822
'If-Modified-Since' => DomainName.etld_data_date.rfc2822
)
rescue LoadError, NameError
data = ETLD_DATA_URI.read
Expand Down Expand Up @@ -59,13 +59,12 @@ namespace :etld_data do
ETLD_DATA_FILE,
ETLD_DATA_RB,
VERSION_RB,
'-m', 'Update the eTLD database to %s.' % DomainName::ETLD_DATA_DATE
'-m', 'Update the eTLD database to %s.' % DomainName.etld_data_date
end
end

file ETLD_DATA_RB => [
ETLD_DATA_FILE,
ETLD_DATA_RB + '.erb',
'tool/gen_etld_data.rb'
] do
ruby 'tool/gen_etld_data.rb'
Expand Down
Loading