onoma 0.0.0 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +11 -9
- data/bin/console +3 -3
- data/config/locales/arb.yml +6455 -4930
- data/config/locales/cmn.yml +7227 -0
- data/config/locales/deu.yml +7227 -0
- data/config/locales/eng.yml +2073 -534
- data/config/locales/fra.yml +2093 -452
- data/config/locales/ita.yml +7227 -0
- data/config/locales/jpn.yml +6412 -4887
- data/config/locales/por.yml +6261 -4736
- data/config/locales/spa.yml +6076 -4551
- data/db/migrate/20151211114316_add_beta_varieties.xml +1 -1
- data/db/migrate/20151211124757_add_allium_schoenoprasum_varieties.xml +2 -2
- data/db/migrate/20151211153218_add_zea_mays_varieties.xml +1 -1
- data/db/migrate/20151216100708_add_lifter_equipment_variants.xml +1 -1
- data/db/migrate/20151223164501_update_organic_fertilizer.xml +4 -0
- data/db/migrate/20151223171801_update_indicators.xml +4 -0
- data/db/migrate/20160104145418_add_matters.xml +14 -0
- data/db/migrate/20160104160843_change_product_nature_variants_drain.xml +4 -0
- data/db/migrate/20160105095120_add_plugin_cap_varieties.xml +261 -0
- data/db/migrate/20160106095232_add_orchard_plugin_cap_varieties.xml +405 -0
- data/db/migrate/20160108142009_add_product_nature_variants_nematicide.xml +6 -0
- data/db/migrate/20160113144856_update_prunus_avium_parent.xml +32 -0
- data/db/migrate/20160115090243_change_plant_varieties.xml +7 -0
- data/db/migrate/20160119115401_add_shipping_note_document.xml +4 -0
- data/db/migrate/20160128093149_fixes_invalid_parent.xml +102 -0
- data/db/migrate/20160128154202_add_product_natures_protective_canvas.xml +6 -0
- data/db/migrate/20160204115942_change_protective_net_nature.xml +4 -0
- data/db/migrate/20160204122030_change_cover_implanter_abilities.xml +6 -0
- data/db/migrate/20160206163031_simplifies_activity_families.xml +135 -0
- data/db/migrate/20160207142352_fix_spelling_mistakes_on_associate_accounts.xml +7 -0
- data/db/migrate/20160210124624_fix_invalid_abilities_on_product_natures.xml +5 -0
- data/db/migrate/20160224234901_add_seedling_sorting.xml +4 -0
- data/db/migrate/20160310145038_add_rhodes_grass.xml +5 -0
- data/db/migrate/20160315152217_remove_exchange_natures.xml +4 -0
- data/db/migrate/20160402125244_add_some_heavy_equipment.xml +14 -0
- data/db/migrate/20160408223901_change_zea_variety.xml +14 -0
- data/db/migrate/20160410082230_add_chemical_classifications.xml +486 -0
- data/db/migrate/20160425100840_add_product_nature_corn_topper.xml +6 -0
- data/db/migrate/20160427115742_add_production_systems.xml +9 -0
- data/db/migrate/20160428085808_add_rows_count_indicator.xml +4 -0
- data/db/migrate/20160503131928_add_equipment_indicators.xml +34 -0
- data/db/migrate/20160503155351_fix_taxes.xml +15 -0
- data/db/migrate/20160504143733_add_units.xml +6 -0
- data/db/migrate/20160509100749_change_item_corn_topper.xml +4 -0
- data/db/migrate/20160516075201_add_plant_analysis.xml +4 -0
- data/db/migrate/20160520144901_update_plant_analysis.xml +5 -0
- data/db/migrate/20160525073342_update_spreader_trailer_product_nature.xml +4 -0
- data/db/migrate/20160526075245_update_spreader_trailer_abilities.xml +4 -0
- data/db/migrate/20160526092246_update_product_natures_and_variants_for_vegetables.xml +37 -0
- data/db/migrate/20160527090330_update_product_natures_seed.xml +5 -0
- data/db/migrate/20160531071525_add_procedure_actions.xml +6 -0
- data/db/migrate/20160531094927_add_items_for_pollination_pocedure.xml +9 -0
- data/db/migrate/20160605122001_add_worker_register.xml +4 -0
- data/db/migrate/20160608075549_update_spatial_reference_systems.xml +5437 -0
- data/db/migrate/20160608202134_add_missing_procedure_actions.xml +6 -0
- data/db/migrate/20160613154204_add_product_nature_variants_hoe_weeder.xml +6 -0
- data/db/migrate/20160615121350_add_pivots_in_nomenclature.xml +11 -0
- data/db/migrate/20160615122805_add_daily_average_working_time_indicator_and_lifespan_indicators.xml +6 -0
- data/db/migrate/20160617142409_add_items_for_hay_bales.xml +8 -0
- data/db/migrate/20160622121241_add_procedure_action_conservation_plowing.xml +4 -0
- data/db/migrate/20160624073237_add_musca_varieties.xml +5 -0
- data/db/migrate/20160627095008_add_weeding_kit.xml +5 -0
- data/db/migrate/20160630075849_update_product_nature_additive.xml +4 -0
- data/db/migrate/20160630124401_fix_coop_variants.xml +9 -0
- data/db/migrate/20160719094049_add_new_procedure_actions.xml +6 -0
- data/db/migrate/20160719100836_add_issue_nature.xml +4 -0
- data/db/migrate/20160720144130_update_equipment_varieties.xml +33 -0
- data/db/migrate/20160721124220_update_product_natures_varieties.xml +58 -0
- data/db/migrate/20160725182008_fix_abilities_on_old_equipment.xml +4 -0
- data/db/migrate/20160726173309_rename_equipments_to_equipment.xml +6 -0
- data/db/migrate/20160727092830_update_malus_pumila_variety_name.xml +4 -0
- data/db/migrate/20160802123639_update_unit_name_for_equipment_product_nature_variants.xml +39 -0
- data/db/migrate/20160816083232_add_issue_natures.xml +6 -0
- data/db/migrate/20160819082951_Add_plant_varieties.xml +10 -0
- data/db/migrate/20160829072846_add_procedure_action.xml +4 -0
- data/db/migrate/20160830153251_add_new_varieties.xml +6 -0
- data/db/migrate/20160909225801_add_missing_stock_variation_accounts.xml +17 -0
- data/db/migrate/20160911091901_update_product_nature_categories.xml +53 -0
- data/db/migrate/20160912182501_fix_product_nature_categories.xml +5 -0
- data/db/migrate/20160914114043_add_tool_maintaining_support.xml +7 -0
- data/db/migrate/20160915143142_add_pest_related_indicators.xml +5 -0
- data/db/migrate/20160919210501_add_transportation_actions.xml +4 -0
- data/db/migrate/20160928113101_add_missing_general_accounts.xml +108 -0
- data/db/migrate/20160930091201_add_missing_tax_natures.xml +17 -0
- data/db/migrate/20161017090516_fix_product_nature_categories_stock_movement_account.xml +5 -0
- data/db/migrate/20161019133613_add_ednotif_eu_country_code.xml +33 -0
- data/db/migrate/20161019145441_add_ednotif_animal_indicators.xml +22 -0
- data/db/migrate/20161022103401_add_portuguese_chart_of_account.xml +34 -0
- data/db/migrate/20161024115013_add_ednotif_indicators_to_cow_product_natures.xml +7 -0
- data/db/migrate/20161030174001_add_missing_cap_2016_varieties.xml +13 -0
- data/db/migrate/20161103111303_add_plants_sorting_action.xml +4 -0
- data/db/migrate/20161202083820_add_new_plant_varieties.xml +13 -0
- data/db/migrate/20161212181852_add_procedure_categories.xml +5 -0
- data/db/migrate/20161214093347_add_procedure_actions.xml +10 -0
- data/db/migrate/20161219171601_add_missing_vat_accounts.xml +4 -0
- data/db/migrate/20161219231801_add_outgoing_payment_report.xml +4 -0
- data/db/migrate/20170104161824_add_indicators_for_plant_analysis.xml +6 -0
- data/db/migrate/20170201180806_set_animal_group_population_counting_to_unitary.xml +23 -0
- data/db/migrate/20170203132125_update_momenclature_for_animal_housing_mulching_procedure.xml +7 -0
- data/db/migrate/20170206125311_update_nomenclature_for_animal_housing_disinfection_procedure.xml +5 -0
- data/db/migrate/20170206163322_update_disinfectant_product_variant.xml +4 -0
- data/db/migrate/20170214125925_clean_cow_indicators.xml +8 -0
- data/db/migrate/20170216100144_add_algerian_vat.xml +10 -0
- data/db/migrate/20170219210901_add_fixed_asset_registry.xml +4 -0
- data/db/migrate/20170220211447_add_procedure_category.xml +4 -0
- data/db/migrate/20170220222412_add_procedure_action.xml +4 -0
- data/db/migrate/20170221102405_add_milking_robot_in_nomenclature.xml +6 -0
- data/db/migrate/20170222113119_add_animal_varieties.xml +29 -0
- data/db/migrate/20170306154901_add_missing_outstanding_account.xml +4 -0
- data/db/migrate/20170308232701_add_fr_pcga_profit_and_loss.xml +4 -0
- data/db/migrate/20170312112401_add_fr_pcga_balance_sheet.xml +4 -0
- data/db/migrate/20170312172301_add_fr_pcg82_balance_sheet.xml +5 -0
- data/db/migrate/20170320073301_add_journal_entry_sheet.xml +8 -0
- data/db/migrate/20170320144338_add_sundry_debtors_and_creditors_usage.xml +4 -0
- data/db/migrate/20170322223101_add_loan_registry.xml +4 -0
- data/db/migrate/20170324084701_add_fixed_asset_sheet.xml +4 -0
- data/db/migrate/20170328144501_add_pnt_loan_accounts.xml +5 -0
- data/db/migrate/20170328165900_update_foliar_spray_product_nature.xml +4 -0
- data/db/migrate/20170328170000_add_indicator.xml +4 -0
- data/db/migrate/20170328170100_update_product_nature_seedling.xml +6 -0
- data/db/migrate/20170328170200_add_indicators.xml +4 -0
- data/db/migrate/20170328170300_add_indicators2.xml +4 -0
- data/db/migrate/20170328170400_update_seedling_product_natures.xml +4 -0
- data/db/migrate/20170405135101_add_account_journal_entry_sheet.xml +4 -0
- data/db/migrate/20170407214236_add_portuguese_account_config.xml +4 -0
- data/db/migrate/20170524094443_add_urtica_variety.xml +5 -0
- data/db/migrate/20170614130921_add_varieties.xml +117 -0
- data/db/migrate/20170627075545_add_varieties2.xml +37 -0
- data/db/migrate/20170627081533_add_pending_deposit_payments_account_number_for_pt_accounting_system.xml +4 -0
- data/db/migrate/20170718131724_add_issue_natures.xml +54 -0
- data/db/migrate/20170803164344_add_procedure_nature_and_category.xml +5 -0
- data/db/reference.xml +7904 -939
- data/lib/onoma/database.rb +77 -32
- data/lib/onoma/item.rb +74 -24
- data/lib/onoma/migration/actions/base.rb +1 -1
- data/lib/onoma/migration/actions/item_change.rb +5 -5
- data/lib/onoma/migration/actions/item_creation.rb +4 -4
- data/lib/onoma/migration/actions/item_merging.rb +5 -1
- data/lib/onoma/migration/actions/item_removal.rb +1 -1
- data/lib/onoma/migration/actions/nomenclature_change.rb +3 -3
- data/lib/onoma/migration/actions/nomenclature_creation.rb +4 -4
- data/lib/onoma/migration/actions/nomenclature_removal.rb +3 -3
- data/lib/onoma/migration/actions/property_creation.rb +2 -2
- data/lib/onoma/migration.rb +114 -3
- data/lib/onoma/nomenclature.rb +79 -49
- data/lib/onoma/property.rb +14 -14
- data/lib/onoma/reference.rb +1 -1
- data/lib/onoma/reflection.rb +8 -3
- data/lib/onoma/relation.rb +25 -3
- data/lib/onoma/version.rb +1 -1
- data/lib/onoma.rb +31 -62
- data/onoma.gemspec +15 -15
- metadata +123 -7
- data/lib/onoma/migration/base.rb +0 -45
- data/lib/onoma/migrator/reference.rb +0 -77
- data/lib/onoma/migrator/translation.rb +0 -30
- data/lib/onoma/migrator.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55b015115c09c944300ea5e1ef62e9c87d07c13a
|
4
|
+
data.tar.gz: 3e49dbfde36ccd8444effba2e6d1017c95bd0463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d51a324c0ffaa309e497bd2b6e6ac5e43d6021d1d37d492fae1a5a8c126c640e66c66432707a6ab4da5079dde47bf27771a3eb031952dd14fa8c7df58b76b2
|
7
|
+
data.tar.gz: bb0a0ccc9df524f9dd3d11e504005a9654c929041dcab8179c955ecdf4abc507e06630f91fa3e0e086a6abc5a6a228913991bd819ad9fae486a043c336375388
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,18 +1,16 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
3
|
require 'onoma'
|
4
4
|
|
5
5
|
Rake::TestTask.new(:test) do |t|
|
6
|
-
t.libs <<
|
7
|
-
t.libs <<
|
6
|
+
t.libs << 'test'
|
7
|
+
t.libs << 'lib'
|
8
8
|
t.test_files = FileList['test/**/*_test.rb']
|
9
9
|
end
|
10
10
|
|
11
|
-
task :
|
12
|
-
|
11
|
+
task default: :test
|
13
12
|
|
14
13
|
namespace :db do
|
15
|
-
|
16
14
|
task :list do
|
17
15
|
Onoma.all.each do |n|
|
18
16
|
if n.name.to_s.classify.tableize != n.name.to_s
|
@@ -80,8 +78,12 @@ namespace :db do
|
|
80
78
|
end
|
81
79
|
end
|
82
80
|
|
83
|
-
desc '
|
84
|
-
task migrate
|
81
|
+
desc 'Migrates data'
|
82
|
+
task :migrate do
|
83
|
+
Onoma::Migrator.migrate
|
84
|
+
end
|
85
|
+
|
86
|
+
# task migrate: 'migrate:reference'
|
85
87
|
# task :migrate do
|
86
88
|
# Onoma.missing_migrations.each do |migration|
|
87
89
|
# puts migration.name.yellow
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'onoma'
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,5 +10,5 @@ require "nomen"
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start
|