Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 961 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 961 Bytes

Fias

It helps your to add FIAS to any project

Installation

Add this line to your application's Gemfile:

gem 'fias', git: 'git@github.com:uchiru/fias.git'

And then execute:

$ bundle

Scripts

rails generate fias:install # Сгенерировать миграции
rake db:migrate # Мигрировать
rake fias:download # Скачать ФИАС архивом
rake fias:download[.] # Скачать ФИАС архивом в указанную папку (по умолчанию в tmp)
rake fias:import # Импортировать ФИАС себе в базу
rake fias:import[fias_xml.rar] # Импортировать ФИАС себе в базу из указанного файла
rake fias:update # Пока не работает

Usage

TODO: Write usage instructions here

License

The gem is available as open source under the terms of the MIT License.