onoma 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -2
- data/LICENSE.md +609 -0
- data/config/locales/eng.yml +15 -0
- data/config/locales/fra.yml +15 -0
- data/lib/onoma.rb +2 -0
- data/lib/onoma/item.rb +32 -19
- data/lib/onoma/migration/actions/item_change.rb +5 -5
- data/lib/onoma/migration/actions/item_creation.rb +4 -5
- data/lib/onoma/migration/actions/nomenclature_change.rb +1 -0
- data/lib/onoma/migration/actions/nomenclature_creation.rb +8 -1
- data/lib/onoma/migration/actions/property_creation.rb +2 -1
- data/lib/onoma/migration/base.rb +1 -0
- data/lib/onoma/migrator/translation.rb +2 -1
- data/lib/onoma/nomenclature.rb +57 -24
- data/lib/onoma/nomenclature_set.rb +3 -0
- data/lib/onoma/property_nature.rb +1 -0
- data/lib/onoma/record/base.rb +4 -2
- data/lib/onoma/version.rb +1 -1
- data/onoma.gemspec +14 -12
- metadata +54 -294
- data/.gitignore +0 -13
- data/.gitlab-ci.yml +0 -14
- data/.travis.yml +0 -4
- data/LICENSE.txt +0 -21
- data/db/migrate/20150813022423_add_data.xml +0 -5740
- data/db/migrate/20150813224145_fix_zea.xml +0 -14
- data/db/migrate/20150813224155_fix_hordeum.xml +0 -175
- data/db/migrate/20150814104907_rename_charts_of_accounts.xml +0 -4
- data/db/migrate/20150817202608_rename_abaci.xml +0 -19
- data/db/migrate/20150818132801_add_vinifera_product_exchangers.xml +0 -4
- data/db/migrate/20150818152001_add_wine_bottles.xml +0 -13
- data/db/migrate/20150818232501_add_vinifera_sale_exchangers.xml +0 -4
- data/db/migrate/20150820212931_remove_abaci.xml +0 -19
- data/db/migrate/20150821082601_add_grain_variants.xml +0 -4
- data/db/migrate/20150821230800_rename_invalid_document_natures.xml +0 -12
- data/db/migrate/20150825180658_add_production_usages.xml +0 -5
- data/db/migrate/20150826091319_add_leguminous_crop.xml +0 -11
- data/db/migrate/20150826092813_add_cannabis_varieties.xml +0 -51
- data/db/migrate/20150826100013_add_thicket_varieties.xml +0 -9
- data/db/migrate/20150826103353_add_eis_plant.xml +0 -31
- data/db/migrate/20150902081701_add_garden_varieties.xml +0 -7
- data/db/migrate/20150905094701_add_milklic_individual_production_exchangers.xml +0 -4
- data/db/migrate/20150914095928_add_meteorological_analysis_nature.xml +0 -46
- data/db/migrate/20150916110501_add_grain_analysis.xml +0 -5
- data/db/migrate/20150916151652_fix_product_nature_variant_units.xml +0 -515
- data/db/migrate/20150919123840_fix_plant_varieties.xml +0 -36
- data/db/migrate/20150919223801_change_walnut_nature.xml +0 -6
- data/db/migrate/20150920212201_add_fruit_harvest.xml +0 -4
- data/db/migrate/20150921104001_add_fuel_consumption_indicator.xml +0 -7
- data/db/migrate/20150921110601_add_crumbs_exchangers.xml +0 -4
- data/db/migrate/20150921175601_add_units_liter_per_hour.xml +0 -4
- data/db/migrate/20151001154701_add_missing_variants.xml +0 -9
- data/db/migrate/20151019090110_add_json_exchange_natures.xml +0 -11
- data/db/migrate/20151021172901_add_missing_indicator_on_animals.xml +0 -12
- data/db/migrate/20151027095601_add_missing_issue_natures.xml +0 -6
- data/db/migrate/20151102110723_add_daily_nitrogen_production_indicator.xml +0 -4
- data/db/migrate/20151107122501_add_cap_statements_exchangers.xml +0 -4
- data/db/migrate/20151111212501_add_missing_cap_productions.xml +0 -15
- data/db/migrate/20151117192943_change_procedure_nomenclatures.xml +0 -159
- data/db/migrate/20151122101101_add_missing_tropical_cap_varieties.xml +0 -33
- data/db/migrate/20151125163801_add_missing_varieties.xml +0 -7
- data/db/migrate/20151209000401_add_missing_crop_sets.xml +0 -12
- data/db/migrate/20151209011801_add_missing_varieties.xml +0 -45
- data/db/migrate/20151209094701_add_oleaginous_missing_varieties.xml +0 -11
- data/db/migrate/20151209103601_add_proteaginous_missing_varieties.xml +0 -6
- data/db/migrate/20151210150144_add_daucus_carota_varieties.xml +0 -38
- data/db/migrate/20151210163440_add_phaseolus_varieties.xml +0 -11
- data/db/migrate/20151210164511_add_allium_porrum_varieties.xml +0 -13
- data/db/migrate/20151210170103_add_allium_cepa_varieties.xml +0 -6
- data/db/migrate/20151211114316_add_beta_varieties.xml +0 -4
- data/db/migrate/20151211115500_add_brassica_varieties.xml +0 -50
- data/db/migrate/20151211124757_add_allium_schoenoprasum_varieties.xml +0 -4
- data/db/migrate/20151211132045_add_cucurbita_varieties.xml +0 -13
- data/db/migrate/20151211143806_add_spinacia_oleracea_varieties.xml +0 -5
- data/db/migrate/20151211151402_add_lactuca_varieties.xml +0 -6
- data/db/migrate/20151211153218_add_zea_mays_varieties.xml +0 -46
- data/db/migrate/20151214084817_add_hordeum_varieties.xml +0 -5
- data/db/migrate/20151214085342_add_pastinaca_sativa_varieties.xml +0 -4
- data/db/migrate/20151214085721_add_pisum_sativum_varieties.xml +0 -8
- data/db/migrate/20151214090420_add_solanum_tuberosum_varieties.xml +0 -4
- data/db/migrate/20151214091020_add_raphanus_varieties.xml +0 -8
- data/db/migrate/20151214092727_add_glycine_max_varieties.xml +0 -4
- data/db/migrate/20151215132825_add_abilities.xml +0 -7
- data/db/migrate/20151215133320_add_equipment_variants.xml +0 -43
- data/db/migrate/20151215214901_add_openwheatermap_identifiers.xml +0 -5
- data/db/migrate/20151216095351_add_ridger_equipment_variants.xml +0 -4
- data/db/migrate/20151216100708_add_lifter_equipment_variants.xml +0 -4
- data/db/migrate/20151216160914_add_raphanus_sativus_varieties.xml +0 -4
- data/db/migrate/20151216182551_add_more_units.xml +0 -7
- data/db/migrate/20151218081701_add_crops_issue_natures.xml +0 -11
- data/db/migrate/20151222162657_add_varieties.xml +0 -18
- data/db/migrate/20151222180021_remove_population.xml +0 -402
- data/db/migrate/20151223164501_update_organic_fertilizer.xml +0 -4
- data/db/migrate/20151223171801_update_indicators.xml +0 -4
- data/db/migrate/20160104145418_add_matters.xml +0 -14
- data/db/migrate/20160104160843_change_product_nature_variants_drain.xml +0 -4
- data/db/migrate/20160105095120_add_plugin_cap_varieties.xml +0 -261
- data/db/migrate/20160106095232_add_orchard_plugin_cap_varieties.xml +0 -405
- data/db/migrate/20160108142009_add_product_nature_variants_nematicide.xml +0 -6
- data/db/migrate/20160113144856_update_prunus_avium_parent.xml +0 -32
- data/db/migrate/20160115090243_change_plant_varieties.xml +0 -7
- data/db/migrate/20160119115401_add_shipping_note_document.xml +0 -4
- data/db/migrate/20160128093149_fixes_invalid_parent.xml +0 -102
- data/db/migrate/20160128154202_add_product_natures_protective_canvas.xml +0 -6
- data/db/migrate/20160204115942_change_protective_net_nature.xml +0 -4
- data/db/migrate/20160204122030_change_cover_implanter_abilities.xml +0 -6
- data/db/migrate/20160206163031_simplifies_activity_families.xml +0 -135
- data/db/migrate/20160207142352_fix_spelling_mistakes_on_associate_accounts.xml +0 -7
- data/db/migrate/20160210124624_fix_invalid_abilities_on_product_natures.xml +0 -5
- data/db/migrate/20160224234901_add_seedling_sorting.xml +0 -4
- data/db/migrate/20160310145038_add_rhodes_grass.xml +0 -5
- data/db/migrate/20160315152217_remove_exchange_natures.xml +0 -4
- data/db/migrate/20160402125244_add_some_heavy_equipment.xml +0 -14
- data/db/migrate/20160408223901_change_zea_variety.xml +0 -14
- data/db/migrate/20160410082230_add_chemical_classifications.xml +0 -486
- data/db/migrate/20160425100840_add_product_nature_corn_topper.xml +0 -6
- data/db/migrate/20160427115742_add_production_systems.xml +0 -9
- data/db/migrate/20160428085808_add_rows_count_indicator.xml +0 -4
- data/db/migrate/20160503131928_add_equipment_indicators.xml +0 -34
- data/db/migrate/20160503155351_fix_taxes.xml +0 -15
- data/db/migrate/20160504143733_add_units.xml +0 -6
- data/db/migrate/20160509100749_change_item_corn_topper.xml +0 -4
- data/db/migrate/20160516075201_add_plant_analysis.xml +0 -4
- data/db/migrate/20160520144901_update_plant_analysis.xml +0 -5
- data/db/migrate/20160525073342_update_spreader_trailer_product_nature.xml +0 -4
- data/db/migrate/20160526075245_update_spreader_trailer_abilities.xml +0 -4
- data/db/migrate/20160526092246_update_product_natures_and_variants_for_vegetables.xml +0 -37
- data/db/migrate/20160527090330_update_product_natures_seed.xml +0 -5
- data/db/migrate/20160531071525_add_procedure_actions.xml +0 -6
- data/db/migrate/20160531094927_add_items_for_pollination_pocedure.xml +0 -9
- data/db/migrate/20160605122001_add_worker_register.xml +0 -4
- data/db/migrate/20160608075549_update_spatial_reference_systems.xml +0 -5437
- data/db/migrate/20160608202134_add_missing_procedure_actions.xml +0 -6
- data/db/migrate/20160613154204_add_product_nature_variants_hoe_weeder.xml +0 -6
- data/db/migrate/20160615121350_add_pivots_in_nomenclature.xml +0 -11
- data/db/migrate/20160615122805_add_daily_average_working_time_indicator_and_lifespan_indicators.xml +0 -6
- data/db/migrate/20160617142409_add_items_for_hay_bales.xml +0 -8
- data/db/migrate/20160622121241_add_procedure_action_conservation_plowing.xml +0 -4
- data/db/migrate/20160624073237_add_musca_varieties.xml +0 -5
- data/db/migrate/20160627095008_add_weeding_kit.xml +0 -5
- data/db/migrate/20160630075849_update_product_nature_additive.xml +0 -4
- data/db/migrate/20160630124401_fix_coop_variants.xml +0 -9
- data/db/migrate/20160719094049_add_new_procedure_actions.xml +0 -6
- data/db/migrate/20160719100836_add_issue_nature.xml +0 -4
- data/db/migrate/20160720144130_update_equipment_varieties.xml +0 -33
- data/db/migrate/20160721124220_update_product_natures_varieties.xml +0 -58
- data/db/migrate/20160725182008_fix_abilities_on_old_equipment.xml +0 -4
- data/db/migrate/20160726173309_rename_equipments_to_equipment.xml +0 -6
- data/db/migrate/20160727092830_update_malus_pumila_variety_name.xml +0 -4
- data/db/migrate/20160802123639_update_unit_name_for_equipment_product_nature_variants.xml +0 -39
- data/db/migrate/20160816083232_add_issue_natures.xml +0 -6
- data/db/migrate/20160819082951_Add_plant_varieties.xml +0 -10
- data/db/migrate/20160829072846_add_procedure_action.xml +0 -4
- data/db/migrate/20160830153251_add_new_varieties.xml +0 -6
- data/db/migrate/20160909225801_add_missing_stock_variation_accounts.xml +0 -17
- data/db/migrate/20160911091901_update_product_nature_categories.xml +0 -53
- data/db/migrate/20160912182501_fix_product_nature_categories.xml +0 -5
- data/db/migrate/20160914114043_add_tool_maintaining_support.xml +0 -7
- data/db/migrate/20160915143142_add_pest_related_indicators.xml +0 -5
- data/db/migrate/20160919210501_add_transportation_actions.xml +0 -4
- data/db/migrate/20160928113101_add_missing_general_accounts.xml +0 -108
- data/db/migrate/20160930091201_add_missing_tax_natures.xml +0 -17
- data/db/migrate/20161017090516_fix_product_nature_categories_stock_movement_account.xml +0 -5
- data/db/migrate/20161019133613_add_ednotif_eu_country_code.xml +0 -33
- data/db/migrate/20161019145441_add_ednotif_animal_indicators.xml +0 -22
- data/db/migrate/20161022103401_add_portuguese_chart_of_account.xml +0 -34
- data/db/migrate/20161024115013_add_ednotif_indicators_to_cow_product_natures.xml +0 -7
- data/db/migrate/20161030174001_add_missing_cap_2016_varieties.xml +0 -13
- data/db/migrate/20161103111303_add_plants_sorting_action.xml +0 -4
- data/db/migrate/20161202083820_add_new_plant_varieties.xml +0 -13
- data/db/migrate/20161212181852_add_procedure_categories.xml +0 -5
- data/db/migrate/20161214093347_add_procedure_actions.xml +0 -10
- data/db/migrate/20161219171601_add_missing_vat_accounts.xml +0 -4
- data/db/migrate/20161219231801_add_outgoing_payment_report.xml +0 -4
- data/db/migrate/20170104161824_add_indicators_for_plant_analysis.xml +0 -6
- data/db/migrate/20170201180806_set_animal_group_population_counting_to_unitary.xml +0 -23
- data/db/migrate/20170203132125_update_momenclature_for_animal_housing_mulching_procedure.xml +0 -7
- data/db/migrate/20170206125311_update_nomenclature_for_animal_housing_disinfection_procedure.xml +0 -5
- data/db/migrate/20170206163322_update_disinfectant_product_variant.xml +0 -4
- data/db/migrate/20170214125925_clean_cow_indicators.xml +0 -8
- data/db/migrate/20170216100144_add_algerian_vat.xml +0 -10
- data/db/migrate/20170219210901_add_fixed_asset_registry.xml +0 -4
- data/db/migrate/20170220211447_add_procedure_category.xml +0 -4
- data/db/migrate/20170220222412_add_procedure_action.xml +0 -4
- data/db/migrate/20170221102405_add_milking_robot_in_nomenclature.xml +0 -6
- data/db/migrate/20170222113119_add_animal_varieties.xml +0 -29
- data/db/migrate/20170306154901_add_missing_outstanding_account.xml +0 -4
- data/db/migrate/20170308232701_add_fr_pcga_profit_and_loss.xml +0 -4
- data/db/migrate/20170312112401_add_fr_pcga_balance_sheet.xml +0 -4
- data/db/migrate/20170312172301_add_fr_pcg82_balance_sheet.xml +0 -5
- data/db/migrate/20170320073301_add_journal_entry_sheet.xml +0 -8
- data/db/migrate/20170320144338_add_sundry_debtors_and_creditors_usage.xml +0 -4
- data/db/migrate/20170322223101_add_loan_registry.xml +0 -4
- data/db/migrate/20170324084701_add_fixed_asset_sheet.xml +0 -4
- data/db/migrate/20170328144501_add_pnt_loan_accounts.xml +0 -5
- data/db/migrate/20170328165900_update_foliar_spray_product_nature.xml +0 -4
- data/db/migrate/20170328170000_add_indicator.xml +0 -4
- data/db/migrate/20170328170100_update_product_nature_seedling.xml +0 -6
- data/db/migrate/20170328170200_add_indicators.xml +0 -4
- data/db/migrate/20170328170300_add_indicators2.xml +0 -4
- data/db/migrate/20170328170400_update_seedling_product_natures.xml +0 -4
- data/db/migrate/20170405135101_add_account_journal_entry_sheet.xml +0 -4
- data/db/migrate/20170407214236_add_portuguese_account_config.xml +0 -4
- data/db/migrate/20170524094443_add_urtica_variety.xml +0 -5
- data/db/migrate/20170614130921_add_varieties.xml +0 -117
- data/db/migrate/20170627075545_add_varieties2.xml +0 -37
- data/db/migrate/20170627081533_add_pending_deposit_payments_account_number_for_pt_accounting_system.xml +0 -4
- data/db/migrate/20170718131724_add_issue_natures.xml +0 -54
- data/db/migrate/20170803164344_add_procedure_nature_and_category.xml +0 -5
- data/db/migrate/20170904223101_add_cultivable_zone_registry.xml +0 -4
- data/db/migrate/20170914083358_add_new_product_nature_variants.xml +0 -14
- data/db/migrate/20170927144852_add_kiwi_varieties.xml +0 -7
- data/db/migrate/20171106085357_update_account_numbers.xml +0 -431
- data/db/migrate/20171212081801_add_fiscal_positions.xml +0 -12
- data/db/migrate/20180408190101_add_new_plant_variants.xml +0 -7
- data/db/migrate/20180409130101_add_common_crop.xml +0 -4
- data/db/migrate/20180418085027_add-hour-counter-indicator.xml +0 -9
- data/db/migrate/20180709134310_add_centralizing_field_to_accounts.xml +0 -22
- data/db/migrate/20180711093131_review_all_accounts_number_and_fallbacks.xml +0 -431
- data/db/migrate/20180806080646_edit_centralizing_field_accounts.xml +0 -17
- data/db/migrate/20180814184001_add_missing_categories.xml +0 -12
- data/db/migrate/20180907160001_edit_accounts_to_unlock_first_run.xml +0 -21
- data/db/migrate/20181004220301_add_journal_ledger.xml +0 -4
- data/db/migrate/20181205162401_add_intra_vat.xml +0 -6
- data/db/migrate/20181213153405_fix_accounting_systems.xml +0 -7
- data/db/migrate/20181217155149_fiscal_position_refers_to_accounting_system.xml +0 -10
- data/db/migrate/20181217173101_fiscal_position_reference_typo.xml +0 -4
- data/db/migrate/20190315154040_add_suspense_account.xml +0 -4
- data/db/migrate/20190326110849_add_asset_fixable_to_product_nature_categories.xml +0 -25
- data/db/migrate/20190326135443_change_product_nature_category_cultivable_zone_into_land.xml +0 -21
- data/db/migrate/20190329133808_change_land_fixed_assets_account_usage.xml +0 -7
- data/db/migrate/20190405120711_delete_land_sales_account_and_assign_land_parcels_sell_revenues_to_land.xml +0 -5
- data/db/migrate/20190412071057_add_new_fixed_assets_andn_depreciable_accounts.xml +0 -22
- data/db/migrate/20190509092804_add_account_exceptional_depreciations_imputations_expenses_for_fixed_assets.xml +0 -4
- data/db/migrate/20190514084753_add_approved_input_volume.xml +0 -9
- data/db/migrate/20190520072403_add_new_accounts.xml +0 -58
- data/db/migrate/20190521170601_add_missing_taxes.xml +0 -7
- data/db/migrate/20190611101014_change_deductible_vat_account.xml +0 -5
- data/db/migrate/20190620092151_fix_conflicts_in_new_accounts.xml +0 -6
- data/db/migrate/20190625152636_change_mixture_seed_product_nature_variant.xml +0 -4
- data/db/migrate/20190718130243_remove_services_expenses.xml +0 -5
- data/db/migrate/20190801142431_remove_accounts_from_pcg82.xml +0 -5
- data/db/migrate/20190807125202_add_nature_to_product_natures.xml +0 -326
- data/db/migrate/20190823091727_fix-cubic-meter-per-hectare-symbol.xml +0 -5
- data/db/migrate/20190909150402_add_staff_supply_stock_account.xml +0 -4
- data/db/migrate/20190913102036_add_caliber_indicator.xml +0 -4
- data/db/migrate/20190917161215_add_missing_mass_area_density_units.xml +0 -21
- data/db/migrate/20190917161216_update_quintal_symbol.xml +0 -4
- data/db/migrate/20190917161217_adds_more_info_to_units.xml +0 -133
- data/db/migrate/20190918074757_add_new_accounts.xml +0 -8
- data/db/migrate/20191001122750_add_accounts_fixed_assets_related.xml +0 -10
- data/db/migrate/20191016152118_add_missing_document_templates.xml +0 -6
- data/db/migrate/20191028175001_add_short_balance_sheet.xml +0 -4
- data/db/migrate/20191029131921_add_vine_equipments.xml +0 -117
- data/db/migrate/20191112132413_remove_roller_from_product_natures.xml +0 -5
- data/db/migrate/20191113134626_add_nature_to_new_product_natures.xml +0 -11
- data/db/migrate/20191125133327_add_missing_units_and_indicators.xml +0 -5
- data/db/migrate/20200107095554_add_signed_field_to_document_nature.xml +0 -9
- data/db/migrate/20200305160358_add_varieties_for_phytosanitary.xml +0 -11
- data/db/migrate/20200421123503_add_type_to_categories_and_variants.xml +0 -1136
- data/db/migrate/20200514092205_add_liter_per_hectoliter_unit.xml +0 -4
- data/db/migrate/20200722091859_triticale_derivative_of.xml +0 -5
- data/db/migrate/20200826000010_add_area_units.xml +0 -4
- data/db/migrate/20200826000020_change_trailer_indicators.xml +0 -5
- data/db/migrate/20200826000030_add_new_production_systems.xml +0 -6
- data/db/migrate/20200826000040_add_viti_abilities.xml +0 -6
- data/db/migrate/20200826000060_create_vine_farming_activity_famillies.xml +0 -4
- data/db/migrate/20200826000070_remove_certifications_and_vitis_varieties.xml +0 -55
- data/db/migrate/20200826000080_add_new_indicators.xml +0 -14
- data/db/migrate/20200826000100_add_viti_procedure_actions.xml +0 -19
- data/db/migrate/20200826000110_add_vine_puning_systems.xml +0 -9
- data/db/migrate/20200826000120_add_vine_procedure_categories.xml +0 -10
- data/db/migrate/20200826000130_update_viti_product_nauture_variant.xml +0 -10
- data/db/migrate/20200925153320_fix_outgoing_payment_list_document_nature.xml +0 -7
- data/db/reference.xml +0 -12922
data/lib/onoma/nomenclature.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# rubocop:disable Style/MissingRespondToMissing
|
1
2
|
module Onoma
|
2
3
|
# This class represents a nomenclature
|
3
4
|
class Nomenclature
|
@@ -67,7 +68,18 @@ module Onoma
|
|
67
68
|
properties = @properties.values
|
68
69
|
CSV.open(file, 'wb') do |csv|
|
69
70
|
csv << [:name] + properties.map do |p|
|
70
|
-
suffix =
|
71
|
+
suffix = if p.decimal?
|
72
|
+
' D'
|
73
|
+
elsif p.integer?
|
74
|
+
' I'
|
75
|
+
elsif p.boolean?
|
76
|
+
' B'
|
77
|
+
elsif p.item?
|
78
|
+
" R(#{p.choices_nomenclature})"
|
79
|
+
else
|
80
|
+
''
|
81
|
+
end
|
82
|
+
|
71
83
|
"#{p.name}#{suffix}"
|
72
84
|
end
|
73
85
|
@items.values.each do |i|
|
@@ -95,6 +107,7 @@ module Onoma
|
|
95
107
|
parent = attributes[:parent] || (element.key?('parent') ? element['parent'] : nil)
|
96
108
|
attributes = element.attributes.each_with_object(HashWithIndifferentAccess.new) do |(k, v), h|
|
97
109
|
next if %w[name parent].include?(k)
|
110
|
+
|
98
111
|
h[k] = cast_property(k, v.to_s)
|
99
112
|
end
|
100
113
|
attributes[:parent] = parent if parent
|
@@ -132,12 +145,13 @@ module Onoma
|
|
132
145
|
elsif element.has_attribute?('nomenclature')
|
133
146
|
options[:choices] = element.attr('nomenclature').to_s.strip.to_sym
|
134
147
|
else
|
135
|
-
raise MissingChoices
|
148
|
+
raise MissingChoices.new("[#{@name}] Property #{name} must have nomenclature as choices")
|
136
149
|
end
|
137
150
|
end
|
138
151
|
unless Onoma::PROPERTY_TYPES.include?(type)
|
139
|
-
raise ArgumentError
|
152
|
+
raise ArgumentError.new("Property #{name} type is unknown: #{type.inspect}")
|
140
153
|
end
|
154
|
+
|
141
155
|
add_property(name, type, options)
|
142
156
|
end
|
143
157
|
|
@@ -147,6 +161,7 @@ module Onoma
|
|
147
161
|
if @items[i.name]
|
148
162
|
raise "Item #{i.name} is already defined in nomenclature #{@name}"
|
149
163
|
end
|
164
|
+
|
150
165
|
@items[i.name] = i
|
151
166
|
@roots << i unless i.parent?
|
152
167
|
i.rebuild_tree! unless options[:rebuild].is_a?(FalseClass)
|
@@ -161,6 +176,7 @@ module Onoma
|
|
161
176
|
new_name = changes[:name]
|
162
177
|
changes.each do |k, v|
|
163
178
|
next if %i[parent name].include? k
|
179
|
+
|
164
180
|
i.set(k, v)
|
165
181
|
end
|
166
182
|
if has_parent
|
@@ -176,6 +192,7 @@ module Onoma
|
|
176
192
|
if @items[new_name]
|
177
193
|
raise "Item #{new_name} is already defined in nomenclature #{@name}. Use merging instead."
|
178
194
|
end
|
195
|
+
|
179
196
|
i = find!(name)
|
180
197
|
i.children.each do |child|
|
181
198
|
child.parent_name = new_name
|
@@ -191,6 +208,7 @@ module Onoma
|
|
191
208
|
def cascade_item_renaming(name, new_name)
|
192
209
|
@set.references.each do |reference|
|
193
210
|
next unless reference.foreign_nomenclature == self
|
211
|
+
|
194
212
|
p = reference.property
|
195
213
|
if p.list?
|
196
214
|
reference.nomenclature.find_each do |item|
|
@@ -232,6 +250,7 @@ module Onoma
|
|
232
250
|
if @properties[p.name]
|
233
251
|
raise "Property #{p.name} is already defined in nomenclature #{@name}"
|
234
252
|
end
|
253
|
+
|
235
254
|
@properties[p.name] = p
|
236
255
|
@references = nil
|
237
256
|
p
|
@@ -245,11 +264,11 @@ module Onoma
|
|
245
264
|
# Check properties
|
246
265
|
@properties.values.each do |property|
|
247
266
|
if property.choices_nomenclature && !property.inline_choices? && !Onoma[property.choices_nomenclature.to_s]
|
248
|
-
raise InvalidPropertyNature
|
267
|
+
raise InvalidPropertyNature.new("[#{name}] #{property.name} nomenclature property must refer to an existing nomenclature. Got #{property.choices_nomenclature.inspect}. Expecting: #{Onoma.names.inspect}")
|
249
268
|
end
|
250
269
|
next unless property.type == :choice && property.default
|
251
270
|
unless property.choices.include?(property.default)
|
252
|
-
raise InvalidPropertyNature
|
271
|
+
raise InvalidPropertyNature.new("The default choice #{property.default.inspect} is invalid (in #{name}##{property.name}). Pick one from #{property.choices.sort.inspect}.")
|
253
272
|
end
|
254
273
|
end
|
255
274
|
|
@@ -261,16 +280,16 @@ module Onoma
|
|
261
280
|
# Cleans for parametric reference
|
262
281
|
name = item.property(property.name).to_s.split(/\(/).first.to_sym
|
263
282
|
unless choices.include?(name)
|
264
|
-
raise InvalidProperty
|
283
|
+
raise InvalidProperty.new("The given choice #{name.inspect} is invalid (in #{self.name}##{item.name}). Pick one from #{choices.sort.inspect}.")
|
265
284
|
end
|
266
285
|
elsif item.property(property.name) && property.type == :list && property.choices_nomenclature
|
267
|
-
|
286
|
+
(item.property(property.name) || []).each { |name|
|
268
287
|
# Cleans for parametric reference
|
269
288
|
name = name.to_s.split(/\(/).first.to_sym
|
270
289
|
unless choices.include?(name)
|
271
|
-
raise InvalidProperty
|
290
|
+
raise InvalidProperty.new("The given choice #{name.inspect} is invalid (in #{self.name}##{item.name}). Pick one from #{choices.sort.inspect}.")
|
272
291
|
end
|
273
|
-
|
292
|
+
}
|
274
293
|
end
|
275
294
|
end
|
276
295
|
end
|
@@ -300,6 +319,7 @@ module Onoma
|
|
300
319
|
def human_name(options = {})
|
301
320
|
I18n.t("nomenclatures.#{Onoma.escape_key(name)}.name", options.merge(default: ["labels.#{Onoma.escape_key(name)}".to_sym, name.to_s.humanize]))
|
302
321
|
end
|
322
|
+
|
303
323
|
alias humanize human_name
|
304
324
|
|
305
325
|
def new_boundaries(count = 2)
|
@@ -328,6 +348,7 @@ module Onoma
|
|
328
348
|
@items.keys.sort
|
329
349
|
end
|
330
350
|
end
|
351
|
+
|
331
352
|
alias all to_a
|
332
353
|
|
333
354
|
def <=>(other)
|
@@ -349,24 +370,21 @@ module Onoma
|
|
349
370
|
# Returns a list for select as an array of pair (array)
|
350
371
|
def selection(item_name = nil)
|
351
372
|
items = (item_name ? find!(item_name).self_and_children : @items.values)
|
352
|
-
items.
|
353
|
-
|
354
|
-
end.sort do |a, b|
|
355
|
-
a.first.lower_ascii <=> b.first.lower_ascii
|
356
|
-
end
|
373
|
+
items.map { |item| [item.human_name, item.name.to_s] }
|
374
|
+
.sort { |a, b| a.first.lower_ascii <=> b.first.lower_ascii }
|
357
375
|
end
|
358
376
|
|
359
377
|
# Returns a list for select as an array of pair (hash)
|
360
378
|
def selection_hash(item_name = nil)
|
361
379
|
items = (item_name ? find!(item_name).self_and_children : @items.values)
|
362
|
-
items.
|
363
|
-
|
364
|
-
end.sort { |a, b| a[:label].lower_ascii <=> b[:label].lower_ascii }
|
380
|
+
items.map { |item| { label: item.human_name, value: item.name } }
|
381
|
+
.sort { |a, b| a[:label].lower_ascii <=> b[:label].lower_ascii }
|
365
382
|
end
|
366
383
|
|
367
384
|
# Returns a list for select, without specified items
|
368
385
|
def select_without(already_imported)
|
369
386
|
ActiveSupport::Deprecation.warn 'Onoma::Nomenclature#select_without method is deprecated. Please use Onoma::Nomenclature#without method instead.'
|
387
|
+
|
370
388
|
select_options = @items.values.collect do |item|
|
371
389
|
[item.human_name, item.name.to_s] unless already_imported[item.name.to_s]
|
372
390
|
end
|
@@ -395,13 +413,15 @@ module Onoma
|
|
395
413
|
def find(item_name)
|
396
414
|
@items[item_name]
|
397
415
|
end
|
416
|
+
|
398
417
|
alias item find
|
399
418
|
|
400
419
|
# Return the Item for the given name. Raises Onoma::ItemNotFound if no item
|
401
420
|
# found in nomenclature
|
402
421
|
def find!(item_name)
|
403
422
|
i = find(item_name)
|
404
|
-
raise ItemNotFound
|
423
|
+
raise ItemNotFound.new("Cannot find item #{item_name.inspect} in #{name}") unless i
|
424
|
+
|
405
425
|
i
|
406
426
|
end
|
407
427
|
|
@@ -412,6 +432,7 @@ module Onoma
|
|
412
432
|
def exists?(item)
|
413
433
|
@items[item.respond_to?(:name) ? item.name : item].present?
|
414
434
|
end
|
435
|
+
|
415
436
|
alias include? exists?
|
416
437
|
|
417
438
|
def property(property_name)
|
@@ -439,8 +460,8 @@ module Onoma
|
|
439
460
|
value.each do |val|
|
440
461
|
if val.is_a?(Onoma::Item)
|
441
462
|
one_found = true if item_value == val.name.to_sym
|
442
|
-
|
443
|
-
one_found = true
|
463
|
+
elsif item_value == val
|
464
|
+
one_found = true
|
444
465
|
end
|
445
466
|
end
|
446
467
|
valid = false unless one_found
|
@@ -464,6 +485,7 @@ module Onoma
|
|
464
485
|
def find_by(properties)
|
465
486
|
items = where(properties)
|
466
487
|
return nil unless items.any?
|
488
|
+
|
467
489
|
items.first
|
468
490
|
end
|
469
491
|
|
@@ -475,6 +497,7 @@ module Onoma
|
|
475
497
|
items << item if item.property(property_name) == searched_item.name
|
476
498
|
end
|
477
499
|
break if items.any?
|
500
|
+
|
478
501
|
searched_item = searched_item.parent
|
479
502
|
end while searched_item
|
480
503
|
items
|
@@ -487,6 +510,7 @@ module Onoma
|
|
487
510
|
|
488
511
|
def cast_options(options)
|
489
512
|
return {} if options.nil?
|
513
|
+
|
490
514
|
options.each_with_object({}) do |(k, v), h|
|
491
515
|
h[k.to_sym] = if properties[k]
|
492
516
|
cast_property(k, v.to_s)
|
@@ -501,13 +525,20 @@ module Onoma
|
|
501
525
|
if property = properties[name]
|
502
526
|
if property.type == :choice || property.type == :item
|
503
527
|
if value =~ /\,/
|
504
|
-
raise InvalidPropertyNature
|
528
|
+
raise InvalidPropertyNature.new('A property nature of choice type cannot contain commas')
|
505
529
|
end
|
530
|
+
|
506
531
|
value = value.strip.to_sym
|
507
532
|
elsif property.list?
|
508
533
|
value = value.strip.split(/[[:space:]]*\,[[:space:]]*/).map(&:to_sym)
|
509
534
|
elsif property.type == :boolean
|
510
|
-
value =
|
535
|
+
value = if value == 'true'
|
536
|
+
true
|
537
|
+
elsif value == 'false'
|
538
|
+
false
|
539
|
+
else
|
540
|
+
nil
|
541
|
+
end
|
511
542
|
elsif property.type == :decimal
|
512
543
|
value = BigDecimal(value)
|
513
544
|
elsif property.type == :integer
|
@@ -516,14 +547,16 @@ module Onoma
|
|
516
547
|
value = (value.blank? ? nil : Date.parse(value))
|
517
548
|
elsif property.type == :symbol
|
518
549
|
unless value =~ /\A\w+\z/
|
519
|
-
raise InvalidPropertyNature
|
550
|
+
raise InvalidPropertyNature.new("A property '#{name}' must contains a symbol. /[a-z0-9_]/ accepted. No spaces. Got #{value.inspect}")
|
520
551
|
end
|
552
|
+
|
521
553
|
value = value.to_sym
|
522
554
|
end
|
523
555
|
elsif !%w[name parent aliases].include?(name.to_s)
|
524
|
-
raise ArgumentError
|
556
|
+
raise ArgumentError.new("Undefined property '#{name}' in #{@name}")
|
525
557
|
end
|
526
558
|
value
|
527
559
|
end
|
528
560
|
end
|
529
561
|
end
|
562
|
+
# rubocop:enable Style/MissingRespondToMissing
|
@@ -62,6 +62,7 @@ module Onoma
|
|
62
62
|
unless nomenclature = @nomenclatures[name]
|
63
63
|
raise "Nomenclature #{name} does not exist"
|
64
64
|
end
|
65
|
+
|
65
66
|
nomenclature
|
66
67
|
end
|
67
68
|
|
@@ -119,6 +120,7 @@ module Onoma
|
|
119
120
|
|
120
121
|
def add_nomenclature(name, options = {})
|
121
122
|
raise "Nomenclature #{name} already exists" if @nomenclatures[name]
|
123
|
+
|
122
124
|
options[:set] = self
|
123
125
|
@nomenclatures[name] = Nomenclature.new(name, options)
|
124
126
|
end
|
@@ -128,6 +130,7 @@ module Onoma
|
|
128
130
|
raise "Nomenclature #{old_name} does not exist"
|
129
131
|
end
|
130
132
|
raise "Nomenclature #{new_name} already exists" if @nomenclatures[new_name]
|
133
|
+
|
131
134
|
@nomenclatures[new_name] = @nomenclatures.delete(old_name)
|
132
135
|
@nomenclatures[new_name]
|
133
136
|
end
|
@@ -8,6 +8,7 @@ module Onoma
|
|
8
8
|
@name = name.to_sym
|
9
9
|
@type = type
|
10
10
|
raise "Invalid type: #{@type.inspect}" unless Onoma::PROPERTY_TYPES.include?(@type)
|
11
|
+
|
11
12
|
@fallbacks = options[:fallbacks] if options[:fallbacks]
|
12
13
|
@default = options[:default] if options[:default]
|
13
14
|
@required = !!options[:required]
|
data/lib/onoma/record/base.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
+
# rubocop:disable Style/MissingRespondToMissing
|
1
2
|
module Onoma
|
2
3
|
module Record
|
3
4
|
class Base
|
4
5
|
class << self
|
5
6
|
def method_missing(*args, &block)
|
6
|
-
Onoma.find_or_initialize(name.tableize.sub(
|
7
|
+
Onoma.find_or_initialize(name.tableize.sub(%r{\Aonoma/}, '')).send(*args, &block)
|
7
8
|
end
|
8
9
|
|
9
10
|
def respond_to?(method_name)
|
10
|
-
Onoma.find_or_initialize(name.tableize.sub(
|
11
|
+
Onoma.find_or_initialize(name.tableize.sub(%r{\Aonoma/}, '')).respond_to?(method_name) || super
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
17
|
+
# rubocop:enable Style/MissingRespondToMissing
|
data/lib/onoma/version.rb
CHANGED
data/onoma.gemspec
CHANGED
@@ -1,28 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'lib/onoma/version'
|
2
4
|
|
3
5
|
Gem::Specification.new do |spec|
|
4
6
|
spec.name = 'onoma'
|
5
7
|
spec.version = Onoma::VERSION
|
6
8
|
spec.required_ruby_version = '>= 2.4.4'
|
7
|
-
spec.authors = ['
|
8
|
-
spec.email = ['
|
9
|
+
spec.authors = ['Ekylibre developers']
|
10
|
+
spec.email = ['dev@ekylibre.com']
|
9
11
|
|
10
12
|
spec.summary = 'Provides open nomenclature data in a gem'
|
11
13
|
spec.description = 'Actual support Open-Nomenclature data and gem for use'
|
12
14
|
spec.homepage = 'https://gitlab.com/ekylibre/onoma'
|
13
|
-
spec.license = '
|
15
|
+
spec.license = 'AGPL-3.0-only'
|
14
16
|
|
15
|
-
spec.files =
|
16
|
-
spec.bindir = 'exe'
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
-
spec.require_paths = ['lib']
|
17
|
+
spec.files = Dir.glob(%w[{bin,config,lib}/**/* *.gemspec Gemfile Rakefile *.md LICENSE.txt])
|
19
18
|
|
20
|
-
spec.
|
21
|
-
spec.add_development_dependency 'rake', '> 12.0'
|
22
|
-
spec.add_development_dependency 'minitest'
|
23
|
-
spec.add_development_dependency 'i18n-tasks'
|
19
|
+
spec.require_paths = ['lib']
|
24
20
|
|
25
21
|
spec.add_dependency 'activesupport', '>= 4.2'
|
26
|
-
spec.add_dependency 'zeitwerk', '~> 2.4.0'
|
27
22
|
spec.add_dependency 'nokogiri', '>= 1.10.4'
|
23
|
+
spec.add_dependency 'zeitwerk', '~> 2.4.0'
|
24
|
+
|
25
|
+
spec.add_development_dependency 'bundler', '> 1.15'
|
26
|
+
spec.add_development_dependency 'i18n-tasks'
|
27
|
+
spec.add_development_dependency 'minitest'
|
28
|
+
spec.add_development_dependency 'rake', '> 12.0'
|
29
|
+
spec.add_development_dependency 'rubocop', '1.3.1'
|
28
30
|
end
|
metadata
CHANGED
@@ -1,57 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onoma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Ekylibre developers
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
33
|
+
version: 1.10.4
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.10.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: zeitwerk
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.4.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.4.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.15'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '1.15'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: i18n-tasks
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,60 +81,57 @@ dependencies:
|
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: minitest
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
98
|
+
name: rake
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
101
|
+
- - ">"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
90
|
-
type: :
|
103
|
+
version: '12.0'
|
104
|
+
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - "
|
108
|
+
- - ">"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: '12.0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
112
|
+
name: rubocop
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - '='
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
104
|
-
type: :
|
117
|
+
version: 1.3.1
|
118
|
+
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - '='
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
124
|
+
version: 1.3.1
|
111
125
|
description: Actual support Open-Nomenclature data and gem for use
|
112
126
|
email:
|
113
|
-
-
|
127
|
+
- dev@ekylibre.com
|
114
128
|
executables: []
|
115
129
|
extensions: []
|
116
130
|
extra_rdoc_files: []
|
117
131
|
files:
|
118
|
-
- ".gitignore"
|
119
|
-
- ".gitlab-ci.yml"
|
120
|
-
- ".travis.yml"
|
121
132
|
- CODE_OF_CONDUCT.md
|
122
133
|
- Gemfile
|
123
|
-
- LICENSE.
|
134
|
+
- LICENSE.md
|
124
135
|
- README.md
|
125
136
|
- Rakefile
|
126
137
|
- bin/console
|
@@ -135,257 +146,6 @@ files:
|
|
135
146
|
- config/locales/jpn.yml
|
136
147
|
- config/locales/por.yml
|
137
148
|
- config/locales/spa.yml
|
138
|
-
- db/migrate/20150813022423_add_data.xml
|
139
|
-
- db/migrate/20150813224145_fix_zea.xml
|
140
|
-
- db/migrate/20150813224155_fix_hordeum.xml
|
141
|
-
- db/migrate/20150814104907_rename_charts_of_accounts.xml
|
142
|
-
- db/migrate/20150817202608_rename_abaci.xml
|
143
|
-
- db/migrate/20150818132801_add_vinifera_product_exchangers.xml
|
144
|
-
- db/migrate/20150818152001_add_wine_bottles.xml
|
145
|
-
- db/migrate/20150818232501_add_vinifera_sale_exchangers.xml
|
146
|
-
- db/migrate/20150820212931_remove_abaci.xml
|
147
|
-
- db/migrate/20150821082601_add_grain_variants.xml
|
148
|
-
- db/migrate/20150821230800_rename_invalid_document_natures.xml
|
149
|
-
- db/migrate/20150825180658_add_production_usages.xml
|
150
|
-
- db/migrate/20150826091319_add_leguminous_crop.xml
|
151
|
-
- db/migrate/20150826092813_add_cannabis_varieties.xml
|
152
|
-
- db/migrate/20150826100013_add_thicket_varieties.xml
|
153
|
-
- db/migrate/20150826103353_add_eis_plant.xml
|
154
|
-
- db/migrate/20150902081701_add_garden_varieties.xml
|
155
|
-
- db/migrate/20150905094701_add_milklic_individual_production_exchangers.xml
|
156
|
-
- db/migrate/20150914095928_add_meteorological_analysis_nature.xml
|
157
|
-
- db/migrate/20150916110501_add_grain_analysis.xml
|
158
|
-
- db/migrate/20150916151652_fix_product_nature_variant_units.xml
|
159
|
-
- db/migrate/20150919123840_fix_plant_varieties.xml
|
160
|
-
- db/migrate/20150919223801_change_walnut_nature.xml
|
161
|
-
- db/migrate/20150920212201_add_fruit_harvest.xml
|
162
|
-
- db/migrate/20150921104001_add_fuel_consumption_indicator.xml
|
163
|
-
- db/migrate/20150921110601_add_crumbs_exchangers.xml
|
164
|
-
- db/migrate/20150921175601_add_units_liter_per_hour.xml
|
165
|
-
- db/migrate/20151001154701_add_missing_variants.xml
|
166
|
-
- db/migrate/20151019090110_add_json_exchange_natures.xml
|
167
|
-
- db/migrate/20151021172901_add_missing_indicator_on_animals.xml
|
168
|
-
- db/migrate/20151027095601_add_missing_issue_natures.xml
|
169
|
-
- db/migrate/20151102110723_add_daily_nitrogen_production_indicator.xml
|
170
|
-
- db/migrate/20151107122501_add_cap_statements_exchangers.xml
|
171
|
-
- db/migrate/20151111212501_add_missing_cap_productions.xml
|
172
|
-
- db/migrate/20151117192943_change_procedure_nomenclatures.xml
|
173
|
-
- db/migrate/20151122101101_add_missing_tropical_cap_varieties.xml
|
174
|
-
- db/migrate/20151125163801_add_missing_varieties.xml
|
175
|
-
- db/migrate/20151209000401_add_missing_crop_sets.xml
|
176
|
-
- db/migrate/20151209011801_add_missing_varieties.xml
|
177
|
-
- db/migrate/20151209094701_add_oleaginous_missing_varieties.xml
|
178
|
-
- db/migrate/20151209103601_add_proteaginous_missing_varieties.xml
|
179
|
-
- db/migrate/20151210150144_add_daucus_carota_varieties.xml
|
180
|
-
- db/migrate/20151210163440_add_phaseolus_varieties.xml
|
181
|
-
- db/migrate/20151210164511_add_allium_porrum_varieties.xml
|
182
|
-
- db/migrate/20151210170103_add_allium_cepa_varieties.xml
|
183
|
-
- db/migrate/20151211114316_add_beta_varieties.xml
|
184
|
-
- db/migrate/20151211115500_add_brassica_varieties.xml
|
185
|
-
- db/migrate/20151211124757_add_allium_schoenoprasum_varieties.xml
|
186
|
-
- db/migrate/20151211132045_add_cucurbita_varieties.xml
|
187
|
-
- db/migrate/20151211143806_add_spinacia_oleracea_varieties.xml
|
188
|
-
- db/migrate/20151211151402_add_lactuca_varieties.xml
|
189
|
-
- db/migrate/20151211153218_add_zea_mays_varieties.xml
|
190
|
-
- db/migrate/20151214084817_add_hordeum_varieties.xml
|
191
|
-
- db/migrate/20151214085342_add_pastinaca_sativa_varieties.xml
|
192
|
-
- db/migrate/20151214085721_add_pisum_sativum_varieties.xml
|
193
|
-
- db/migrate/20151214090420_add_solanum_tuberosum_varieties.xml
|
194
|
-
- db/migrate/20151214091020_add_raphanus_varieties.xml
|
195
|
-
- db/migrate/20151214092727_add_glycine_max_varieties.xml
|
196
|
-
- db/migrate/20151215132825_add_abilities.xml
|
197
|
-
- db/migrate/20151215133320_add_equipment_variants.xml
|
198
|
-
- db/migrate/20151215214901_add_openwheatermap_identifiers.xml
|
199
|
-
- db/migrate/20151216095351_add_ridger_equipment_variants.xml
|
200
|
-
- db/migrate/20151216100708_add_lifter_equipment_variants.xml
|
201
|
-
- db/migrate/20151216160914_add_raphanus_sativus_varieties.xml
|
202
|
-
- db/migrate/20151216182551_add_more_units.xml
|
203
|
-
- db/migrate/20151218081701_add_crops_issue_natures.xml
|
204
|
-
- db/migrate/20151222162657_add_varieties.xml
|
205
|
-
- db/migrate/20151222180021_remove_population.xml
|
206
|
-
- db/migrate/20151223164501_update_organic_fertilizer.xml
|
207
|
-
- db/migrate/20151223171801_update_indicators.xml
|
208
|
-
- db/migrate/20160104145418_add_matters.xml
|
209
|
-
- db/migrate/20160104160843_change_product_nature_variants_drain.xml
|
210
|
-
- db/migrate/20160105095120_add_plugin_cap_varieties.xml
|
211
|
-
- db/migrate/20160106095232_add_orchard_plugin_cap_varieties.xml
|
212
|
-
- db/migrate/20160108142009_add_product_nature_variants_nematicide.xml
|
213
|
-
- db/migrate/20160113144856_update_prunus_avium_parent.xml
|
214
|
-
- db/migrate/20160115090243_change_plant_varieties.xml
|
215
|
-
- db/migrate/20160119115401_add_shipping_note_document.xml
|
216
|
-
- db/migrate/20160128093149_fixes_invalid_parent.xml
|
217
|
-
- db/migrate/20160128154202_add_product_natures_protective_canvas.xml
|
218
|
-
- db/migrate/20160204115942_change_protective_net_nature.xml
|
219
|
-
- db/migrate/20160204122030_change_cover_implanter_abilities.xml
|
220
|
-
- db/migrate/20160206163031_simplifies_activity_families.xml
|
221
|
-
- db/migrate/20160207142352_fix_spelling_mistakes_on_associate_accounts.xml
|
222
|
-
- db/migrate/20160210124624_fix_invalid_abilities_on_product_natures.xml
|
223
|
-
- db/migrate/20160224234901_add_seedling_sorting.xml
|
224
|
-
- db/migrate/20160310145038_add_rhodes_grass.xml
|
225
|
-
- db/migrate/20160315152217_remove_exchange_natures.xml
|
226
|
-
- db/migrate/20160402125244_add_some_heavy_equipment.xml
|
227
|
-
- db/migrate/20160408223901_change_zea_variety.xml
|
228
|
-
- db/migrate/20160410082230_add_chemical_classifications.xml
|
229
|
-
- db/migrate/20160425100840_add_product_nature_corn_topper.xml
|
230
|
-
- db/migrate/20160427115742_add_production_systems.xml
|
231
|
-
- db/migrate/20160428085808_add_rows_count_indicator.xml
|
232
|
-
- db/migrate/20160503131928_add_equipment_indicators.xml
|
233
|
-
- db/migrate/20160503155351_fix_taxes.xml
|
234
|
-
- db/migrate/20160504143733_add_units.xml
|
235
|
-
- db/migrate/20160509100749_change_item_corn_topper.xml
|
236
|
-
- db/migrate/20160516075201_add_plant_analysis.xml
|
237
|
-
- db/migrate/20160520144901_update_plant_analysis.xml
|
238
|
-
- db/migrate/20160525073342_update_spreader_trailer_product_nature.xml
|
239
|
-
- db/migrate/20160526075245_update_spreader_trailer_abilities.xml
|
240
|
-
- db/migrate/20160526092246_update_product_natures_and_variants_for_vegetables.xml
|
241
|
-
- db/migrate/20160527090330_update_product_natures_seed.xml
|
242
|
-
- db/migrate/20160531071525_add_procedure_actions.xml
|
243
|
-
- db/migrate/20160531094927_add_items_for_pollination_pocedure.xml
|
244
|
-
- db/migrate/20160605122001_add_worker_register.xml
|
245
|
-
- db/migrate/20160608075549_update_spatial_reference_systems.xml
|
246
|
-
- db/migrate/20160608202134_add_missing_procedure_actions.xml
|
247
|
-
- db/migrate/20160613154204_add_product_nature_variants_hoe_weeder.xml
|
248
|
-
- db/migrate/20160615121350_add_pivots_in_nomenclature.xml
|
249
|
-
- db/migrate/20160615122805_add_daily_average_working_time_indicator_and_lifespan_indicators.xml
|
250
|
-
- db/migrate/20160617142409_add_items_for_hay_bales.xml
|
251
|
-
- db/migrate/20160622121241_add_procedure_action_conservation_plowing.xml
|
252
|
-
- db/migrate/20160624073237_add_musca_varieties.xml
|
253
|
-
- db/migrate/20160627095008_add_weeding_kit.xml
|
254
|
-
- db/migrate/20160630075849_update_product_nature_additive.xml
|
255
|
-
- db/migrate/20160630124401_fix_coop_variants.xml
|
256
|
-
- db/migrate/20160719094049_add_new_procedure_actions.xml
|
257
|
-
- db/migrate/20160719100836_add_issue_nature.xml
|
258
|
-
- db/migrate/20160720144130_update_equipment_varieties.xml
|
259
|
-
- db/migrate/20160721124220_update_product_natures_varieties.xml
|
260
|
-
- db/migrate/20160725182008_fix_abilities_on_old_equipment.xml
|
261
|
-
- db/migrate/20160726173309_rename_equipments_to_equipment.xml
|
262
|
-
- db/migrate/20160727092830_update_malus_pumila_variety_name.xml
|
263
|
-
- db/migrate/20160802123639_update_unit_name_for_equipment_product_nature_variants.xml
|
264
|
-
- db/migrate/20160816083232_add_issue_natures.xml
|
265
|
-
- db/migrate/20160819082951_Add_plant_varieties.xml
|
266
|
-
- db/migrate/20160829072846_add_procedure_action.xml
|
267
|
-
- db/migrate/20160830153251_add_new_varieties.xml
|
268
|
-
- db/migrate/20160909225801_add_missing_stock_variation_accounts.xml
|
269
|
-
- db/migrate/20160911091901_update_product_nature_categories.xml
|
270
|
-
- db/migrate/20160912182501_fix_product_nature_categories.xml
|
271
|
-
- db/migrate/20160914114043_add_tool_maintaining_support.xml
|
272
|
-
- db/migrate/20160915143142_add_pest_related_indicators.xml
|
273
|
-
- db/migrate/20160919210501_add_transportation_actions.xml
|
274
|
-
- db/migrate/20160928113101_add_missing_general_accounts.xml
|
275
|
-
- db/migrate/20160930091201_add_missing_tax_natures.xml
|
276
|
-
- db/migrate/20161017090516_fix_product_nature_categories_stock_movement_account.xml
|
277
|
-
- db/migrate/20161019133613_add_ednotif_eu_country_code.xml
|
278
|
-
- db/migrate/20161019145441_add_ednotif_animal_indicators.xml
|
279
|
-
- db/migrate/20161022103401_add_portuguese_chart_of_account.xml
|
280
|
-
- db/migrate/20161024115013_add_ednotif_indicators_to_cow_product_natures.xml
|
281
|
-
- db/migrate/20161030174001_add_missing_cap_2016_varieties.xml
|
282
|
-
- db/migrate/20161103111303_add_plants_sorting_action.xml
|
283
|
-
- db/migrate/20161202083820_add_new_plant_varieties.xml
|
284
|
-
- db/migrate/20161212181852_add_procedure_categories.xml
|
285
|
-
- db/migrate/20161214093347_add_procedure_actions.xml
|
286
|
-
- db/migrate/20161219171601_add_missing_vat_accounts.xml
|
287
|
-
- db/migrate/20161219231801_add_outgoing_payment_report.xml
|
288
|
-
- db/migrate/20170104161824_add_indicators_for_plant_analysis.xml
|
289
|
-
- db/migrate/20170201180806_set_animal_group_population_counting_to_unitary.xml
|
290
|
-
- db/migrate/20170203132125_update_momenclature_for_animal_housing_mulching_procedure.xml
|
291
|
-
- db/migrate/20170206125311_update_nomenclature_for_animal_housing_disinfection_procedure.xml
|
292
|
-
- db/migrate/20170206163322_update_disinfectant_product_variant.xml
|
293
|
-
- db/migrate/20170214125925_clean_cow_indicators.xml
|
294
|
-
- db/migrate/20170216100144_add_algerian_vat.xml
|
295
|
-
- db/migrate/20170219210901_add_fixed_asset_registry.xml
|
296
|
-
- db/migrate/20170220211447_add_procedure_category.xml
|
297
|
-
- db/migrate/20170220222412_add_procedure_action.xml
|
298
|
-
- db/migrate/20170221102405_add_milking_robot_in_nomenclature.xml
|
299
|
-
- db/migrate/20170222113119_add_animal_varieties.xml
|
300
|
-
- db/migrate/20170306154901_add_missing_outstanding_account.xml
|
301
|
-
- db/migrate/20170308232701_add_fr_pcga_profit_and_loss.xml
|
302
|
-
- db/migrate/20170312112401_add_fr_pcga_balance_sheet.xml
|
303
|
-
- db/migrate/20170312172301_add_fr_pcg82_balance_sheet.xml
|
304
|
-
- db/migrate/20170320073301_add_journal_entry_sheet.xml
|
305
|
-
- db/migrate/20170320144338_add_sundry_debtors_and_creditors_usage.xml
|
306
|
-
- db/migrate/20170322223101_add_loan_registry.xml
|
307
|
-
- db/migrate/20170324084701_add_fixed_asset_sheet.xml
|
308
|
-
- db/migrate/20170328144501_add_pnt_loan_accounts.xml
|
309
|
-
- db/migrate/20170328165900_update_foliar_spray_product_nature.xml
|
310
|
-
- db/migrate/20170328170000_add_indicator.xml
|
311
|
-
- db/migrate/20170328170100_update_product_nature_seedling.xml
|
312
|
-
- db/migrate/20170328170200_add_indicators.xml
|
313
|
-
- db/migrate/20170328170300_add_indicators2.xml
|
314
|
-
- db/migrate/20170328170400_update_seedling_product_natures.xml
|
315
|
-
- db/migrate/20170405135101_add_account_journal_entry_sheet.xml
|
316
|
-
- db/migrate/20170407214236_add_portuguese_account_config.xml
|
317
|
-
- db/migrate/20170524094443_add_urtica_variety.xml
|
318
|
-
- db/migrate/20170614130921_add_varieties.xml
|
319
|
-
- db/migrate/20170627075545_add_varieties2.xml
|
320
|
-
- db/migrate/20170627081533_add_pending_deposit_payments_account_number_for_pt_accounting_system.xml
|
321
|
-
- db/migrate/20170718131724_add_issue_natures.xml
|
322
|
-
- db/migrate/20170803164344_add_procedure_nature_and_category.xml
|
323
|
-
- db/migrate/20170904223101_add_cultivable_zone_registry.xml
|
324
|
-
- db/migrate/20170914083358_add_new_product_nature_variants.xml
|
325
|
-
- db/migrate/20170927144852_add_kiwi_varieties.xml
|
326
|
-
- db/migrate/20171106085357_update_account_numbers.xml
|
327
|
-
- db/migrate/20171212081801_add_fiscal_positions.xml
|
328
|
-
- db/migrate/20180408190101_add_new_plant_variants.xml
|
329
|
-
- db/migrate/20180409130101_add_common_crop.xml
|
330
|
-
- db/migrate/20180418085027_add-hour-counter-indicator.xml
|
331
|
-
- db/migrate/20180709134310_add_centralizing_field_to_accounts.xml
|
332
|
-
- db/migrate/20180711093131_review_all_accounts_number_and_fallbacks.xml
|
333
|
-
- db/migrate/20180806080646_edit_centralizing_field_accounts.xml
|
334
|
-
- db/migrate/20180814184001_add_missing_categories.xml
|
335
|
-
- db/migrate/20180907160001_edit_accounts_to_unlock_first_run.xml
|
336
|
-
- db/migrate/20181004220301_add_journal_ledger.xml
|
337
|
-
- db/migrate/20181205162401_add_intra_vat.xml
|
338
|
-
- db/migrate/20181213153405_fix_accounting_systems.xml
|
339
|
-
- db/migrate/20181217155149_fiscal_position_refers_to_accounting_system.xml
|
340
|
-
- db/migrate/20181217173101_fiscal_position_reference_typo.xml
|
341
|
-
- db/migrate/20190315154040_add_suspense_account.xml
|
342
|
-
- db/migrate/20190326110849_add_asset_fixable_to_product_nature_categories.xml
|
343
|
-
- db/migrate/20190326135443_change_product_nature_category_cultivable_zone_into_land.xml
|
344
|
-
- db/migrate/20190329133808_change_land_fixed_assets_account_usage.xml
|
345
|
-
- db/migrate/20190405120711_delete_land_sales_account_and_assign_land_parcels_sell_revenues_to_land.xml
|
346
|
-
- db/migrate/20190412071057_add_new_fixed_assets_andn_depreciable_accounts.xml
|
347
|
-
- db/migrate/20190509092804_add_account_exceptional_depreciations_imputations_expenses_for_fixed_assets.xml
|
348
|
-
- db/migrate/20190514084753_add_approved_input_volume.xml
|
349
|
-
- db/migrate/20190520072403_add_new_accounts.xml
|
350
|
-
- db/migrate/20190521170601_add_missing_taxes.xml
|
351
|
-
- db/migrate/20190611101014_change_deductible_vat_account.xml
|
352
|
-
- db/migrate/20190620092151_fix_conflicts_in_new_accounts.xml
|
353
|
-
- db/migrate/20190625152636_change_mixture_seed_product_nature_variant.xml
|
354
|
-
- db/migrate/20190718130243_remove_services_expenses.xml
|
355
|
-
- db/migrate/20190801142431_remove_accounts_from_pcg82.xml
|
356
|
-
- db/migrate/20190807125202_add_nature_to_product_natures.xml
|
357
|
-
- db/migrate/20190823091727_fix-cubic-meter-per-hectare-symbol.xml
|
358
|
-
- db/migrate/20190909150402_add_staff_supply_stock_account.xml
|
359
|
-
- db/migrate/20190913102036_add_caliber_indicator.xml
|
360
|
-
- db/migrate/20190917161215_add_missing_mass_area_density_units.xml
|
361
|
-
- db/migrate/20190917161216_update_quintal_symbol.xml
|
362
|
-
- db/migrate/20190917161217_adds_more_info_to_units.xml
|
363
|
-
- db/migrate/20190918074757_add_new_accounts.xml
|
364
|
-
- db/migrate/20191001122750_add_accounts_fixed_assets_related.xml
|
365
|
-
- db/migrate/20191016152118_add_missing_document_templates.xml
|
366
|
-
- db/migrate/20191028175001_add_short_balance_sheet.xml
|
367
|
-
- db/migrate/20191029131921_add_vine_equipments.xml
|
368
|
-
- db/migrate/20191112132413_remove_roller_from_product_natures.xml
|
369
|
-
- db/migrate/20191113134626_add_nature_to_new_product_natures.xml
|
370
|
-
- db/migrate/20191125133327_add_missing_units_and_indicators.xml
|
371
|
-
- db/migrate/20200107095554_add_signed_field_to_document_nature.xml
|
372
|
-
- db/migrate/20200305160358_add_varieties_for_phytosanitary.xml
|
373
|
-
- db/migrate/20200421123503_add_type_to_categories_and_variants.xml
|
374
|
-
- db/migrate/20200514092205_add_liter_per_hectoliter_unit.xml
|
375
|
-
- db/migrate/20200722091859_triticale_derivative_of.xml
|
376
|
-
- db/migrate/20200826000010_add_area_units.xml
|
377
|
-
- db/migrate/20200826000020_change_trailer_indicators.xml
|
378
|
-
- db/migrate/20200826000030_add_new_production_systems.xml
|
379
|
-
- db/migrate/20200826000040_add_viti_abilities.xml
|
380
|
-
- db/migrate/20200826000060_create_vine_farming_activity_famillies.xml
|
381
|
-
- db/migrate/20200826000070_remove_certifications_and_vitis_varieties.xml
|
382
|
-
- db/migrate/20200826000080_add_new_indicators.xml
|
383
|
-
- db/migrate/20200826000100_add_viti_procedure_actions.xml
|
384
|
-
- db/migrate/20200826000110_add_vine_puning_systems.xml
|
385
|
-
- db/migrate/20200826000120_add_vine_procedure_categories.xml
|
386
|
-
- db/migrate/20200826000130_update_viti_product_nauture_variant.xml
|
387
|
-
- db/migrate/20200925153320_fix_outgoing_payment_list_document_nature.xml
|
388
|
-
- db/reference.xml
|
389
149
|
- lib/onoma.rb
|
390
150
|
- lib/onoma/item.rb
|
391
151
|
- lib/onoma/migration/actions/base.rb
|
@@ -471,7 +231,7 @@ files:
|
|
471
231
|
- onoma.gemspec
|
472
232
|
homepage: https://gitlab.com/ekylibre/onoma
|
473
233
|
licenses:
|
474
|
-
-
|
234
|
+
- AGPL-3.0-only
|
475
235
|
metadata: {}
|
476
236
|
post_install_message:
|
477
237
|
rdoc_options: []
|