unidom-visitor 1.12.1 → 1.12.3

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: 2ca805c110a9fabb0b3b9338e650389afc289005
4
- data.tar.gz: b211a560e00ab4e79bcb8908ac50068ccf2ffa5b
3
+ metadata.gz: 628b0a826d6227185ecda5880be694b63a74a16e
4
+ data.tar.gz: 310f5b1253e666d8914c68c5c5d0f28dd154dcfa
5
5
  SHA512:
6
- metadata.gz: 5ebd90eff12a4469d45906af9335061d56280801ee3c1fdbff3b9e9256d7c1445b4fb9213d9fc2a8246a56a9201288f668ef188c2221306f2a379b1962c67dec
7
- data.tar.gz: d808b8317f77c2af4e50c37ec4d280f33c17fe1480fe06c52127f2eb797cd2e1e28195a83fa46c2d1849a7c3ed2c73770c5a4cbf123f54533d958db6e7ea3a31
6
+ metadata.gz: f88d39b9adff575d947818417d7898b9efbac4e7e6bc0f6e76b85a916851216c394e6ff13212b378f5ce5469d6d9e4230644b182a975bb96aaab3afd96c9bfbc
7
+ data.tar.gz: fed8e571b36faef204e43faee5cc729accdd18c2543fb651346cf8560c98311ded435154711ffcbd02589a439893221925fce592f1cfd839e8fdea7475512122
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Authenticating 是身份鉴定,存储访问者(visitor)和信任状(credential)之间的关系。
2
3
  # flag_code 有4个枚举值:RQRD (required)、SFCT (sufficient)、RQST (requisite)、OPTN (optional)。
3
4
  # 各枚举值的含义见: http://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html 。
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Guest 是系统访客。
2
3
 
3
4
  class Unidom::Visitor::Guest < Unidom::Visitor::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Identificating 是身份关联,存储身份(identity)和访问者(visitor)之间的关联关系。
2
3
 
3
4
  class Unidom::Visitor::Identificating < Unidom::Visitor::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Password 是密码。
2
3
 
3
4
  class Unidom::Visitor::Password < Unidom::Visitor::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Recognization 是访问者识别,用于维护访问者和参与者的对应关系。
2
3
 
3
4
  class Unidom::Visitor::Recognization < Unidom::Visitor::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # User 是系统用户。
2
3
 
3
4
  class Unidom::Visitor::User < Unidom::Visitor::ApplicationRecord
@@ -1,19 +1,13 @@
1
- require 'unidom/common/yaml_helper'
2
-
3
1
  module Unidom
4
2
  module Visitor
5
3
 
6
4
  class Engine < ::Rails::Engine
7
5
 
8
- isolate_namespace ::Unidom::Visitor
6
+ include Unidom::Common::EngineExtension
9
7
 
10
- initializer :load_config_initializers do |app|
11
- Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root
12
- end
8
+ isolate_namespace ::Unidom::Visitor
13
9
 
14
- initializer :append_migrations do |app|
15
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
16
- end
10
+ enable_initializer enum_enabled: true, migration_enabled: true
17
11
 
18
12
  end
19
13
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Visitor
3
- VERSION = '1.12.1'.freeze
3
+ VERSION = '1.12.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-visitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.3
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-11-18 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.8'
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.7'
26
+ version: '1.8'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The Visitor domain model engine includes User, Guest, Administrator, and Password
29
29
  models. Unidom (统一领域对象模型)是一系列的领域模型引擎。访问者领域模型引擎包括用户、游客、管理员和密码的模型。