unidom-shopping 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6520e603a50d1c769effc7db7ed2c973c404113
4
- data.tar.gz: 04fb61b4f8f3770ab5a3e40202ab7d895fabee2c
3
+ metadata.gz: 744035cfa07343f8d3154893d0026231e1c84b0c
4
+ data.tar.gz: 5893b8a7b0e3f4e2f85abfec9bccea61acc99b2e
5
5
  SHA512:
6
- metadata.gz: bf7db647d169869bf861086f53d4c7c9923a6cf97c117ee1b312864e14810b53bb72dbc311433ff6e7ba4a3770e30213c4ca9a071e1c6f8b575af334ef516f06
7
- data.tar.gz: 9295e5f1fae29c4dff2cf8b4c84067d605d2a5c25f6d82927df1d9b6229bcac346a60a742322214863e86f0bbbac3856b296b6b8d5ed2f6863f0f997e0f87335
6
+ metadata.gz: 6e3dacabd5a464a9a7dd793da3f591d4d156ae2e9c79444579fda6086cc50d1fa3a35545d64bd1aaba27d0a982dc644bff4c32cbc0bc388f14cf5f6eaf7f90a3
7
+ data.tar.gz: 21e17d7a67ebd0db431a34e614d14f76151c2545e582063b6fea4fe1f49e1fc1163b6f931886ca205ee18fe6a7dd404ca281bd15a1499b075c7345040e566c74
data/README.md CHANGED
@@ -1,21 +1,22 @@
1
- # Unidom Shopping
1
+ # Unidom Shopping 购物领域模型引擎
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-shopping.svg)](https://badge.fury.io/rb/unidom-shopping)
4
5
 
5
6
  Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Shopping domain model engine includes Shopping Cart and Shopping Item models.
6
7
  Unidom (统一领域对象模型)是一系列的领域模型引擎。购物领域模型引擎包括购物车和购物项的模型。
7
8
 
8
- ## Usage in Gemfile:
9
+ ## Usage in Gemfile
9
10
  ```ruby
10
11
  gem 'unidom-shopping'
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::Shopping::ShoppingCart.valid_at.alive.first.items.valid.alive
21
22
  ```
@@ -12,4 +12,6 @@ class Unidom::Shopping::ShoppingCart < ActiveRecord::Base
12
12
  scope :shopped_by, ->(shopper) { where shopper: shopper }
13
13
  scope :shop_is, ->(shop) { where shop: shop }
14
14
 
15
+ include Unidom::Common::Concerns::ModelExtension
16
+
15
17
  end
@@ -15,4 +15,6 @@ class Unidom::Shopping::ShoppingItem < ActiveRecord::Base
15
15
  scope :shopped_by, ->(shopper) { where shopper: shopper }
16
16
  scope :shopped_is, ->(shopped) { where shopped: shopped }
17
17
 
18
+ include Unidom::Common::Concerns::ModelExtension
19
+
18
20
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Shopping
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-shopping
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
@@ -73,6 +73,5 @@ rubyforge_project:
73
73
  rubygems_version: 2.4.5.1
74
74
  signing_key:
75
75
  specification_version: 4
76
- summary: The Shopping domain model engine includes Shopping Cart and Shopping Item
77
- models.
76
+ summary: Unidom Shopping Domain Model Engine 购物领域模型引擎
78
77
  test_files: []