unidom-sequence 0.2.1 → 0.2.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: bed39ebf2c1d5be9c87a5e243b9254bfc9f13c69
4
- data.tar.gz: ca4a2e7c84c5e998f32448879c0528651c466ffb
3
+ metadata.gz: 14be5d4ceac5f50bb6aa077ad1dab2f28c702dd2
4
+ data.tar.gz: 891e5e563d4c2159cd450af52b02d6501264b841
5
5
  SHA512:
6
- metadata.gz: bad04a0095c24c863b6a71d0ac5fa9ff8fa23247f164124514badcd45818494517fc2e7de483e5ff3248c9dbaa43ad4aa0e90198756a1b6d52cf1a9205a8a6e3
7
- data.tar.gz: 0d7150a8bdbbb37341e675a5b2b375afa2029cda65746161c3b3b8332c2f34b5d76c22f8e2841db4d4891deed8aac81e5dbbe99ece7d9b1081e2e8e3289f63b9
6
+ metadata.gz: 3195c7d985b9e0cdef1ee7a58538399129d69b9f2c827f60ce53059a4674cc92bdd075f5bdeece9c47aee4ddc30da2b18003134be80ac1cbc51fd3b8669762a4
7
+ data.tar.gz: 116cf69c721eb8a01c5072cc3f9be57ca3aa58a7a4d233647a3518faba6b0593573a6dae32784bfb4e757baf4eb911deef48e650412397b7fe65f48339ac6301
data/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Unidom Sequence 序列领域模型引擎
2
2
 
3
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/unidom-sequence/frames)
3
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
5
+
4
6
  [![Gem Version](https://badge.fury.io/rb/unidom-sequence.svg)](https://badge.fury.io/rb/unidom-sequence)
5
7
  [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-sequence.svg)](https://gemnasium.com/github.com/topbitdu/unidom-sequence)
6
8
 
9
+
7
10
  Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Sequence domain model engine includes the Sequence model and its relative models.
8
11
  Unidom (统一领域对象模型)是一系列的领域模型引擎。序列领域模型引擎包括序列和与其相关的模型。
9
12
 
@@ -39,3 +42,19 @@ The migration versions start with 200008.
39
42
  serial_number_1 = Unidom::Sequence::Sequence.generate! 'FLNO', '12345620170101' # 1
40
43
  serial_number_2 = Unidom::Sequence::Sequence.generate! 'FLNO', '12345620170101' # 2
41
44
  ```
45
+
46
+
47
+
48
+ ## Disable the Model & Migration
49
+
50
+ If you only need the app components other than models, the migrations should be neglected, and the models should not be loaded.
51
+ ```ruby
52
+ # config/initializers/unidom.rb
53
+ Unidom::Common.configure do |options|
54
+
55
+ options[:neglected_namespaces] = %w{
56
+ Unidom::Sequence
57
+ }
58
+
59
+ end
60
+ ```
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application controller 是模块内所有控制器的基类。
3
+
1
4
  class Unidom::Sequence::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::Sequence::ApplicationJob < ActiveJob::Base
2
5
  end
@@ -1,3 +1,6 @@
1
+ ##
2
+ # Application mailer 是模块内所有电子邮件发送类的基类。
3
+
1
4
  class Unidom::Sequence::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::Sequence::ApplicationRecord < ActiveRecord::Base
2
5
  self.abstract_class = true
3
6
  end
@@ -15,4 +15,4 @@ class Unidom::Sequence::Sequence < Unidom::Sequence::ApplicationRecord
15
15
  sequence.serial_number
16
16
  end
17
17
 
18
- end
18
+ end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Sequence::Sequence'
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Sequence
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-sequence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.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-06 00:00:00.000000000 Z
11
+ date: 2017-01-20 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 Sequence domain model engine includes the Sequence model and its relative models.
29
29
  Unidom (统一领域对象模型)是一系列的领域模型引擎。序列领域模型引擎包括序列和与其相关的模型。