forked from mobi/telephone_number
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (32 loc) · 776 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'telephone_number'
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
t.warning = false
end
task :default => :test
namespace :data do
namespace :main do
task :import do
TelephoneNumber::PhoneDataImporter.new(File.expand_path('data/telephone_number_data_file.xml')).import!
end
end
namespace :timezone do
task :import do
TelephoneNumber::TimeZoneDataImporter.load_data!
end
end
namespace :geolocation do
task :import do
TelephoneNumber::GeoLocationDataImporter.load_data!
end
end
namespace :test do
task :import do
TelephoneNumber::TestDataImporter.import!
end
end
end