README.md in unidom-common-1.2 vs README.md in unidom-common-1.3

- old
+ new

@@ -233,10 +233,66 @@ hex_digested = identity_card.hex_digest_identification_number hex_digested == Unidom::Common::Numeration.hex digested # true ``` +## SHA 1 Digester +```ruby +class IdentityCard + + include Unidom::Common::Concerns::Sha1Digester + attr_accessor :identification_number + + def initialize(identification_number) + self.identification_number = identification_number + end + + def digest_identification_number + digest identification_number, pepper: self.class.name + end + + def hex_digest_identification_number + hex_digest identification_number, pepper: self.class.name + end + +end + +identity_card = IdentityCard.new '9527' +digested = identity_card.digest_identification_number +hex_digested = identity_card.hex_digest_identification_number +hex_digested == Unidom::Common::Numeration.hex digested # true +``` + + +## SHA 2 Digester +```ruby +class IdentityCard + + include Unidom::Common::Concerns::Sha1Digester + attr_accessor :identification_number + + def initialize(identification_number) + self.identification_number = identification_number + end + + def digest_identification_number + digest identification_number, pepper: self.class.name + end + + def hex_digest_identification_number + hex_digest identification_number, pepper: self.class.name + end + +end + +identity_card = IdentityCard.new '9527' +digested = identity_card.digest_identification_number +hex_digested = identity_card.hex_digest_identification_number +hex_digested == Unidom::Common::Numeration.hex digested # true +``` + + ## ActiveRecord Migration Naming Convention ### Domain Models (200YMMDDHHMMSS) <table class='table table-striped table-hover'> <caption></caption> @@ -303,10 +359,11 @@ - Standard Associating </td> <td>The Standard domain model engine includes the Standard model and the Standard Associating model. 标准领域模型引擎包括行为标准和标准关联的模型。</td> </tr> + <tr> <td>[![unidom-party](https://badge.fury.io/rb/unidom-party.svg)](https://github.com/topbitdu/unidom-party)</td> <td>200101DDHHMMSS</td> <td> - Person @@ -346,10 +403,11 @@ - Locating </td> <td>The Geo domain model engine includes the Location and Locating models. 地理领域模型引擎包括位置和定位的模型。</td> </tr> + <tr> <td>[![unidom-article_number](https://badge.fury.io/rb/unidom-article_number.svg)](https://github.com/topbitdu/unidom-article_number)</td> <td>200201DDHHMMSS</td> <td> - Marking @@ -398,10 +456,23 @@ </td> <td>The Order domain model engine includes Order, Order Item, and Order Adjustment models. 订单领域模型引擎包括订单、订单项和订单调整的模型。</td> </tr> <tr> + <td>[![unidom-inventory](https://badge.fury.io/rb/unidom-inventory.svg)](https://github.com/topbitdu/unidom-inventory)</td> + <td>200209DDHHMMSS</td> + <td> + - Serialized Inventory Item + - Grouped Inventory Item + - Lot + - Inventory Item Variance + </td> + <td>The Inventory domain model engine includes the Serialized Inventory Item, the Grouped Inventory Item, the Lot, and the Inventory Item Variance models. 库存领域模型引擎包括序列化库存项、分组库存项、批量和库存项变化的模型。</td> + </tr> + + + <tr> <td>[![unidom-position](https://badge.fury.io/rb/unidom-position.svg)](https://github.com/topbitdu/unidom-position)</td> <td>200402DDHHMMSS</td> <td> - Occupation - Position @@ -418,9 +489,10 @@ <td> - Post Fulfillment </td> <td>The Position domain model engine includes the Post Fulfillment and its relative models. 就职领域模型引擎包括岗位履行及其相关的模型。</td> </tr> + </tbody> </table> ### Country Extensions (200YMM9NNNMMSS)