unidom-inventory 0.7.3 → 0.7.4

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: 2b506d680636ad905932e3ddb72453b5cd9b026b
4
- data.tar.gz: 69afbd3dba768f0a88bcd4aadc5879d798649522
3
+ metadata.gz: eb92d2f9e70d5f4cd23dda116402fea9179dcc78
4
+ data.tar.gz: d0914e4acd8fa703c36f9e8b7bd9a6d1f3891bd1
5
5
  SHA512:
6
- metadata.gz: 02a00850a76aea28ae805bd1d94d1d267de27170909c275c99d7c50bbf80339c1e39198712aa3af1fd97e2bc3a0e69dad64abeebc38b7cae351f8a32fdecf52c
7
- data.tar.gz: ca59d776fca2b873c42bfbbcebe4ac1af15020384055c1a3c0c694002bcdbf9eef7a9809b1058e8863c49998d66056d11dc08e1bc78be2dffed7abfd025052e3
6
+ metadata.gz: f4b31cb3d59e140a72a8bd539ec0c159c602db46169914cbb837ad181907c4e01354f73e9679d74a737cd7a266ce94086a48c2cac850d0cd9c764b0a9222a331
7
+ data.tar.gz: b467454a0b92364431e71f90f4fce6ae58fe8b67b4ebd092c6f364e830934c9a6896178ee8d8cc78c62a469d0a3763c4541ed6120128329acf6e5260fe0efe98
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Grouped Inventory Item 是分组库存项。
2
3
 
3
4
  class Unidom::Inventory::GroupedInventoryItem < Unidom::Inventory::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Inventory Item Variance 是库存项变化。
2
3
  # #inventory_item 是被调整的库存项。
3
4
  # #reason 是调整的原因。
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Item Issuing 是条目出库。
2
3
  # #pick_item 是出库项。
3
4
  # #inventory_item 是库存项,可以由 #pick_item 导出。
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Lot 是批量。
2
3
 
3
4
  class Unidom::Inventory::Lot < Unidom::Inventory::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Pick Item 是出库单项。
2
3
 
3
4
  class Unidom::Inventory::PickItem < Unidom::Inventory::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Pick List 是出库单。
2
3
 
3
4
  class Unidom::Inventory::PickList < Unidom::Inventory::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Serialized Inventory Item 是序列化库存项。
2
3
 
3
4
  class Unidom::Inventory::SerializedInventoryItem < Unidom::Inventory::ApplicationRecord
@@ -13,7 +13,7 @@ class CreateUnidomSerializedInventoryItems < ActiveRecord::Migration
13
13
  t.string :serial_number, null: false, default: nil, limit: 200
14
14
 
15
15
  t.column :state, 'char(1)', null: false, default: 'C'
16
- t.datetime :opened_at, null: false, default: ::Time.utc(1970)
16
+ t.datetime :opened_at, null: false, default: Time.utc(1970)
17
17
  t.datetime :closed_at, null: false, default: ::Time.utc(3000)
18
18
  t.boolean :defunct, null: false, default: false
19
19
  t.jsonb :notation, null: false, default: {}
@@ -3,11 +3,11 @@ module Unidom
3
3
 
4
4
  class Engine < ::Rails::Engine
5
5
 
6
+ include Unidom::Common::EngineExtension
7
+
6
8
  isolate_namespace ::Unidom::Inventory
7
9
 
8
- initializer :append_migrations do |app|
9
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
10
- end
10
+ enable_initializer enum_enabled: false, migration_enabled: true
11
11
 
12
12
  end
13
13
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Inventory
3
- VERSION = '0.7.3'.freeze
3
+ VERSION = '0.7.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
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-12-06 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.7.1
19
+ version: '1.8'
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.7.1
26
+ version: '1.8'
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 (统一领域对象模型)是一系列的领域模型引擎。库存领域模型引擎包括序列化库存项、分组库存项、批量和库存项变化的模型。