unidom-shipment 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/unidom/shipment/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eddf58eee2b913c2ba594f8f8ae50a10ab132e1
|
4
|
+
data.tar.gz: 9704157ca710c331557b4605b846fdfa2e9a05cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e25707e9b4fbf21cf40bfc4db8432282af683a3669b535a62b15fbf9d70be582c35f0c1bfb62272cde5519ade83fe602ffd398de7474d1661db7c19b0fe184
|
7
|
+
data.tar.gz: dcec02d688f758184b14d942036534d4ad0fb5e650de0460018861428dc2dd58b4e60280d9c9fb364f17d827b641cd5d36f7ffa8e6aa40e62c0e1aeb58bded6a
|
data/README.md
CHANGED
@@ -49,11 +49,13 @@ shipment_receipt = shipment_package.receipts.create! shipped: shipment_item
|
|
49
49
|
|
50
50
|
|
51
51
|
## Include the Concerns
|
52
|
+
|
52
53
|
```ruby
|
53
54
|
include Unidom::Shipment::Concerns::AsShipped
|
54
55
|
```
|
55
56
|
|
56
57
|
### As Shipped
|
58
|
+
|
57
59
|
The As Shipped concern do the following tasks for the includer automatically:
|
58
|
-
1. Define the has_many :shipment_items macro as: ``has_many :shipment_items, class_name: 'Unidom::Shipment::ShipmentItem', foreign_key: :shipped_id``
|
60
|
+
1. Define the has_many :shipment_items macro as: ``has_many :shipment_items, class_name: 'Unidom::Shipment::ShipmentItem', foreign_key: :shipped_id``
|
59
61
|
2. Define the has_many :shipment_receipts macro as: ``has_many :shipment_receipts, class_name: 'Unidom::Shipment::ShipmentReceipt', foreign_key: :shipped_id``
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-shipment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.6'
|
20
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: '1.
|
26
|
+
version: '1.6'
|
27
27
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|
28
28
|
The Shipment domain model engine includes the Shipment and the Shipment Item. Unidom
|
29
29
|
(统一领域对象模型)是一系列的领域模型引擎。装运领域模型引擎包括装运和装运项的模型。
|