onoma 0.6.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aa531b97279dc41483a45c1b9c49e4348ef97d0
4
- data.tar.gz: ab465eed5f0e0c8ed6329965329331a1c1ce2944
3
+ metadata.gz: fb4d80adfacee042ec4c281d7559e02c1dbb4f9c
4
+ data.tar.gz: 0f4dd57daf53ec7eb7af7a6d5fd5b5a844558fa1
5
5
  SHA512:
6
- metadata.gz: d584e4a31a0ca55abab1158e568f7e43f8cd979175d7a6a4198089b7abfe421cc7b6f11d371c158bc2aee8d3826aae49e043879c14959103a917882f8bda0839
7
- data.tar.gz: 4fab1c416930d147217fb4f1ee095dac303091b1aefc614f273bc1e24f589a3c3d5ca3f19f97704c068fe4cec10aa0bd5722bb46648f8ddf83dee3aa26cd477b
6
+ metadata.gz: 5f84232fae7225678bb85671d6376fa8564c1c07ffc1ff8e462dbedada396e91f498efee4026cc577d7c9b7ca21763b597b68c0d257b46a38b33d3695a7b48a1
7
+ data.tar.gz: e0218b2acd21e4285d363d54d2c04f915a2e2ade7f46ba9f271c3dfc942df5dffc537bf33b00b3bec6b483a66352590c4fa829409984fc6c035affe2be266ee4
@@ -1905,6 +1905,7 @@ eng:
1905
1905
  acta_category: "Acta category"
1906
1906
  document_natures:
1907
1907
  items:
1908
+ ac_work_sheet: "AC work sheet"
1908
1909
  account_journal_entry_sheet: "Account journal entry sheet"
1909
1910
  activity_cost: "Activity cost"
1910
1911
  animal_husbandry_register: "Animal husbandry register"
@@ -1942,6 +1943,7 @@ eng:
1942
1943
  outgoing_payment_list__standard: "Outgoing payment list"
1943
1944
  pending_vat_register: "Pending VAT register"
1944
1945
  pfi_land_parcel_register: "Phytosanitary Frequency Indicators register"
1946
+ phytosanitary_applicator_sheet: "Applicator sheet"
1945
1947
  phytosanitary_certification: "Phytosanitary certification"
1946
1948
  phytosanitary_register: "Phytosanitary register"
1947
1949
  prescription: "Prescription"
@@ -1953,6 +1955,7 @@ eng:
1953
1955
  purchases_original: "Purchases original"
1954
1956
  sales_estimate: "Sales estimate"
1955
1957
  sales_invoice: "Sales invoice"
1958
+ sales_invoice_shipment: "Sales invoice (shipments)"
1956
1959
  sales_order: "Sales order"
1957
1960
  security_data_sheet: "Security data sheet"
1958
1961
  shipping_note: "Shipping note"
@@ -2162,6 +2165,7 @@ eng:
2162
2165
  element_count: "Element count"
2163
2166
  end_of_life_witness: "End of life witness"
2164
2167
  energy: "Energy"
2168
+ engine_speed: "Engine speed"
2165
2169
  entry_date: "Entry date"
2166
2170
  entry_reason: "Entry reason"
2167
2171
  estimated_harvest_alcoholic_volumetric_concentration: "Estimated harvest alcoholic volumetric concentration"
@@ -2185,6 +2189,7 @@ eng:
2185
2189
  germination_rate: "Germination rate"
2186
2190
  grains_area_density: "Grains area density"
2187
2191
  grains_count: "Grains count"
2192
+ ground_speed: "Ground_speed"
2188
2193
  hagberg_falling_number: "Hagberg falling number"
2189
2194
  healthy: "Healthiness"
2190
2195
  height: "Height"
@@ -2251,6 +2256,8 @@ eng:
2251
2256
  nominal_storable_easement_area: "Nominal storable easement area"
2252
2257
  nominal_storable_net_mass: "Nominal storable net mass"
2253
2258
  nominal_storable_net_volume: "Nominal storable net volume"
2259
+ nozzle_count: "Nozzle count"
2260
+ nozzle_type: "Nozzle type"
2254
2261
  organic_matter_concentration: "Organic matter concentration"
2255
2262
  origin_country_code: "Origin country code"
2256
2263
  origin_identification_number: "Origin identification number"
@@ -2294,6 +2301,8 @@ eng:
2294
2301
  spans_count: "Spans count"
