Sha256: 38ac49a8f14ff2372b2c6eba6e549e544213d3dc526ab2329b99be87c2d889ae

Contents?: true

Size: 776 Bytes

Versions: 29

Compression:

Stored size: 776 Bytes

Contents

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

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
telephone_number-1.4.22 Rakefile
telephone_number-1.4.21 Rakefile
telephone_number-1.4.20 Rakefile
telephone_number-1.4.19 Rakefile
telephone_number-1.4.18 Rakefile
telephone_number-1.4.16 Rakefile
telephone_number-1.4.15 Rakefile
telephone_number-1.4.14 Rakefile
telephone_number-1.4.13 Rakefile
telephone_number-1.4.12 Rakefile
telephone_number-1.4.11 Rakefile
telephone_number-1.4.10 Rakefile
telephone_number-1.4.9 Rakefile
telephone_number-1.4.8 Rakefile
telephone_number-1.4.7 Rakefile
telephone_number-1.4.6 Rakefile
telephone_number-1.4.5 Rakefile
telephone_number-1.4.4 Rakefile
telephone_number-1.4.3 Rakefile
telephone_number-1.4.2 Rakefile