unidom-inventory 0.7 → 0.7.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 +4 -4
- data/README.md +3 -1
- data/Rakefile +2 -2
- data/app/assets/config/unidom-inventory_manifest.js +2 -0
- data/app/assets/javascripts/unidom/inventory/application.js +1 -1
- data/app/assets/stylesheets/unidom/inventory/application.css +3 -3
- data/app/controllers/unidom/inventory/application_controller.rb +1 -0
- data/app/jobs/unidom/inventory/application_job.rb +2 -0
- data/app/mailers/unidom/inventory/application_mailer.rb +4 -0
- data/app/models/unidom/inventory/application_record.rb +3 -0
- data/app/models/unidom/inventory/grouped_inventory_item.rb +1 -1
- data/app/models/unidom/inventory/inventory_item_variance.rb +1 -1
- data/app/models/unidom/inventory/item_issuing.rb +1 -1
- data/app/models/unidom/inventory/lot.rb +1 -1
- data/app/models/unidom/inventory/pick_item.rb +1 -1
- data/app/models/unidom/inventory/pick_list.rb +1 -1
- data/app/models/unidom/inventory/serialized_inventory_item.rb +1 -1
- data/lib/unidom/inventory/version.rb +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5d681c37ab2a7ce500813a5df5896e0854fa51
|
4
|
+
data.tar.gz: 9bd0fba8290f1534a74c04eca240415ae9983bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c344071bf509b7ca5f09dc91ac9d27f0fc9cd5f7b7ed77f3840d51086977deed04205c64ccebe7a239f95ca60f0f660c426f412a1c4118843da69c421f3f2dd
|
7
|
+
data.tar.gz: 8ce1ef690b700ed73ba64464ea529d4b87231eab10ca4f32e7b1b541da9a8c4d0a597864beb1f429080a8c9431a22ea8a239464fc217ccb05ec0c7ba33297c4b
|
data/README.md
CHANGED
@@ -60,7 +60,9 @@ grouped_inventory_item.is_adjusted! 10, due_to: nil, at: Time.now, description:
|
|
60
60
|
## Include the Concerns
|
61
61
|
|
62
62
|
```ruby
|
63
|
-
include Unidom::Inventory::AsInventoryItem
|
63
|
+
include Unidom::Inventory::Concerns::AsInventoryItem
|
64
|
+
include Unidom::Inventory::Concerns::AsStore
|
65
|
+
include Unidom::Inventory::Concerns::AsStored
|
64
66
|
```
|
65
67
|
|
66
68
|
### As Inventory Item concern
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
10
10
|
rdoc.rdoc_dir = 'rdoc'
|
11
11
|
rdoc.title = 'Unidom Inventory'
|
12
12
|
rdoc.options << '--line-numbers'
|
13
|
-
rdoc.rdoc_files.include('README.
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
14
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
15
|
end
|
16
16
|
|
@@ -20,5 +20,5 @@ load 'rails/tasks/statistics.rake'
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
|
23
|
+
require 'bundler/gem_tasks'
|
24
24
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
6
|
//
|
7
7
|
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
8
|
+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
9
9
|
//
|
10
10
|
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
@@ -6,9 +6,9 @@
|
|
6
6
|
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
7
|
*
|
8
8
|
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any
|
10
|
-
*
|
11
|
-
* file per style scope.
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
+
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
+
* It is generally better to create a new file per style scope.
|
12
12
|
*
|
13
13
|
*= require_self
|
14
14
|
*/
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# #reason 是调整的原因。
|
4
4
|
# #quantity 是调整数量,正数表示库存增加,负数表示库存减少。
|
5
5
|
|
6
|
-
class Unidom::Inventory::InventoryItemVariance <
|
6
|
+
class Unidom::Inventory::InventoryItemVariance < Unidom::Inventory::ApplicationRecord
|
7
7
|
|
8
8
|
self.table_name = 'unidom_inventory_item_variances'
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# #inventory_item 是库存项,可以由 #pick_item 导出。
|
4
4
|
# #target_item 是目标项,比如: ShipmentItem 、 OrderItem 等。
|
5
5
|
|
6
|
-
class Unidom::Inventory::ItemIssuing <
|
6
|
+
class Unidom::Inventory::ItemIssuing < Unidom::Inventory::ApplicationRecord
|
7
7
|
|
8
8
|
self.table_name = 'unidom_item_issuings'
|
9
9
|
|
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:
|
4
|
+
version: 0.7.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-03 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 Inventory domain model engine includes the Serialized Inventory Item, the Grouped
|
29
29
|
Inventory Item, the Lot, and the Inventory Item Variance models. Unidom (统一领域对象模型)是一系列的领域模型引擎。库存领域模型引擎包括序列化库存项、分组库存项、批量和库存项变化的模型。
|
@@ -36,10 +36,14 @@ files:
|
|
36
36
|
- MIT-LICENSE
|
37
37
|
- README.md
|
38
38
|
- Rakefile
|
39
|
+
- app/assets/config/unidom-inventory_manifest.js
|
39
40
|
- app/assets/javascripts/unidom/inventory/application.js
|
40
41
|
- app/assets/stylesheets/unidom/inventory/application.css
|
41
42
|
- app/controllers/unidom/inventory/application_controller.rb
|
42
43
|
- app/helpers/unidom/inventory/application_helper.rb
|
44
|
+
- app/jobs/unidom/inventory/application_job.rb
|
45
|
+
- app/mailers/unidom/inventory/application_mailer.rb
|
46
|
+
- app/models/unidom/inventory/application_record.rb
|
43
47
|
- app/models/unidom/inventory/concerns/as_inventory_item.rb
|
44
48
|
- app/models/unidom/inventory/concerns/as_store.rb
|
45
49
|
- app/models/unidom/inventory/concerns/as_stored.rb
|