2295
2302
  species_purity: "Species purity"
2296
2303
  specific_weight: "Specific weight"
2304
+ spray_mix_volume_area_density: "Spray mix volume area density"
2305
+ spray_pressure: "Spray pressure"
2297
2306
  stakes_count: "Stakes count"
2298
2307
  subsoil_nature: "Subsoil nature"
2299
2308
  sucrose_concentration: "Sucrose concentration"
@@ -4701,6 +4710,8 @@ eng:
4701
4710
  quintal: "Quintal"
4702
4711
  quintal_per_hectare: "Quintal per hectare"
4703
4712
  radian: "Radian"
4713
+ radian_per_second: "Radian per second"
4714
+ revolution_per_second: "Revolution per second"
4704
4715
  second: "Second"
4705
4716
  square_centimeter: "Square centimeter"
4706
4717
  square_meter: "Square meter"
@@ -1977,6 +1977,7 @@ fra:
1977
1977
  acta_category: "Catégorie ACTA"
1978
1978
  document_natures:
1979
1979
  items:
1980
+ ac_work_sheet: "Fiche de chantier ETA"
1980
1981
  account_journal_entry_sheet: "Extrait de compte"
1981
1982
  activity_cost: "Coûts de production détaillés"
1982
1983
  animal_husbandry_register: "Registre d’élevage"
@@ -2016,6 +2017,7 @@ fra:
2016
2017
  outgoing_payment_list__standard: "Lot de décaissements"
2017
2018
  pending_vat_register: "État de TVA préparatoire"
2018
2019
  pfi_land_parcel_register: "Bilan IFT"
2020
+ phytosanitary_applicator_sheet: "Fiche applicateur"
2019
2021
  phytosanitary_certification: "Certi-Phyto"
2020
2022
  phytosanitary_register: "Registre phytosanitaire"
2021
2023
  prescription: "Prescription vétérinaire"
@@ -2027,6 +2029,7 @@ fra:
2027
2029
  purchases_original: "Pièce originale d’achat"
2028
2030
  sales_estimate: "Devis de vente"
2029
2031
  sales_invoice: "Facture de vente"
2032
+ sales_invoice_shipment: "Facture de vente (expéditions)"
2030
2033
  sales_order: "Commande de vente"
2031
2034
  security_data_sheet: "Fiche de données de sécurité"
2032
2035
  shipping_note: "Bon de livraison"
@@ -2269,6 +2272,7 @@ fra:
2269
2272
  element_count: "Nombre d'éléments"
2270
2273
  end_of_life_witness: "Témoin du décès"
2271
2274
  energy: "Énergie"
2275
+ engine_speed: "Régime"
2272
2276
  entry_date: "Date d'entrée"
2273
2277
  entry_reason: "Motif d'entrée"
2274
2278
  estimated_harvest_alcoholic_volumetric_concentration: "TAVP vendange"
@@ -2292,6 +2296,7 @@ fra:
2292
2296
  germination_rate: "Taux de germination"
2293
2297
  grains_area_density: "Grains par surface"
2294
2298
  grains_count: "Nombre de grains"
2299
+ ground_speed: "Vitesse"
2295
2300
  hagberg_falling_number: "Temps de chute de Hagberg"
2296
2301
  healthy: "Bonne santé"
2297
2302
  height: "Hauteur"
@@ -2358,6 +2363,8 @@ fra:
2358
2363
  nominal_storable_easement_area: "Capacité de stockage surfacique nominale (emprise au sol)"
2359
2364
  nominal_storable_net_mass: "Capacité de stockage massique nominale"
2360
2365
  nominal_storable_net_volume: "Capacité de stockage volumique nominale"
2366
+ nozzle_count: "Nombre de buses"
2367
+ nozzle_type: "Couleur/type de buses"
2361
2368
  organic_matter_concentration: "Teneur en matière organique"
2362
2369
  origin_country_code: "Code pays d'origine"
2363
2370
  origin_identification_number: "Numéro d'identification d'origine"
@@ -2402,6 +2409,8 @@ fra:
2402
2409
  spans_count: "Nombre de travées"
2403
2410
  species_purity: "Pureté spécifique"
2404
2411
  specific_weight: "Poids spécifique"
2412
+ spray_mix_volume_area_density: "Volume de bouillie surfacique"
2413
+ spray_pressure: "Pression"
2405
2414
  stakes_count: "Nombre de piquets"
