unidom-inventory 0.7 → 0.7.1

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: 35d04ff352b48b18c1a0d73de2221a123e203b62
4
- data.tar.gz: 0a05c18f72d67c5a0d3b874b44bf23f0fce24a52
3
+ metadata.gz: 7e5d681c37ab2a7ce500813a5df5896e0854fa51
4
+ data.tar.gz: 9bd0fba8290f1534a74c04eca240415ae9983bec
5
5
  SHA512:
6
- metadata.gz: b57410f0fe3215aebcbcaf07b0963e2ee93f8d32975c7bd2a339be7658ccf6d29687ce47493175ec3d1b207b47284e8db5d368c93a73214a5ff5f4833ed5c4d0
7
- data.tar.gz: dd5f8cc480b4a8f3be19540efa99654e2f2bf926466cc7e2cece7f80a85a7f87a0775ab850eee63c2e07b8a227bcbe228bbcec92b70f826de0e2bc6bea54fff9
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.rdoc')
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
- Bundler::GemHelper.install_tasks
23
+ require 'bundler/gem_tasks'
24
24
 
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/unidom/inventory .js
2
+ //= link_directory ../stylesheets/unidom/inventory .css
@@ -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 styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
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
  */
@@ -1,2 +1,3 @@
1
1
  class Unidom::Inventory::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -0,0 +1,2 @@
1
+ class Unidom::Inventory::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Inventory::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Inventory::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,6 +1,6 @@
1
1
  # Grouped Inventory Item 是分组库存项。
2
2
 
3
- class Unidom::Inventory::GroupedInventoryItem < ActiveRecord::Base
3
+ class Unidom::Inventory::GroupedInventoryItem < Unidom::Inventory::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_grouped_inventory_items'
6
6
 
@@ -3,7 +3,7 @@
3
3
  # #reason 是调整的原因。
4
4
  # #quantity 是调整数量,正数表示库存增加,负数表示库存减少。
5
5
 
6
- class Unidom::Inventory::InventoryItemVariance < ActiveRecord::Base
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 < ActiveRecord::Base
6
+ class Unidom::Inventory::ItemIssuing < Unidom::Inventory::ApplicationRecord
7
7
 
8
8
  self.table_name = 'unidom_item_issuings'
9
9
 
@@ -1,6 +1,6 @@
1
1
  # Lot 是批量。
2
2
 
3
- class Unidom::Inventory::Lot < ActiveRecord::Base
3
+ class Unidom::Inventory::Lot < Unidom::Inventory::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_lots'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Pick Item 是出库单项。
2
2
 
3
- class Unidom::Inventory::PickItem < ActiveRecord::Base
3
+ class Unidom::Inventory::PickItem < Unidom::Inventory::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_pick_items'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Pick List 是出库单。
2
2
 
3
- class Unidom::Inventory::PickList < ActiveRecord::Base
3
+ class Unidom::Inventory::PickList < Unidom::Inventory::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_pick_lists'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Serialized Inventory Item 是序列化库存项。
2
2
 
3
- class Unidom::Inventory::SerializedInventoryItem < ActiveRecord::Base
3
+ class Unidom::Inventory::SerializedInventoryItem < Unidom::Inventory::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_serialized_inventory_items'
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Inventory
3
- VERSION = '0.7'.freeze
3
+ VERSION = '0.7.1'.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'
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-10-12 00:00:00.000000000 Z
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.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 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