onoma 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Rakefile +11 -9
  4. data/bin/console +3 -3
  5. data/config/locales/arb.yml +6455 -4930
  6. data/config/locales/cmn.yml +7227 -0
  7. data/config/locales/deu.yml +7227 -0
  8. data/config/locales/eng.yml +2073 -534
  9. data/config/locales/fra.yml +2093 -452
  10. data/config/locales/ita.yml +7227 -0
  11. data/config/locales/jpn.yml +6412 -4887
  12. data/config/locales/por.yml +6261 -4736
  13. data/config/locales/spa.yml +6076 -4551
  14. data/db/migrate/20151211114316_add_beta_varieties.xml +1 -1
  15. data/db/migrate/20151211124757_add_allium_schoenoprasum_varieties.xml +2 -2
  16. data/db/migrate/20151211153218_add_zea_mays_varieties.xml +1 -1
  17. data/db/migrate/20151216100708_add_lifter_equipment_variants.xml +1 -1
  18. data/db/migrate/20151223164501_update_organic_fertilizer.xml +4 -0
  19. data/db/migrate/20151223171801_update_indicators.xml +4 -0
  20. data/db/migrate/20160104145418_add_matters.xml +14 -0
  21. data/db/migrate/20160104160843_change_product_nature_variants_drain.xml +4 -0
  22. data/db/migrate/20160105095120_add_plugin_cap_varieties.xml +261 -0
  23. data/db/migrate/20160106095232_add_orchard_plugin_cap_varieties.xml +405 -0
  24. data/db/migrate/20160108142009_add_product_nature_variants_nematicide.xml +6 -0
  25. data/db/migrate/20160113144856_update_prunus_avium_parent.xml +32 -0
  26. data/db/migrate/20160115090243_change_plant_varieties.xml +7 -0
  27. data/db/migrate/20160119115401_add_shipping_note_document.xml +4 -0
  28. data/db/migrate/20160128093149_fixes_invalid_parent.xml +102 -0
  29. data/db/migrate/20160128154202_add_product_natures_protective_canvas.xml +6 -0
  30. data/db/migrate/20160204115942_change_protective_net_nature.xml +4 -0
  31. data/db/migrate/20160204122030_change_cover_implanter_abilities.xml +6 -0
  32. data/db/migrate/20160206163031_simplifies_activity_families.xml +135 -0
  33. data/db/migrate/20160207142352_fix_spelling_mistakes_on_associate_accounts.xml +7 -0
  34. data/db/migrate/20160210124624_fix_invalid_abilities_on_product_natures.xml +5 -0
  35. data/db/migrate/20160224234901_add_seedling_sorting.xml +4 -0
  36. data/db/migrate/20160310145038_add_rhodes_grass.xml +5 -0
  37. data/db/migrate/20160315152217_remove_exchange_natures.xml +4 -0
  38. data/db/migrate/20160402125244_add_some_heavy_equipment.xml +14 -0
  39. data/db/migrate/20160408223901_change_zea_variety.xml +14 -0
  40. data/db/migrate/20160410082230_add_chemical_classifications.xml +486 -0
  41. data/db/migrate/20160425100840_add_product_nature_corn_topper.xml +6 -0
  42. data/db/migrate/20160427115742_add_production_systems.xml +9 -0
  43. data/db/migrate/20160428085808_add_rows_count_indicator.xml +4 -0
  44. data/db/migrate/20160503131928_add_equipment_indicators.xml +34 -0
  45. data/db/migrate/20160503155351_fix_taxes.xml +15 -0
  46. data/db/migrate/20160504143733_add_units.xml +6 -0
  47. data/db/migrate/20160509100749_change_item_corn_topper.xml +4 -0
  48. data/db/migrate/20160516075201_add_plant_analysis.xml +4 -0
  49. data/db/migrate/20160520144901_update_plant_analysis.xml +5 -0
  50. data/db/migrate/20160525073342_update_spreader_trailer_product_nature.xml +4 -0
  51. data/db/migrate/20160526075245_update_spreader_trailer_abilities.xml +4 -0
  52. data/db/migrate/20160526092246_update_product_natures_and_variants_for_vegetables.xml +37 -0
  53. data/db/migrate/20160527090330_update_product_natures_seed.xml +5 -0
  54. data/db/migrate/20160531071525_add_procedure_actions.xml +6 -0
  55. data/db/migrate/20160531094927_add_items_for_pollination_pocedure.xml +9 -0
  56. data/db/migrate/20160605122001_add_worker_register.xml +4 -0
  57. data/db/migrate/20160608075549_update_spatial_reference_systems.xml +5437 -0
  58. data/db/migrate/20160608202134_add_missing_procedure_actions.xml +6 -0
  59. data/db/migrate/20160613154204_add_product_nature_variants_hoe_weeder.xml +6 -0
  60. data/db/migrate/20160615121350_add_pivots_in_nomenclature.xml +11 -0
  61. data/db/migrate/20160615122805_add_daily_average_working_time_indicator_and_lifespan_indicators.xml +6 -0
  62. data/db/migrate/20160617142409_add_items_for_hay_bales.xml +8 -0
  63. data/db/migrate/20160622121241_add_procedure_action_conservation_plowing.xml +4 -0
  64. data/db/migrate/20160624073237_add_musca_varieties.xml +5 -0
  65. data/db/migrate/20160627095008_add_weeding_kit.xml +5 -0
  66. data/db/migrate/20160630075849_update_product_nature_additive.xml +4 -0
  67. data/db/migrate/20160630124401_fix_coop_variants.xml +9 -0
  68. data/db/migrate/20160719094049_add_new_procedure_actions.xml +6 -0
  69. data/db/migrate/20160719100836_add_issue_nature.xml +4 -0
  70. data/db/migrate/20160720144130_update_equipment_varieties.xml +33 -0
  71. data/db/migrate/20160721124220_update_product_natures_varieties.xml +58 -0
  72. data/db/migrate/20160725182008_fix_abilities_on_old_equipment.xml +4 -0
  73. data/db/migrate/20160726173309_rename_equipments_to_equipment.xml +6 -0
  74. data/db/migrate/20160727092830_update_malus_pumila_variety_name.xml +4 -0
  75. data/db/migrate/20160802123639_update_unit_name_for_equipment_product_nature_variants.xml +39 -0
  76. data/db/migrate/20160816083232_add_issue_natures.xml +6 -0
  77. data/db/migrate/20160819082951_Add_plant_varieties.xml +10 -0
  78. data/db/migrate/20160829072846_add_procedure_action.xml +4 -0
  79. data/db/migrate/20160830153251_add_new_varieties.xml +6 -0
  80. data/db/migrate/20160909225801_add_missing_stock_variation_accounts.xml +17 -0
  81. data/db/migrate/20160911091901_update_product_nature_categories.xml +53 -0
  82. data/db/migrate/20160912182501_fix_product_nature_categories.xml +5 -0
  83. data/db/migrate/20160914114043_add_tool_maintaining_support.xml +7 -0
  84. data/db/migrate/20160915143142_add_pest_related_indicators.xml +5 -0
  85. data/db/migrate/20160919210501_add_transportation_actions.xml +4 -0
  86. data/db/migrate/20160928113101_add_missing_general_accounts.xml +108 -0
  87. data/db/migrate/20160930091201_add_missing_tax_natures.xml +17 -0
  88. data/db/migrate/20161017090516_fix_product_nature_categories_stock_movement_account.xml +5 -0
  89. data/db/migrate/20161019133613_add_ednotif_eu_country_code.xml +33 -0
  90. data/db/migrate/20161019145441_add_ednotif_animal_indicators.xml +22 -0
  91. data/db/migrate/20161022103401_add_portuguese_chart_of_account.xml +34 -0
  92. data/db/migrate/20161024115013_add_ednotif_indicators_to_cow_product_natures.xml +7 -0
  93. data/db/migrate/20161030174001_add_missing_cap_2016_varieties.xml +13 -0
  94. data/db/migrate/20161103111303_add_plants_sorting_action.xml +4 -0
  95. data/db/migrate/20161202083820_add_new_plant_varieties.xml +13 -0
  96. data/db/migrate/20161212181852_add_procedure_categories.xml +5 -0
  97. data/db/migrate/20161214093347_add_procedure_actions.xml +10 -0
  98. data/db/migrate/20161219171601_add_missing_vat_accounts.xml +4 -0
  99. data/db/migrate/20161219231801_add_outgoing_payment_report.xml +4 -0
  100. data/db/migrate/20170104161824_add_indicators_for_plant_analysis.xml +6 -0
  101. data/db/migrate/20170201180806_set_animal_group_population_counting_to_unitary.xml +23 -0
  102. data/db/migrate/20170203132125_update_momenclature_for_animal_housing_mulching_procedure.xml +7 -0
  103. data/db/migrate/20170206125311_update_nomenclature_for_animal_housing_disinfection_procedure.xml +5 -0
  104. data/db/migrate/20170206163322_update_disinfectant_product_variant.xml +4 -0
  105. data/db/migrate/20170214125925_clean_cow_indicators.xml +8 -0
  106. data/db/migrate/20170216100144_add_algerian_vat.xml +10 -0
  107. data/db/migrate/20170219210901_add_fixed_asset_registry.xml +4 -0
  108. data/db/migrate/20170220211447_add_procedure_category.xml +4 -0
  109. data/db/migrate/20170220222412_add_procedure_action.xml +4 -0
  110. data/db/migrate/20170221102405_add_milking_robot_in_nomenclature.xml +6 -0
  111. data/db/migrate/20170222113119_add_animal_varieties.xml +29 -0
  112. data/db/migrate/20170306154901_add_missing_outstanding_account.xml +4 -0
  113. data/db/migrate/20170308232701_add_fr_pcga_profit_and_loss.xml +4 -0
  114. data/db/migrate/20170312112401_add_fr_pcga_balance_sheet.xml +4 -0
  115. data/db/migrate/20170312172301_add_fr_pcg82_balance_sheet.xml +5 -0
  116. data/db/migrate/20170320073301_add_journal_entry_sheet.xml +8 -0
  117. data/db/migrate/20170320144338_add_sundry_debtors_and_creditors_usage.xml +4 -0
  118. data/db/migrate/20170322223101_add_loan_registry.xml +4 -0
  119. data/db/migrate/20170324084701_add_fixed_asset_sheet.xml +4 -0
  120. data/db/migrate/20170328144501_add_pnt_loan_accounts.xml +5 -0
  121. data/db/migrate/20170328165900_update_foliar_spray_product_nature.xml +4 -0
  122. data/db/migrate/20170328170000_add_indicator.xml +4 -0
  123. data/db/migrate/20170328170100_update_product_nature_seedling.xml +6 -0
  124. data/db/migrate/20170328170200_add_indicators.xml +4 -0
  125. data/db/migrate/20170328170300_add_indicators2.xml +4 -0
  126. data/db/migrate/20170328170400_update_seedling_product_natures.xml +4 -0
  127. data/db/migrate/20170405135101_add_account_journal_entry_sheet.xml +4 -0
  128. data/db/migrate/20170407214236_add_portuguese_account_config.xml +4 -0
  129. data/db/migrate/20170524094443_add_urtica_variety.xml +5 -0
  130. data/db/migrate/20170614130921_add_varieties.xml +117 -0
  131. data/db/migrate/20170627075545_add_varieties2.xml +37 -0
  132. data/db/migrate/20170627081533_add_pending_deposit_payments_account_number_for_pt_accounting_system.xml +4 -0
  133. data/db/migrate/20170718131724_add_issue_natures.xml +54 -0
  134. data/db/migrate/20170803164344_add_procedure_nature_and_category.xml +5 -0
  135. data/db/reference.xml +7904 -939
  136. data/lib/onoma/database.rb +77 -32
  137. data/lib/onoma/item.rb +74 -24
  138. data/lib/onoma/migration/actions/base.rb +1 -1
  139. data/lib/onoma/migration/actions/item_change.rb +5 -5
  140. data/lib/onoma/migration/actions/item_creation.rb +4 -4
  141. data/lib/onoma/migration/actions/item_merging.rb +5 -1
  142. data/lib/onoma/migration/actions/item_removal.rb +1 -1
  143. data/lib/onoma/migration/actions/nomenclature_change.rb +3 -3
  144. data/lib/onoma/migration/actions/nomenclature_creation.rb +4 -4
  145. data/lib/onoma/migration/actions/nomenclature_removal.rb +3 -3
  146. data/lib/onoma/migration/actions/property_creation.rb +2 -2
  147. data/lib/onoma/migration.rb +114 -3
  148. data/lib/onoma/nomenclature.rb +79 -49
  149. data/lib/onoma/property.rb +14 -14
  150. data/lib/onoma/reference.rb +1 -1
  151. data/lib/onoma/reflection.rb +8 -3
  152. data/lib/onoma/relation.rb +25 -3
  153. data/lib/onoma/version.rb +1 -1
  154. data/lib/onoma.rb +31 -62
  155. data/onoma.gemspec +15 -15
  156. metadata +123 -7
  157. data/lib/onoma/migration/base.rb +0 -45
  158. data/lib/onoma/migrator/reference.rb +0 -77
  159. data/lib/onoma/migrator/translation.rb +0 -30
  160. data/lib/onoma/migrator.rb +0 -3
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <migration name="Add issue natures">
3
+ <item-creation item="issue_natures#alternaria" parent="fungus_disease" cause="fungus" target="plant"/>
4
+ <item-creation item="issue_natures#sclerotinia" parent="fungus_disease" cause="sclerotiniaceae" target="plant"/>
5
+ <item-creation item="issue_natures#pseudomonas_syringae" parent="bacteria_disease" cause="bacteria" target="allium_porrum"/>
6
+ <item-creation item="issue_natures#potato_mildew" parent="fungus_disease" cause="phytophthora_infestans" target="solanum_tuberosum"/>
7
+ <item-creation item="issue_natures#tomato_mildew" parent="fungus_disease" cause="phytophthora_infestans" target="solanum_lycopersicum"/>
8
+ <item-creation item="issue_natures#cereal_mildiew" parent="fungus_disease" cause="sclerophthora_macrospora" target="poaceae"/>
9
+ <item-creation item="issue_natures#carrot_mildiew" parent="fungus_disease" cause="plasmopara_nivea" target="daucus"/>
10
+ <item-creation item="issue_natures#potato_powdery_mildew" parent="fungus_disease" cause="golovinomyces_cichoracearum" target="solanum_tuberosum"/>
11
+ <item-creation item="issue_natures#carrot_powdery_mildew" parent="fungus_disease" cause="erysiphe" target="daucus"/>
12
+ <item-creation item="issue_natures#corn_helminthosporiosis" parent="fungus_disease" cause="setosphaeria_turcica" target="zea_mays"/>
13
+ <item-creation item="issue_natures#wheat_helminthosporiosis" parent="fungus_disease" cause="drechslera_tritici_repentis" target="triticum"/>
14
+ <item-creation item="issue_natures#barley_helminthosporiosis" parent="fungus_disease" cause="drechslera_graminea" target="hordeum"/>
15
+ <item-creation item="issue_natures#brown_rust" parent="fungus_disease" cause="puccinia_recondita" target="poaceae"/>
16
+ <item-creation item="issue_natures#tipburn" parent="disease" target="lactuca"/>
17
+ <item-creation item="issue_natures#rhizoctonia" parent="fungus_disease" cause="rhizoctonia" target="plant"/>
18
+ <item-creation item="issue_natures#cercosporiosis" parent="fungus_disease" cause="cercospora" target="plant"/>
19
+ <item-creation item="issue_natures#bacterial_disease" parent="bacteria_disease" target="plant"/>
20
+ <item-creation item="issue_natures#fusarium" parent="fungus_disease" cause="fusarium" target="plant"/>
21
+ <item-creation item="issue_natures#cabbage_maggot" parent="insecta_disease" cause="delia_radicum" target="brassica_oleracea"/>
22
+ <item-creation item="issue_natures#carrot_fly" parent="insecta_disease" cause="psila_rosae" target="daucus"/>
23
+ <item-creation item="issue_natures#european_corn_borer" parent="insecta_disease" cause="ostrinia_nubilalis" target="zea_mays"/>
24
+ <item-creation item="issue_natures#mediterranean_corn_borer" parent="insecta_disease" cause="sesamia_nonagrioides" target="zea_mays"/>
25
+ <item-creation item="issue_natures#cotton_bollworm" parent="insecta_disease" cause="noctuidae" target="plant"/>
26
+ <item-creation item="issue_natures#cutworm" parent="insecta_disease" cause="noctuidae" target="plant"/>
27
+ <item-creation item="issue_natures#nematoda" parent="insecta_disease" cause="nematoda" target="plant"/>
28
+ <item-creation item="issue_natures#colorado_potato_beetle" parent="insecta_disease" cause="leptinotarsa_decemlineata" target="solanum"/>
29
+ <item-creation item="issue_natures#seedcorn_maggot" parent="insecta_disease" cause="delia_platura" target="plant"/>
30
+ <item-creation item="issue_natures#european_sawfly" parent="insecta_disease" cause="hymenoptera" target="plant"/>
31
+ <item-creation item="issue_natures#flea_beetle" parent="insecta_disease" cause="alticinae" target="plant"/>
32
+ <item-creation item="issue_natures#caterpillar" parent="insecta_disease" cause="lepidoptera" target="plant"/>
33
+ <item-creation item="issue_natures#cassidinae" parent="insecta_disease" cause="cassidinae" target="plant"/>
34
+ <item-creation item="issue_natures#moth" parent="insecta_disease" cause="lepidoptera" target="plant"/>
35
+ <item-creation item="issue_natures#large_white" parent="insecta_disease" cause="pieris_brassicae" target="brassica"/>
36
+ <item-creation item="issue_natures#nightshade" parent="plant_disease" cause="solanum" target="plant"/>
37
+ <item-creation item="issue_natures#datura" parent="plant_disease" cause="solanaceae" target="plant"/>
38
+ <item-creation item="issue_natures#digitaria" parent="plant_disease" cause="digitaria" target="plant"/>
39
+ <item-creation item="issue_natures#senecio_vulgaris" parent="plant_disease" cause="senecio_vulgaris" target="plant"/>
40
+ <item-creation item="issue_natures#poa" parent="plant_disease" cause="poa" target="plant"/>
41
+ <item-creation item="issue_natures#bidens_tripartita" parent="plant_disease" cause="bidens_tripartita" target="plant"/>
42
+ <item-creation item="issue_natures#panicum" parent="plant_disease" cause="panicum" target="plant"/>
43
+ <item-creation item="issue_natures#erigeron" parent="plant_disease" cause="erigeron" target="plant"/>
44
+ <item-creation item="issue_natures#capsella" parent="plant_disease" cause="capsella" target="plant"/>
45
+ <item-creation item="issue_natures#rumex_crispus" parent="plant_disease" cause="rumex_crispus" target="plant"/>
46
+ <item-creation item="issue_natures#previous_crop_regrowth" parent="plant_disease" target="plant"/>
47
+ <item-creation item="issue_natures#vegetation_cover_regrowth" parent="plant_disease" target="plant"/>
48
+ <item-creation item="issue_natures#galium_aparine" parent="plant_disease" cause="galium_aparine" target="plant"/>
49
+ <item-creation item="issue_natures#polygonum" parent="plant_disease" cause="polygonum" target="plant"/>
50
+ <item-creation item="issue_natures#cyperus_esculentus" parent="plant_disease" cause="cyperus_ esculentus" target="plant"/>
51
+ <item-creation item="issue_natures#portulaca_oleracea" parent="plant_disease" cause="portulaca_oleracea" target="plant"/>
52
+ <item-creation item="issue_natures#sorghum_halepense" parent="plant_disease" cause="sorghum_halepense" target="plant"/>
53
+ <item-creation item="issue_natures#amaranthus" parent="plant_disease" cause="amaranthus" target="plant"/>
54
+ </migration>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <migration name="Add procedure nature and category">
3
+ <item-creation item="procedure_actions#packaging"/>
4
+ <item-creation item="procedure_categories#packaging" activity_family="processing"/>
5
+ </migration>