unidom-common 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -262
- data/app/models/unidom/common/concerns/aes256_cryptor.rb +4 -2
- data/lib/unidom/common/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c086fb6689c4136771a0168f4532b7e8532de09716682d9a8747379056ef30ef
|
4
|
+
data.tar.gz: deb216901a9121e91189982b5f4db8d2a2a9e275df2bf8dd88f8effa4b5279ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ee211251ac52e8116f708710a3514cdba6cc65b8e12dbc987b0465cc1e620a3bc7c24d1803a50176fb9adeff4765d661237b500bb8ba029d64f20394ca1e787
|
7
|
+
data.tar.gz: ddda1c685bf861c47ed23c20bd1815e8c1059191abf35bf505c6e544fa9ec5fdb7b6c7da72bea4ac54df2e371975de80cdde3a4169197d56874d8ee363899f3e
|
data/README.md
CHANGED
@@ -553,268 +553,31 @@ end
|
|
553
553
|
|
554
554
|
### Domain Models (200YMMDDHHMMSS)
|
555
555
|
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
<ul>
|
582
|
-
<li>Identificating</li>
|
583
|
-
<li>Authenticating</li>
|
584
|
-
<li>Recognization</li>
|
585
|
-
<li>User</li>
|
586
|
-
<li>Guest</li>
|
587
|
-
<li>Password</li>
|
588
|
-
<ul>
|
589
|
-
</td>
|
590
|
-
<td>The Visitor domain model engine includes Identificating, Authenticating, Recognization, Visitor (User & Guest), and Password models. 访问者领域模型引擎包括身份标识、身份鉴别、身份识别、访问者(用户和游客)、密码的模型。</td>
|
591
|
-
</tr>
|
592
|
-
|
593
|
-
<tr>
|
594
|
-
<td><a href="https://github.com/topbitdu/unidom-category">unidom-category</a></td>
|
595
|
-
<td>200003DDHHMMSS</td>
|
596
|
-
<td>
|
597
|
-
<ul>
|
598
|
-
<li>Category</li>
|
599
|
-
<li>Categorizing</li>
|
600
|
-
<li>Category Rollup</li>
|
601
|
-
<li>Category Associating</li>
|
602
|
-
<ul>
|
603
|
-
</td>
|
604
|
-
<td>The Category domain model engine includes Category and its relative models. 类别领域模型引擎包括类别及其相关的模型。</td>
|
605
|
-
</tr>
|
606
|
-
|
607
|
-
<tr>
|
608
|
-
<td><a href="https://github.com/topbitdu/unidom-authorization">unidom-authorization</a></td>
|
609
|
-
<td>200004DDHHMMSS</td>
|
610
|
-
<td>
|
611
|
-
<ul>
|
612
|
-
<li>Permission</li>
|
613
|
-
<li>Authorizing</li>
|
614
|
-
<ul>
|
615
|
-
</td>
|
616
|
-
<td>The Authorization domain model engine includes the Permission and Authorizing models. 授权领域模型引擎包括权限、授权的模型。</td>
|
617
|
-
</tr>
|
618
|
-
|
619
|
-
<tr>
|
620
|
-
<td><a href="https://github.com/topbitdu/unidom-action">unidom-action</a></td>
|
621
|
-
<td>200005DDHHMMSS</td>
|
622
|
-
<td>
|
623
|
-
<ul>
|
624
|
-
<li>Reason</li>
|
625
|
-
<li>State Transition</li>
|
626
|
-
<li>Obsolescing</li>
|
627
|
-
<li>Acting</li>
|
628
|
-
</ul>
|
629
|
-
</td>
|
630
|
-
<td>The Action domain model engine includes the Reason, State Transition, Obsolescing, and the Acting models. 审计领域模型引擎包括原因、状态迁移、废弃和行为日志的模型。</td>
|
631
|
-
</tr>
|
632
|
-
|
633
|
-
<tr>
|
634
|
-
<td><a href="https://github.com/topbitdu/unidom-standard">unidom-standard</a></td>
|
635
|
-
<td>200006DDHHMMSS</td>
|
636
|
-
<td>
|
637
|
-
<ul>
|
638
|
-
<li>Standard</li>
|
639
|
-
<li>Standard Associating</li>
|
640
|
-
</ul>
|
641
|
-
</td>
|
642
|
-
<td>The Standard domain model engine includes the Standard model and the Standard Associating model. 标准领域模型引擎包括行为标准和标准关联的模型。</td>
|
643
|
-
</tr>
|
644
|
-
|
645
|
-
|
646
|
-
<tr>
|
647
|
-
<td><a href="https://github.com/topbitdu/unidom-party">unidom-party</a></td>
|
648
|
-
<td>200101DDHHMMSS</td>
|
649
|
-
<td>
|
650
|
-
<ul>
|
651
|
-
<li>Person</li>
|
652
|
-
<li>Shop</li>
|
653
|
-
<li>Company</li>
|
654
|
-
<li>Government Agency</li>
|
655
|
-
<li>Party Relation</li>
|
656
|
-
</ul>
|
657
|
-
</td>
|
658
|
-
<td>The Party domain model engine includes the Person, Shop, Company, Government Agency, and the Party Relation models. 参与者领域模型引擎包括个人、店铺、公司、政府机构、参与者关系的模型。</td>
|
659
|
-
</tr>
|
660
|
-
|
661
|
-
<tr>
|
662
|
-
<td><a href="https://github.com/topbitdu/unidom-certificate">unidom-certificate</a></td>
|
663
|
-
<td>200102DDHHMMSS</td>
|
664
|
-
<td>
|
665
|
-
<ul>
|
666
|
-
<li>Certificating</li>
|
667
|
-
</ul>
|
668
|
-
</td>
|
669
|
-
<td>The Certificate domain model engine includes the Certificating model.
|
670
|
-
证书领域模型引擎包括证书认证的模型。</td>
|
671
|
-
</tr>
|
672
|
-
|
673
|
-
<tr>
|
674
|
-
<td><a href="https://github.com/topbitdu/unidom-contact">unidom-contact</a></td>
|
675
|
-
<td>200103DDHHMMSS</td>
|
676
|
-
<td>
|
677
|
-
<ul>
|
678
|
-
<li>Contact Subscription</li>
|
679
|
-
<li>Email Address</li>
|
680
|
-
</ul>
|
681
|
-
</td>
|
682
|
-
<td>The Contact domain model engine includes the Contact Subscription and Email Address models. 联系方式领域模型引擎包括联系方式订阅和电子邮箱地址的模型。</td>
|
683
|
-
</tr>
|
684
|
-
|
685
|
-
<tr>
|
686
|
-
<td><a href="https://github.com/topbitdu/unidom-geo">unidom-geo</a></td>
|
687
|
-
<td>200104DDHHMMSS</td>
|
688
|
-
<td>
|
689
|
-
<ul>
|
690
|
-
<li>Location</li>
|
691
|
-
<li>Locating</li>
|
692
|
-
</ul>
|
693
|
-
</td>
|
694
|
-
<td>The Geo domain model engine includes the Location and Locating models. 地理领域模型引擎包括位置和定位的模型。</td>
|
695
|
-
</tr>
|
696
|
-
|
697
|
-
|
698
|
-
<tr>
|
699
|
-
<td><a href="https://github.com/topbitdu/unidom-article_number">unidom-article_number</a></td>
|
700
|
-
<td>200201DDHHMMSS</td>
|
701
|
-
<td>
|
702
|
-
<ul>
|
703
|
-
<li>Marking</li>
|
704
|
-
<li>EAN 13 Barcode</li>
|
705
|
-
<li>EAN 8 Barcode</li>
|
706
|
-
</ul>
|
707
|
-
</td>
|
708
|
-
<td>The Article Number domain model engine includes Marking, EAN-13, and EAN-8 models. 物品编码领域模型引擎包括打码、EAN-13和EAN-8的模型。</td>
|
709
|
-
</tr>
|
710
|
-
|
711
|
-
<tr>
|
712
|
-
<td><a href="https://github.com/topbitdu/unidom-product">unidom-product</a></td>
|
713
|
-
<td>200202DDHHMMSS</td>
|
714
|
-
<td>
|
715
|
-
<ul>
|
716
|
-
<li>Product</li>
|
717
|
-
<li>Product Associating</li>
|
718
|
-
</ul>
|
719
|
-
</td>
|
720
|
-
<td>The Product domain model engine includes Product and Produt Associating models. 产品领域模型引擎包括产品和产品关联的模型。</td>
|
721
|
-
</tr>
|
722
|
-
|
723
|
-
<tr>
|
724
|
-
<td><a href="https://github.com/topbitdu/unidom-price">unidom-price</a></td>
|
725
|
-
<td>200203DDHHMMSS</td>
|
726
|
-
<td>
|
727
|
-
<ul>
|
728
|
-
<li>Price</li>
|
729
|
-
</ul>
|
730
|
-
</td>
|
731
|
-
<td>The Price domain model engine includes Price and its relative models. 价格领域模型引擎包括定价及其相关的模型。</td>
|
732
|
-
</tr>
|
733
|
-
|
734
|
-
<tr>
|
735
|
-
<td><a href="https://github.com/topbitdu/unidom-shopping">unidom-shopping</a></td>
|
736
|
-
<td>200205DDHHMMSS</td>
|
737
|
-
<td>
|
738
|
-
<ul>
|
739
|
-
<li>Shopping Cart</li>
|
740
|
-
<li>Shopping Item</li>
|
741
|
-
</ul>
|
742
|
-
</td>
|
743
|
-
<td>The Shopping domain model engine includes Shopping Cart and Shopping Item models. 购物领域模型引擎包括购物车和购物项的模型。</td>
|
744
|
-
</tr>
|
745
|
-
|
746
|
-
<tr>
|
747
|
-
<td><a href="https://github.com/topbitdu/unidom-order">unidom-order</a></td>
|
748
|
-
<td>200206DDHHMMSS</td>
|
749
|
-
<td>
|
750
|
-
<ul>
|
751
|
-
<li>Order</li>
|
752
|
-
<li>Order Item</li>
|
753
|
-
<li>Order Adjustment</li>
|
754
|
-
</ul>
|
755
|
-
</td>
|
756
|
-
<td>The Order domain model engine includes Order, Order Item, and Order Adjustment models. 订单领域模型引擎包括订单、订单项和订单调整的模型。</td>
|
757
|
-
</tr>
|
758
|
-
|
759
|
-
<tr>
|
760
|
-
<td><a href="https://github.com/topbitdu/unidom-inventory">unidom-inventory</a></td>
|
761
|
-
<td>200209DDHHMMSS</td>
|
762
|
-
<td>
|
763
|
-
<ul>
|
764
|
-
<li>Serialized Inventory Item</li>
|
765
|
-
<li>Grouped Inventory Item</li>
|
766
|
-
<li>Lot</li>
|
767
|
-
<li>Inventory Item Variance</li>
|
768
|
-
</ul>
|
769
|
-
</td>
|
770
|
-
<td>The Inventory domain model engine includes the Serialized Inventory Item, the Grouped Inventory Item, the Lot, and the Inventory Item Variance models. 库存领域模型引擎包括序列化库存项、分组库存项、批量和库存项变化的模型。</td>
|
771
|
-
</tr>
|
772
|
-
|
773
|
-
<tr>
|
774
|
-
<td><a href="https://github.com/topbitdu/unidom-shipment">unidom-shipment</a></td>
|
775
|
-
<td>200210DDHHMMSS</td>
|
776
|
-
<td>
|
777
|
-
<ul>
|
778
|
-
<li>Shipment</li>
|
779
|
-
<li>Shipment Item</li>
|
780
|
-
<li>Shipment Package</li>
|
781
|
-
<li>Shipment Package Item</li>
|
782
|
-
<li>Shipment Receipt</li>
|
783
|
-
</ul>
|
784
|
-
</td>
|
785
|
-
<td>The Shipment domain model engine includes the Shipment, Shipment Item, Shipment Package, Shipment Package Item, and Shipment Receipt model. 装运领域模型引擎包括装运、装运项、装运包裹、装运包裹项、装运收据的模型。</td>
|
786
|
-
</tr>
|
787
|
-
|
788
|
-
|
789
|
-
<tr>
|
790
|
-
<td><a href="https://github.com/topbitdu/unidom-position">unidom-position</a></td>
|
791
|
-
<td>200402DDHHMMSS</td>
|
792
|
-
<td>
|
793
|
-
<ul>
|
794
|
-
<li>Occupation</li>
|
795
|
-
<li>Position</li>
|
796
|
-
<li>Post</li>
|
797
|
-
<li>Position Reporting Structure</li>
|
798
|
-
</ul>
|
799
|
-
</td>
|
800
|
-
<td>The Position domain model engine includes the Occupation, Position, Post, and Position Reporting Structure models.
|
801
|
-
职位领域模型引擎包括职业、职位、岗位及岗位报告关系模型。</td>
|
802
|
-
</tr>
|
803
|
-
|
804
|
-
<tr>
|
805
|
-
<td><a href="https://github.com/topbitdu/unidom-accession">unidom-accession</a></td>
|
806
|
-
<td>200405DDHHMMSS</td>
|
807
|
-
<td>
|
808
|
-
<ul>
|
809
|
-
<li>Post Fulfillment</li>
|
810
|
-
</ul>
|
811
|
-
</td>
|
812
|
-
<td>The Accession domain model engine includes the Post Fulfillment and its relative models. 就职领域模型引擎包括岗位履行及其相关的模型。</td>
|
813
|
-
</tr>
|
814
|
-
|
815
|
-
|
816
|
-
</tbody>
|
817
|
-
</table>
|
556
|
+
|Ruby Gem|Migration|Model|Description|
|
557
|
+
|--- |--- |--- |--- |
|
558
|
+
|unidom-common|200001DDHHMMSS|-|The Common domain model engine includes the common models. 常用领域模型引擎包括一些常用的模型。|
|
559
|
+
|unidom-visitor|200002DDHHMMSS|Identificating, Authenticating, Recognization, User, Guest, Password|The Visitor domain model engine includes Identificating, Authenticating, Recognization, Visitor (User & Guest), and Password models. 访问者领域模型引擎包括身份标识、身份鉴别、身份识别、访问者(用户和游客)、密码的模型。|
|
560
|
+
|unidom-category|200003DDHHMMSS|Category, Categorizing, Category Rollup, Category Associating|The Category domain model engine includes Category and its relative models. 类别领域模型引擎包括类别及其相关的模型。|
|
561
|
+
|unidom-authorization|200004DDHHMMSS|Permission, Authorizing|The Authorization domain model engine includes the Permission and Authorizing models. 授权领域模型引擎包括权限、授权的模型。|
|
562
|
+
|unidom-action|200005DDHHMMSS|Reason, State Transition, Obsolescing, Acting|The Action domain model engine includes the Reason, State Transition, Obsolescing, and the Acting models. 审计领域模型引擎包括原因、状态迁移、废弃和行为日志的模型。|
|
563
|
+
|unidom-standard|200006DDHHMMSS|Standard, Standard Associating|The Standard domain model engine includes the Standard model and the Standard Associating model. 标准领域模型引擎包括行为标准和标准关联的模型。|
|
564
|
+
|unidom-party|200101DDHHMMSS|Person, Shop, Company, Government Agency, Party Relation|The Party domain model engine includes the Person, Shop, Company, Government Agency, and the Party Relation models. 参与者领域模型引擎包括个人、店铺、公司、政府机构、参与者关系的模型。|
|
565
|
+
|unidom-certificate|200102DDHHMMSS|Certificating|The Certificate domain model engine includes the Certificating model.
|
566
|
+
证书领域模型引擎包括证书认证的模型。|
|
567
|
+
|unidom-contact|200103DDHHMMSS|Contact Subscription, Email Address|The Contact domain model engine includes the Contact Subscription and Email Address models. 联系方式领域模型引擎包括联系方式订阅和电子邮箱地址的模型。|
|
568
|
+
|unidom-geo|200104DDHHMMSS|Location, Locating|The Geo domain model engine includes the Location and Locating models. 地理领域模型引擎包括位置和定位的模型。|
|
569
|
+
|unidom-article_number|200201DDHHMMSS|Marking, EAN 13 Barcode, EAN 8 Barcode|The Article Number domain model engine includes Marking, EAN-13, and EAN-8 models. 物品编码领域模型引擎包括打码、EAN-13和EAN-8的模型。|
|
570
|
+
|unidom-product|200202DDHHMMSS|Product, Product Associating|The Product domain model engine includes Product and Produt Associating models. 产品领域模型引擎包括产品和产品关联的模型。|
|
571
|
+
|unidom-price|200203DDHHMMSS|Price|The Price domain model engine includes Price and its relative models. 价格领域模型引擎包括定价及其相关的模型。|
|
572
|
+
|unidom-shopping|200205DDHHMMSS|Shopping Cart, Shopping Item|The Shopping domain model engine includes Shopping Cart and Shopping Item models. 购物领域模型引擎包括购物车和购物项的模型。|
|
573
|
+
|unidom-order|200206DDHHMMSS|Order, Order Item, Order Adjustment|The Order domain model engine includes Order, Order Item, and Order Adjustment models. 订单领域模型引擎包括订单、订单项和订单调整的模型。|
|
574
|
+
|unidom-inventory|200209DDHHMMSS|Serialized Inventory Item, Grouped Inventory Item, Lot, Inventory Item Variance|The Inventory domain model engine includes the Serialized Inventory Item, the Grouped Inventory Item, the Lot, and the Inventory Item Variance models. 库存领域模型引擎包括序列化库存项、分组库存项、批量和库存项变化的模型。|
|
575
|
+
|unidom-shipment|200210DDHHMMSS|Shipment, Shipment Item, Shipment Package, Shipment Package Item, Shipment Receipt|The Shipment domain model engine includes the Shipment, Shipment Item, Shipment Package, Shipment Package Item, and Shipment Receipt model. 装运领域模型引擎包括装运、装运项、装运包裹、装运包裹项、装运收据的模型。|
|
576
|
+
|unidom-position|200402DDHHMMSS|Occupation, Position, Post, Position Reporting Structure|The Position domain model engine includes the Occupation, Position, Post, and Position Reporting Structure models.
|
577
|
+
职位领域模型引擎包括职业、职位、岗位及岗位报告关系模型。|
|
578
|
+
|unidom-accession|200405DDHHMMSS|Post Fulfillment|The Accession domain model engine includes the Post Fulfillment and its relative models. 就职领域模型引擎包括岗位履行及其相关的模型。|
|
579
|
+
|unidom-stapar|200601DDHHMMSS|Sample, Matching|The Statistical Approach of Pattern Recognition domain model engine includes the Sample and Matching and its relative models. 统计模式识别领域模型引擎包括采样、匹配的模型。|
|
580
|
+
|
818
581
|
|
819
582
|
### Country Extensions (200YMM9NNNMMSS)
|
820
583
|
|
@@ -41,7 +41,7 @@ module Unidom::Common::Concerns::Aes256Cryptor
|
|
41
41
|
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
class_methods do
|
45
45
|
|
46
46
|
def encryption_algorithm
|
47
47
|
'AES-256-CBC'
|
@@ -60,7 +60,9 @@ module Unidom::Common::Concerns::Aes256Cryptor
|
|
60
60
|
cipher = OpenSSL::Cipher::AES.new(256, 'CBC')
|
61
61
|
cipher.encrypt
|
62
62
|
cipher.padding = aes_256_padding
|
63
|
-
|
63
|
+
|
64
|
+
times = key.length/cipher.key_len>=1 ? 1 : cipher.key_len/key.length+1
|
65
|
+
cipher.key = (key*times)[0..cipher.key_len-1]
|
64
66
|
|
65
67
|
cipher.update(message)+cipher.final
|
66
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|