2406
2415
  subsoil_nature: "Type de sous-sol"
2407
2416
  sucrose_concentration: "Teneur en sucre"
@@ -4952,6 +4961,8 @@ fra:
4952
4961
  quintal: "Quintal"
4953
4962
  quintal_per_hectare: "Quintal par hectare"
4954
4963
  radian: "Radian"
4964
+ radian_per_second: "Radian par seconde"
4965
+ revolution_per_second: "Tour par minute"
4955
4966
  second: "Seconde"
4956
4967
  square_centimeter: "Centimètre carré"
4957
4968
  square_meter: "Mètre carré"
data/db/reference.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0"?>
2
- <nomenclatures xmlns="http://www.ekylibre.org/XML/2013/nomenclatures" version="20211203105751">
2
+ <nomenclatures xmlns="http://www.ekylibre.org/XML/2013/nomenclatures" version="20220704161519">
3
3
  <nomenclature name="abilities" translateable="true">
4
4
  <properties>
5
5
  <property name="parameters" type="choice_list" choices="variety, issue_nature"/>
@@ -1719,7 +1719,7 @@
1719
1719
  <property name="countries" type="item_list" choices="countries"/>
1720
1720
  <property name="number" type="string" required="true" default="2"/>
1721
1721
  <property name="precision" type="integer" required="true" default="2"/>
1722
- <property name="symbol" type="string"/>
1722
+ <property name="symbol" type="string" fallbacks="name"/>
1723
1723
  </properties>
1724
1724
  <items>
1725
1725
  <item name="AED" precision="2" active="true" countries="ae" number="784"/>
@@ -1821,7 +1821,7 @@
1821
1821
  <item name="MNT" precision="2" active="true" countries="mn" number="496"/>
1822
1822
  <item name="MOP" precision="2" active="true" countries="mo" number="446"/>
1823
1823
  <item name="MRO" precision="2" active="true" countries="mr" number="478"/>
1824
- <item name="MUR" precision="2" active="true" countries="mu" number="480"/>
1824
+ <item name="MUR" precision="2" active="true" countries="mu" number="480" symbol="Rs"/>
1825
1825
  <item name="MVR" precision="2" active="true" countries="mv" number="462"/>
1826
1826
  <item name="MWK" precision="2" active="true" countries="mw" number="454"/>
1827
1827
  <item name="MXN" precision="2" active="true" countries="mx" number="484"/>
@@ -1913,6 +1913,7 @@
1913
1913
  <item name="amount_of_substance" symbol="mol"/>
1914
1914
  <item name="amount_of_substance_density" symbol="mol/kg"/>
1915
1915
  <item name="angle" symbol="rad"/>
1916
+ <item name="angular_velocity" symbol="rad/s"/>
1916
1917
  <item name="concentration" symbol="./m&#xB3;"/>
1917
1918
  <item name="distance" symbol="m"/>
1918
1919
  <item name="distance_speed" symbol="m/s"/>
@@ -1964,10 +1965,12 @@
1964
1965
  </nomenclature>
1965
1966
  <nomenclature name="document_natures" translateable="true">
1966
1967
  <properties>
1968
+ <property name="active" type="boolean" default="true"/>
1967
1969
  <property name="category" type="item_list" choices="document_categories"/>
1968
1970
  <property name="signed" type="boolean" default="false"/>
1969
1971
  </properties>
1970
1972
  <items>
1973
+ <item name="ac_work_sheet" category="management" active="false"/>
1971
1974
  <item name="account_journal_entry_sheet" category="accountancy"/>
1972
1975
  <item name="activity_cost" category="management"/>
1973
1976
  <item name="animal_husbandry_register" category="animal_farming"/>
@@ -2009,6 +2012,7 @@
2009
2012
  <item name="outgoing_payment_list__standard" category="exploitation"/>
2010
2013
  <item name="pending_vat_register" category="accountancy"/>
2011
2014
  <item name="pfi_land_parcel_register" category="land_parcel_management"/>
2015
+ <item name="phytosanitary_applicator_sheet" category="management"/>
2012
2016
  <item name="phytosanitary_certification" category="land_parcel_management"/>
2013
2017
  <item name="phytosanitary_register" category="land_parcel_management"/>
2014
2018
  <item name="prescription" category="health"/>
