unidom-inventory 0.7.5 → 0.8

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: 3def5f3156c518aea115d97b00a070fe8d1f67d4
4
- data.tar.gz: 8530497bac887d9e94f1f80a3055fa454077cf4b
3
+ metadata.gz: 9dfaf76f12b1e87709dda0d1e98b29c5d698238b
4
+ data.tar.gz: 09351223269c99dd7b829177fe98a16547b15043
5
5
  SHA512:
6
- metadata.gz: 1eea9bb7dc43e33bfa6f2758a537727ba799781fe088ce75029050eb3b6fd17fc172f80d5a12b80e81484bae5bdc9547d9ac81a17bd3ac027b99e3f49de4db57
7
- data.tar.gz: 9b0522a0c0c2294297654e6d6f582734ac1f300dd38b93c6530d3a4aa28b13669604787634ffadd390ddafbc3c913a26268fd37563e4a931dc7756e70d57a4fa
6
+ metadata.gz: 418c0d32329497fb63dddb0889a8ff16edb7f237e6a940268d51ac4250f0a800e9181a212648f1caf7b9757a01e7ef9742bf0a7e0edb633e8c5037aa27a77dfe
7
+ data.tar.gz: 08e68e9f020b7de78d101b68bf8b95bc7bc63db57efabcab7ffda3e7527efe76be5e4c396e19e7b6a3258d537341c75cceaa64dde951f6d52e1d9b9a2c072878
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Unidom Inventory 库存领域模型引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/unidom-inventory/frames)
3
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
5
+
4
6
  [![Gem Version](https://badge.fury.io/rb/unidom-inventory.svg)](https://badge.fury.io/rb/unidom-inventory)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-inventory.svg)](https://gemnasium.com/github.com/topbitdu/unidom-inventory)
6
8
 
@@ -112,3 +114,18 @@ Unidom::Common.configure do |options|
112
114
 
113
115
  end
114
116
  ```
117
+
118
+
119
+
120
+ ## RSpec examples
121
+
122
+ ```ruby
123
+ # spec/models/unidom_spec.rb
124
+ require 'unidom/inventory/models_rspec'
125
+
126
+ # spec/types/unidom_spec.rb
127
+ require 'unidom/inventory/types_rspec'
128
+
129
+ # spec/validators/unidom_spec.rb
130
+ require 'unidom/inventory/validators_rspec'
131
+ ```
@@ -0,0 +1,24 @@
1
+ describe Unidom::Inventory::GroupedInventoryItem, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ stored_id: SecureRandom.uuid,
13
+ stored_type: 'Unidom::Inventory::Stored::Mock',
14
+ store_id: SecureRandom.uuid,
15
+ store_type: 'Unidom::Inventory::Store::Mock',
16
+ lot_id: SecureRandom.uuid,
17
+ quantity: 120.000000
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1,23 @@
1
+ describe Unidom::Inventory::InventoryItemVariance, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ inventory_item_id: SecureRandom.uuid,
13
+ inventory_item_type: 'Unidom::Inventory::InventoryItem::Mock',
14
+ reason_id: SecureRandom.uuid,
15
+ reason_type: 'Unidom::Inventory::Reason::Mock',
16
+ quantity: 120.000000
17
+ }
18
+
19
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
20
+
21
+ end
22
+
23
+ end
@@ -0,0 +1,24 @@
1
+ describe Unidom::Inventory::ItemIssuing, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ inventory_item_id: SecureRandom.uuid,
13
+ inventory_item_type: 'Unidom::Inventory::InventoryItem::Mock',
14
+ target_item_id: SecureRandom.uuid,
15
+ target_item_type: 'Unidom::Inventory::TargetItem::Mock',
16
+ pick_item_id: SecureRandom.uuid,
17
+ quantity: 120.000000
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1,20 @@
1
+ describe Unidom::Inventory::Lot, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ identification_number: '123456789012',
13
+ quantity: 120.000000
14
+ }
15
+
16
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
17
+
18
+ end
19
+
20
+ end
@@ -0,0 +1,22 @@
1
+ describe Unidom::Inventory::PickItem, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ inventory_item_id: SecureRandom.uuid,
13
+ inventory_item_type: 'Unidom::Inventory::InventoryItem::Mock',
14
+ pick_list_id: SecureRandom.uuid,
15
+ quantity: 120.000000
16
+ }
17
+
18
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,18 @@
1
+ describe Unidom::Inventory::PickList, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ }
13
+
14
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
15
+
16
+ end
17
+
18
+ end
@@ -0,0 +1,24 @@
1
+ describe Unidom::Inventory::SerializedInventoryItem, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ stored_id: SecureRandom.uuid,
13
+ stored_type: 'Unidom::Inventory::Stored::Mock',
14
+ store_id: SecureRandom.uuid,
15
+ store_type: 'Unidom::Inventory::Store::Mock',
16
+ lot_id: SecureRandom.uuid,
17
+ serial_number: '123456789012'
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1,7 @@
1
+ require 'rspec/models/unidom/inventory/grouped_inventory_item_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::GroupedInventoryItem'
2
+ require 'rspec/models/unidom/inventory/inventory_item_variance_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::InventoryItemVariance'
3
+ require 'rspec/models/unidom/inventory/item_issuing_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::ItemIssuing'
4
+ require 'rspec/models/unidom/inventory/lot_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::Lot'
5
+ require 'rspec/models/unidom/inventory/pick_item_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::PickItem'
6
+ require 'rspec/models/unidom/inventory/pick_list_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::PickList'
7
+ require 'rspec/models/unidom/inventory/serialized_inventory_item_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Inventory::SerializedInventoryItem'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Inventory
3
- VERSION = '0.7.5'.freeze
3
+ VERSION = '0.8'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: '0.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2017-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -63,9 +63,19 @@ files:
63
63
  - db/migrate/20020921000000_create_unidom_pick_lists.rb
64
64
  - db/migrate/20020922000000_create_unidom_pick_items.rb
65
65
  - db/migrate/20020923000000_create_unidom_item_issuings.rb
66
+ - lib/rspec/models/unidom/inventory/grouped_inventory_item_spec.rb
67
+ - lib/rspec/models/unidom/inventory/inventory_item_variance_spec.rb
68
+ - lib/rspec/models/unidom/inventory/item_issuing_spec.rb
69
+ - lib/rspec/models/unidom/inventory/lot_spec.rb
70
+ - lib/rspec/models/unidom/inventory/pick_item_spec.rb
71
+ - lib/rspec/models/unidom/inventory/pick_list_spec.rb
72
+ - lib/rspec/models/unidom/inventory/serialized_inventory_item_spec.rb
66
73
  - lib/tasks/inventory_tasks.rake
67
74
  - lib/unidom/inventory.rb
68
75
  - lib/unidom/inventory/engine.rb
76
+ - lib/unidom/inventory/models_rspec.rb
77
+ - lib/unidom/inventory/types_rspec.rb
78
+ - lib/unidom/inventory/validators_rspec.rb
69
79
  - lib/unidom/inventory/version.rb
70
80
  homepage: https://github.com/topbitdu/unidom-inventory
71
81
  licenses: