unidom-product 0.1 → 0.2
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 +5 -4
- data/app/models/unidom/product/product.rb +2 -0
- data/lib/unidom/product/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ffc91256049f8adff3103f2b2c0bc758c9fc213
|
|
4
|
+
data.tar.gz: d97de3611d61a28105031e08d080e72bdb5bdf82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 87b2e3ebf3901d80f0fe6a9fb9c98889c594c6fd674abf8790f345fce5e3ae5d88966acf437d3bc9ed1fb8b772889e79eba601f452ad95ea991a68b5f04bd260
|
|
7
|
+
data.tar.gz: 64b7b2eb1213caad9fc7fd5442ac87b751c500b26e754ad683c9443d5fbe91993aea9baad1877aa1e9a344fd27bebf27b70b8c0fdf198a5e46da7222e02f4994
|
data/README.md
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
# Unidom Product
|
|
1
|
+
# Unidom Product 产品领域模型引擎
|
|
2
2
|
|
|
3
3
|
[](http://opensource.org/licenses/MIT)
|
|
4
|
+
[](https://badge.fury.io/rb/unidom-product)
|
|
4
5
|
|
|
5
6
|
Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Product domain model engine includes Product and its relative models.
|
|
6
7
|
Unidom (统一领域对象模型)是一系列的领域模型引擎。产品领域模型引擎包括产品及其相关的模型。
|
|
7
8
|
|
|
8
|
-
## Usage in Gemfile
|
|
9
|
+
## Usage in Gemfile
|
|
9
10
|
```ruby
|
|
10
11
|
gem 'unidom-product'
|
|
11
12
|
```
|
|
12
13
|
|
|
13
|
-
## Run the Database Migration
|
|
14
|
+
## Run the Database Migration
|
|
14
15
|
```shell
|
|
15
16
|
rake db:migrate
|
|
16
17
|
```
|
|
17
18
|
|
|
18
|
-
## Call the Model
|
|
19
|
+
## Call the Model
|
|
19
20
|
```ruby
|
|
20
21
|
Unidom::Product::Product.valid_at.alive.first
|
|
21
22
|
```
|
|
@@ -9,4 +9,6 @@ class Unidom::Product::Product < ActiveRecord::Base
|
|
|
9
9
|
validates :measurement_unit, presence: true, length: { in: 1..self.columns_hash['measurement_unit'].limit }
|
|
10
10
|
validates :packing_norm, presence: true, length: { in: 1..self.columns_hash['packing_norm'].limit }
|
|
11
11
|
|
|
12
|
+
include Unidom::Common::Concerns::ModelExtension
|
|
13
|
+
|
|
12
14
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unidom-product
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.2'
|
|
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-02-
|
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|
|
@@ -71,5 +71,5 @@ rubyforge_project:
|
|
|
71
71
|
rubygems_version: 2.4.5.1
|
|
72
72
|
signing_key:
|
|
73
73
|
specification_version: 4
|
|
74
|
-
summary:
|
|
74
|
+
summary: Unidom Product Domain Model Engine 产品领域模型引擎
|
|
75
75
|
test_files: []
|