@@ -2020,6 +2024,7 @@
2020
2024
  <item name="purchases_original" category="exploitation"/>
2021
2025
  <item name="sales_estimate" category="marketing"/>
2022
2026
  <item name="sales_invoice" category="marketing" signed="true"/>
2027
+ <item name="sales_invoice_shipment" category="marketing" signed="true"/>
2023
2028
  <item name="sales_order" category="marketing"/>
2024
2029
  <item name="security_data_sheet" category="land_parcel_management"/>
2025
2030
  <item name="shipping_note" category="exploitation"/>
@@ -2217,6 +2222,7 @@
2217
2222
  <item name="element_count" datatype="integer"/>
2218
2223
  <item name="end_of_life_witness" datatype="string"/>
2219
2224
  <item name="energy" datatype="measure" unit="kilowatt_hour"/>
2225
+ <item name="engine_speed" datatype="measure" unit="revolution_per_minute"/>
2220
2226
  <item name="entry_date" datatype="string"/>
2221
2227
  <item name="entry_reason" datatype="string"/>
2222
2228
  <item name="estimated_harvest_alcoholic_volumetric_concentration" datatype="measure" unit="volume_percent"/>
@@ -2240,6 +2246,7 @@
2240
2246
  <item name="germination_rate" datatype="measure" unit="percent"/>
2241
2247
  <item name="grains_area_density" datatype="measure" unit="unity_per_square_meter"/>
2242
2248
  <item name="grains_count" datatype="measure" unit="thousand"/>
2249
+ <item name="ground_speed" datatype="measure" unit="kilometer_per_hour"/>
2243
2250
  <item name="hagberg_falling_number" datatype="measure" unit="second"/>
2244
2251
  <item name="healthy" datatype="boolean"/>
2245
2252
  <item name="height" datatype="measure" unit="meter"/>
@@ -2306,6 +2313,8 @@
2306
2313
  <item name="nominal_storable_easement_area" datatype="measure" unit="square_meter"/>
2307
2314
  <item name="nominal_storable_net_mass" datatype="measure" unit="kilogram"/>
2308
2315
  <item name="nominal_storable_net_volume" datatype="measure" unit="liter"/>
2316
+ <item name="nozzle_count" datatype="integer"/>
2317
+ <item name="nozzle_type" datatype="string"/>
2309
2318
  <item name="organic_matter_concentration" datatype="measure" unit="mass_percent"/>
2310
2319
  <item name="origin_country_code" datatype="string"/>
2311
2320
  <item name="origin_identification_number" datatype="string"/>
@@ -2349,6 +2358,8 @@
2349
2358
  <item name="spans_count" datatype="integer"/>
2350
2359
  <item name="species_purity" datatype="measure" unit="percent"/>
2351
2360
  <item name="specific_weight" datatype="measure" unit="kilogram_per_hectoliter"/>
2361
+ <item name="spray_mix_volume_area_density" datatype="measure" unit="liter_per_hectare"/>
2362
+ <item name="spray_pressure" datatype="measure" unit="bar"/>
2352
2363
  <item name="stakes_count" datatype="integer" gathering="proportional_to_population"/>
2353
2364
  <item name="subsoil_nature" datatype="choice" choices="soil_natures"/>
2354
2365
  <item name="sucrose_concentration" datatype="measure" unit="mass_percent"/>
@@ -4314,7 +4325,7 @@
4314
4325
  <item name="sower" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="sow" variable_indicators="geolocation" frozen_indicators="nominal_storable_net_volume, application_width, rows_count, theoretical_working_speed" nature="equipment"/>
4315
4326
  <item name="species" category="fruit" variety="pollen" derivative_of="plant" population_counting="decimal" variable_indicators="reference_year" frozen_indicators="net_mass, net_volume" nature="article"/>
4316
4327
  <item name="spinach" category="vegetable" variety="vegetable" derivative_of="spinacia_oleracea" population_counting="decimal" abilities="feed(animal)" variable_indicators="" frozen_indicators="net_mass" nature="article"/>
4317
- <item name="sprayer" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="spray" variable_indicators="geolocation" frozen_indicators="nominal_storable_net_volume, application_width, theoretical_working_speed" nature="equipment"/>
4328
+ <item name="sprayer" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="spray" variable_indicators="geolocation, application_width, element_count, nominal_storable_net_volume, rows_count, theoretical_working_speed" frozen_indicators="" nature="equipment"/>
4318
4329
  <item name="spread_renting" category="equipment_rent" variety="service" population_counting="decimal" abilities="spread(preparation)" variable_indicators="" frozen_indicators="usage_duration" nature="fee_and_service"/>
