├── .gitignore ├── .rubocop.yml ├── .travis.yml ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── config ├── names.txt └── synonyms.yml ├── examples ├── create.rb └── generate_index.rb ├── fias.gemspec ├── lib ├── fias.rb └── fias │ ├── config.rb │ ├── import │ ├── copy.rb │ ├── dbf.rb │ ├── download_service.rb │ ├── restore_parent_id.rb │ └── tables.rb │ ├── name │ ├── append.rb │ ├── canonical.rb │ ├── extract.rb │ ├── house_number.rb │ ├── split.rb │ └── synonyms.rb │ ├── query.rb │ ├── query │ ├── estimate.rb │ ├── finder.rb │ └── params.rb │ ├── railtie.rb │ └── version.rb ├── spec ├── fixtures │ ├── ACTSTAT.DBF │ ├── NORDOC99.DBF │ ├── STRSTAT.DBF │ ├── addressing.yml │ ├── query.yml │ ├── query_sanitization.yml │ └── status_append.yml ├── lib │ ├── import │ │ ├── copy_spec.rb │ │ ├── dbf_spec.rb │ │ ├── download_service_spec.rb │ │ ├── restore_parent_id_spec.rb │ │ └── tables_spec.rb │ ├── name │ │ ├── append_spec.rb │ │ ├── canonical_spec.rb │ │ ├── extract_spec.rb │ │ ├── house_number_spec.rb │ │ ├── query_spec.rb │ │ ├── split_spec.rb │ │ └── synonyms_spec.rb │ ├── query │ │ └── params_spec.rb │ └── query_spec.rb ├── spec_helper.rb └── support │ ├── db.rb │ └── query.rb └── tasks ├── db.rake └── download.rake /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/.gitignore -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/Rakefile -------------------------------------------------------------------------------- /config/names.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/config/names.txt -------------------------------------------------------------------------------- /config/synonyms.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/config/synonyms.yml -------------------------------------------------------------------------------- /examples/create.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/examples/create.rb -------------------------------------------------------------------------------- /examples/generate_index.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/examples/generate_index.rb -------------------------------------------------------------------------------- /fias.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/fias.gemspec -------------------------------------------------------------------------------- /lib/fias.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias.rb -------------------------------------------------------------------------------- /lib/fias/config.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/config.rb -------------------------------------------------------------------------------- /lib/fias/import/copy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/import/copy.rb -------------------------------------------------------------------------------- /lib/fias/import/dbf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/import/dbf.rb -------------------------------------------------------------------------------- /lib/fias/import/download_service.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/import/download_service.rb -------------------------------------------------------------------------------- /lib/fias/import/restore_parent_id.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/import/restore_parent_id.rb -------------------------------------------------------------------------------- /lib/fias/import/tables.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/import/tables.rb -------------------------------------------------------------------------------- /lib/fias/name/append.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/append.rb -------------------------------------------------------------------------------- /lib/fias/name/canonical.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/canonical.rb -------------------------------------------------------------------------------- /lib/fias/name/extract.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/extract.rb -------------------------------------------------------------------------------- /lib/fias/name/house_number.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/house_number.rb -------------------------------------------------------------------------------- /lib/fias/name/split.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/split.rb -------------------------------------------------------------------------------- /lib/fias/name/synonyms.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/name/synonyms.rb -------------------------------------------------------------------------------- /lib/fias/query.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/query.rb -------------------------------------------------------------------------------- /lib/fias/query/estimate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/query/estimate.rb -------------------------------------------------------------------------------- /lib/fias/query/finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/query/finder.rb -------------------------------------------------------------------------------- /lib/fias/query/params.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/query/params.rb -------------------------------------------------------------------------------- /lib/fias/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/lib/fias/railtie.rb -------------------------------------------------------------------------------- /lib/fias/version.rb: -------------------------------------------------------------------------------- 1 | module Fias 2 | VERSION = '1.0.3' 3 | end 4 | -------------------------------------------------------------------------------- /spec/fixtures/ACTSTAT.DBF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/ACTSTAT.DBF -------------------------------------------------------------------------------- /spec/fixtures/NORDOC99.DBF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/NORDOC99.DBF -------------------------------------------------------------------------------- /spec/fixtures/STRSTAT.DBF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/STRSTAT.DBF -------------------------------------------------------------------------------- /spec/fixtures/addressing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/addressing.yml -------------------------------------------------------------------------------- /spec/fixtures/query.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/query.yml -------------------------------------------------------------------------------- /spec/fixtures/query_sanitization.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/query_sanitization.yml -------------------------------------------------------------------------------- /spec/fixtures/status_append.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/fixtures/status_append.yml -------------------------------------------------------------------------------- /spec/lib/import/copy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/import/copy_spec.rb -------------------------------------------------------------------------------- /spec/lib/import/dbf_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/import/dbf_spec.rb -------------------------------------------------------------------------------- /spec/lib/import/download_service_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/import/download_service_spec.rb -------------------------------------------------------------------------------- /spec/lib/import/restore_parent_id_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/import/restore_parent_id_spec.rb -------------------------------------------------------------------------------- /spec/lib/import/tables_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/import/tables_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/append_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/append_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/canonical_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/canonical_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/extract_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/extract_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/house_number_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/house_number_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/query_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/query_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/split_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/split_spec.rb -------------------------------------------------------------------------------- /spec/lib/name/synonyms_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/name/synonyms_spec.rb -------------------------------------------------------------------------------- /spec/lib/query/params_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/query/params_spec.rb -------------------------------------------------------------------------------- /spec/lib/query_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/lib/query_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/db.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/support/db.rb -------------------------------------------------------------------------------- /spec/support/query.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/spec/support/query.rb -------------------------------------------------------------------------------- /tasks/db.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/tasks/db.rake -------------------------------------------------------------------------------- /tasks/download.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilmartians/fias/HEAD/tasks/download.rake --------------------------------------------------------------------------------