unidom-shipment 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47402bf9c8f7a99d62b95a5121c2940168de0a92
4
- data.tar.gz: 80ec887738bfa806ab25d11d8d461b35a4b9ece5
3
+ metadata.gz: 4eddf58eee2b913c2ba594f8f8ae50a10ab132e1
4
+ data.tar.gz: 9704157ca710c331557b4605b846fdfa2e9a05cd
5
5
  SHA512:
6
- metadata.gz: da1a73e6824e4e623d43bdabb2dfdd68d89c22f5a06ce9ce046fd54ac7fedd62eab1e3d0e17ac3e577f4a083bf46874c260a67b60eeed45d58f654348d1eeb41
7
- data.tar.gz: 5e1c59a66be1f4f7cb1085ca4757f7f819177accfe21a8636bc6af814dc96f5ee74e3e59740c8ed2d2c85bf19100f56924c640be0abc985da036cf16913796b6
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``
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Shipment
3
- VERSION = '0.3'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
5
5
  end
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: '0.3'
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-10-02 00:00:00.000000000 Z
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.0'
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.0'
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
  (统一领域对象模型)是一系列的领域模型引擎。装运领域模型引擎包括装运和装运项的模型。