4319
4330
  <item name="spreader" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="spread(preparation)" variable_indicators="geolocation" frozen_indicators="nominal_storable_net_volume, application_width, theoretical_working_speed" nature="equipment"/>
4320
4331
  <item name="spreader_trailer" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="store(excrement), move, spread(excrement), store(raw_matter), store_fluid, spread(preparation)" variable_indicators="geolocation" frozen_indicators="nominal_storable_net_volume, nominal_storable_net_mass" nature="equipment"/>
@@ -4330,7 +4341,7 @@
4330
4341
  <item name="telescopic_handler" category="equipment" variety="handling_equipment" population_counting="unitary" variable_indicators="geolocation" abilities="catch(product)" nature="equipment"/>
4331
4342
  <item name="tool" category="equipment" variety="equipment" population_counting="unitary" nature="equipment"/>
4332
4343
  <item name="topper" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="cut" frozen_indicators="application_width, theoretical_working_speed" variable_indicators="geolocation" nature="equipment"/>
4333
- <item name="tractor" category="equipment" variety="tractor" population_counting="unitary" abilities="catch(matter), move, tow(matter), consume(oil), consume(fuel)" variable_indicators="net_surface_area, motor_power, geolocation, hour_counter" frozen_indicators="" linkage_points="rear, front" nature="equipment"/>
4344
+ <item name="tractor" category="equipment" variety="tractor" population_counting="unitary" abilities="catch(matter), move, tow(matter), consume(oil), consume(fuel)" variable_indicators="fuel_consumption, geolocation, motor_power, hour_counter, ground_speed" frozen_indicators="" linkage_points="rear, front" nature="equipment"/>
4334
4345
  <item name="trade_show" category="trade_show" variety="service" population_counting="integer" variable_indicators="" nature="fee_and_service"/>
4335
4346
  <item name="trailer" category="equipment" variety="trailed_equipment" population_counting="unitary" abilities="store_fluid, store(grain), store(grass), store(raw_matter), store(silage), move" variable_indicators="geolocation" frozen_indicators="nominal_storable_net_volume, nominal_storable_net_mass" nature="equipment"/>
4336
4347
  <item name="training_course" category="service" variety="service" population_counting="decimal" variable_indicators="" frozen_indicators="usage_duration" nature="fee_and_service"/>
@@ -10258,6 +10269,8 @@
10258
10269
  <item name="quintal_per_square_centimeter" dimension="mass_area_density" symbol="qt/cm&#xB2;" a="1000000.0" base_unit="quintal" base_dimension="mass" repartition_unit="square_centimeter" repartition_dimension="surface_area"/>
10259
10270
  <item name="quintal_per_square_meter" dimension="mass_area_density" symbol="qt/m&#xB2;" a="100.0" base_unit="quintal" base_dimension="mass" repartition_unit="square_meter" repartition_dimension="surface_area"/>
10260
10271
  <item name="radian" dimension="angle" symbol="rad" base_unit="radian" base_dimension="angle"/>
10272
+ <item name="radian_per_second" dimension="angular_velocity" symbol="rad/s" repartition_unit="second" repartition_dimension="time" base_unit="radian" base_dimension="angle"/>
10273
+ <item name="revolution_per_minute" dimension="angular_velocity" symbol="tr/min" a="0.10471975511965977" d="60.0" repartition_unit="minute" repartition_dimension="time"/>
10261
10274
  <item name="second" dimension="time" symbol="s" base_unit="second" base_dimension="time"/>
10262
10275
  <item name="square_centimeter" dimension="surface_area" symbol="cm&#xB2;" a="0.0001" base_unit="square_centimeter" base_dimension="surface_area"/>
10263
10276
  <item name="square_meter" dimension="surface_area" symbol="m&#xB2;" base_unit="square_meter" base_dimension="surface_area"/>
data/lib/onoma/item.rb CHANGED
@@ -279,11 +279,12 @@ module Onoma
279
279
  if property
280
280
  if value.nil? && property.fallbacks
281
281
  property.fallbacks.each do |fallback|
