unidom-price 1.6.1 → 1.6.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: 54dba26b1759af63edd3a82665dbba5f6a154c8a
4
- data.tar.gz: cc12a505cdb054facb422692749ee16d54faed9b
3
+ metadata.gz: 36acb2cd892d976aa1d11beef496a1dd55892da5
4
+ data.tar.gz: 9e6a626e4643dfcb881617bab300156e707258ba
5
5
  SHA512:
6
- metadata.gz: e74b523d59f2a857d386b946ff17a5d5a922c9c916c33dcf78817827c382caa9613a063d28d7021bec9e5486ed2b4ebead54686f1517676be7c9e976df80b2b0
7
- data.tar.gz: c9fd27bc48fc43666a9904f3078709d3bebc2caad98e1fdc390a44fee2ad3e0bc5f65f6d5485a1c6ed258786228a874c17fa215ff7280012c83fafca87d9f331
6
+ metadata.gz: 1e0358cf0fe1bd5696ce08f064e22a85cff7a54185d58169000d2a3aa15f4a23c7f87c1ee83a5d13a82a5443673f8d3f3cfae4ea34983e4f892c6ef9bb7a2362
7
+ data.tar.gz: 7849b672fe3205340507680b0a1e9708a6614a9cd6354580009e47cf5dec1132eb35755677293dd5790c45335172fd453d89d02853e52f4ced4a7a4732b453dd
data/README.md CHANGED
@@ -125,3 +125,19 @@ Unidom::Price::Pricing::DISCOUNT # 折扣成分
125
125
  Unidom::Price::Pricing::SURCHARGE # 额外收费成分
126
126
  Unidom::Price::Pricing::MANUFACTURER_SUGGESTED # 厂家建议价
127
127
  ```
128
+
129
+
130
+
131
+ ## Disable the Model & Migration
132
+
133
+ If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
134
+ ```ruby
135
+ # config/initializers/unidom.rb
136
+ Unidom::Common.configure do |options|
137
+
138
+ options[:neglected_namespaces] = %w{
139
+ Unidom::Price
140
+ }
141
+
142
+ end
143
+ ```
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Unidom::Price::ApplicationController < ActionController::Base
2
5
  protect_from_forgery with: :exception
3
6
  end
@@ -1,2 +1,5 @@
1
+ ##
2
+ # Application job 是模块内所有异步任务的基类。
3
+
1
4
  class Unidom::Price::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Unidom::Price::ApplicationMailer < ActionMailer::Base
2
5
  default from: 'from@example.com'
3
6
  layout 'mailer'
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application record 是模块内所有模型的抽象基类。
3
+
1
4
  class Unidom::Price::ApplicationRecord < ActiveRecord::Base
2
5
  self.abstract_class = true
3
6
  end
@@ -44,4 +44,4 @@ class Unidom::Price::Price < Unidom::Price::ApplicationRecord
44
44
  end
45
45
  end
46
46
 
47
- end
47
+ end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Price::Price'
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Price
3
- VERSION = '1.6.1'.freeze
3
+ VERSION = '1.6.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-price
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.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: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-01-21 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.8'
19
+ version: '1.9'
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.8'
26
+ version: '1.9'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The Price domain model engine includes Pricing and its relative models. Unidom (统一领域对象模型)是一系列的领域模型引擎。价格领域模型引擎包括定价及其相关的模型。
29
29
  email: