unidom-product 0.1 → 0.2

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: 60c5ab3ae92279af3a31bc2a9f7692f26e29c342
4
- data.tar.gz: 30fd81784691836738aa30837068ca8f173ee952
3
+ metadata.gz: 3ffc91256049f8adff3103f2b2c0bc758c9fc213
4
+ data.tar.gz: d97de3611d61a28105031e08d080e72bdb5bdf82
5
5
  SHA512:
6
- metadata.gz: d59af05a1eb09c18752acdfdf81f0d9c3de37675797b90e2d819a275d506909f2d3bec9730982161445c2000be74f8e0de8177631e5e3f2230b26003ea1db0fa
7
- data.tar.gz: 53ff54d832e1253fb6447271ce5953b1de27423f6ab6a616d3228809fe2db0bd82558c8d6c639d9eb891d5e88ef54d495311b372f29b62f69a16ceb6e4c0a911
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
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
4
+ [![Gem Version](https://badge.fury.io/rb/unidom-product.svg)](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
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Product
3
- VERSION = '0.1'.freeze
3
+ VERSION = '0.2'.freeze
4
4
  end
5
5
  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.1'
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-10 00:00:00.000000000 Z
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: The Product domain model engine includes Product and its relative models.
74
+ summary: Unidom Product Domain Model Engine 产品领域模型引擎
75
75
  test_files: []