282
+ value ||= @name if fallback == :name
282
283
  value ||= @attributes[fallback]
283
284
  break if value
284
285
  end
285
286
  end
286
- value ||= cast_property(name, property.default) if property.default
287
+ value = cast_property(name, property.default) if property.default && value.nil?
287
288
  end
288
289
  value
289
290
  end
@@ -0,0 +1,36 @@
1
+ module Onoma
2
+ module Migration
3
+ module Actions
4
+ class PropertyChange < Onoma::Migration::Actions::Base
5
+ attr_reader :nomenclature, :name, :changes
6
+ def initialize(element)
7
+ name = element['property'].split('.')
8
+ @nomenclature = name.first
9
+ @name = name.second
10
+
11
+ @changes = {}
12
+ if element.has_attribute?('type')
13
+ changes[:type] = element.attr('type').to_sym
14
+ end
15
+ if element.has_attribute?('fallbacks')
16
+ @changes[:fallbacks] = element.attr('fallbacks').to_s.strip.split(/[[:space:]]*\,[[:space:]]*/).map(&:to_sym)
17
+ end
18
+ if element.has_attribute?('default')
19
+ @changes[:default] = element.attr('default').to_sym
20
+ end
21
+ if element.has_attribute?('required')
22
+ @changes[:required] = element.attr('required').to_s == 'true'
23
+ end
24
+ # @changes[:inherit] = !!(element.attr('inherit').to_s == 'true')
25
+ if element.has_attribute?('choices')
26
+ if type == :choice || type == :choice_list
27
+ @changes[:choices] = element.attr('choices').to_s.strip.split(/[[:space:]]*\,[[:space:]]*/).map(&:to_sym)
28
+ elsif type == :item || type == :item_list
29
+ @changes[:choices] = element.attr('choices').to_s.strip.to_sym
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -48,7 +48,7 @@ module Onoma
48
48
  end
49
49
 
50
50
  def property_change(action)
51
- @set.add_property(action.nomenclature, action.name, action.changes)
51
+ @set.change_property(action.nomenclature, action.name, action.changes)
52
52
  end
53
53
 
54
54
  def item_creation(action)
@@ -256,6 +256,22 @@ module Onoma
256
256
  p
257
257
  end
258
258
 
259
+ def change_property(name, updates = {})
260
+ property = property_natures[name]
261
+
262
+ unless property
263
+ raise "Property #{p.name} doesn't exist in nomenclature #{@name}"
264
+ end
265
+
266
+ updates.each do |k, v|
267
+ begin
268
+ property.send("#{k}=", v)
269
+ rescue NoMethodError => e
270
+ "#{k} attribute doesn't exist for property nature"
271
+ end
272
+ end
273
+ end
274
+
259
275
  def sibling(name)
260
276
  @set.find(name)
261
277
  end
@@ -151,8 +151,9 @@ module Onoma
151
151
  nomenclature.add_property(property_name, type, options)
152
152
  end
153
153
 
154
- def change_property(_nomenclature_name, _property_name, _updates = {})
155
- raise NotImplementedError
154
+ def change_property(nomenclature_name, property_name, updates = {})
155
+ nomenclature = find!(nomenclature_name)
156
+ nomenclature.change_property(property_name, updates)
156
157
  end
157
158
 
158
159
  def remove_property(_nomenclature_name, _property_name, _options = {})
@@ -1,6 +1,7 @@
1
1
  module Onoma
2
2
  class PropertyNature
3
- attr_reader :nomenclature, :name, :type, :fallbacks, :default, :source
3
+ attr_reader :nomenclature
4
+ attr_accessor :name, :type, :fallbacks, :default, :source
4
5
 
5
6
  # New item
6
7
  def initialize(nomenclature, name, type, options = {})
data/lib/onoma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onoma
4
- VERSION = '0.6.3'
4
+ VERSION = '0.8.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onoma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ekylibre developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -153,6 +153,7 @@ files:
153
153
  - lib/onoma/migration/actions/nomenclature_change.rb
154
154
  - lib/onoma/migration/actions/nomenclature_creation.rb
155
155
  - lib/onoma/migration/actions/nomenclature_removal.rb
156
+ - lib/onoma/migration/actions/property_change.rb
156
157
  - lib/onoma/migration/actions/property_creation.rb
157
158
  - lib/onoma/migration/base.rb
158
159
  - lib/onoma/migrator.rb