https://github.com/zdavatz/migel
MiGel Database Applikation for Switzerland
https://github.com/zdavatz/migel
Last synced: 5 months ago
JSON representation
MiGel Database Applikation for Switzerland
- Host: GitHub
- URL: https://github.com/zdavatz/migel
- Owner: zdavatz
- License: gpl-2.0
- Created: 2013-11-13T13:36:41.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T18:36:58.000Z (over 1 year ago)
- Last Synced: 2025-04-07T08:51:25.781Z (about 1 year ago)
- Language: Ruby
- Size: 1.94 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- Changelog: History.txt
- License: LICENSE
Awesome Lists containing this project
README
# migel
* https://github.com/zdavatz/migel
## DESCRIPTION:
migel gem for ch.oddb.org
## FEATURES/PROBLEMS:
## REQUIREMENTS:
Use bundler to install all dependencies mentioned in the Gemfile
* bundle install
## INSTALL:
* sudo gem install migel
### Non standard path of postgres
If you have a non standard path of postgres use something like
gem install pg -- ---with-pg-config=/usr/local/pg-10_1/bin/pg_config
Or if you are using bundler
bundle config build.pg ----with-pg-config=/usr/local/pg-10_1/bin/pg_config
bundle install
## TEST/COVERAGE
Don't forget to manually call jobs/update_migel_products_with_report, as this is a job run only twice a year!
We use Travis-CI to run the tests after each push using `bundle exec rake spec`
The coverage output can be found under coverage/index.html.
## Overview of jobs/update_migel_products
jobs/update_migel calls update_all in
lib/migel/util/importer.rb:
* ODDB::Swissindex::SwissindexMigel is used to get list of all migel_id
MiGeL.xls downloaded from https://github.com/zdavatz/oddb2xml_files/raw/master/MiGeL.xls
* save_all_products
** saves /migel_products_de.csv.
** For each migel_id search_migel_table is called.
** SwissindexMigel.search_migel_table 010101001 query_key MiGelCode lang IT
*** ext/swissindex/src/swissindex.rb calls ODDB::Swissindex::SwissindexMigel
**** calls RefdataArticle.get_refdata is called to get EAN/GTIN (Hash)
## DEVELOPERS:
* Masaomi Hatakeyama
* Yasuhiro Asaka
* Zeno Davatz
* Niklaus Giger
## LICENSE:
* GPLv2