unidom-visitor 1.11 → 1.11.1

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: e48ebebb1b63ac2cdf105fffd01697b0ddd4a00d
4
- data.tar.gz: 23057f0e338c11f6f2c2cf0dc0fd917bd260d935
3
+ metadata.gz: 5ab916ee221e27ae570697bb28b33267e70e0581
4
+ data.tar.gz: 3c6f7db796776ac7e723822d6af995a9e3874c14
5
5
  SHA512:
6
- metadata.gz: a61c04b79e23c7caf2e20960d9cb99f3273dc0c8029ff570c779072f9e99be114051f760c794cb48ad7ac8458813fbfe9808b0d26fe8be61e37a280cd7c60d20
7
- data.tar.gz: 09d4c093b59b7e41d57f451147d52dbb8cccce749c4c9cc6dc3214fb3d83ded55ac010c967c531e4be50cf09e0391f374c9ccb202f286650d852974b510b9087
6
+ metadata.gz: ab5403fda5e638b09a7e65dceaf6fd7a617c6fb009a6803dba2d1104a826359563b05e230844e3d611d99413e9ba312ad7f87a64883cb104ab3fd38f16a34be0
7
+ data.tar.gz: 10f6bedb1d26b7feea672fd7c1bda268aaecb67b169ec5e1bf52707f4b1c5c96b7aea0a4842807dbbe8da2a6d7edb90b595725c5b1dee50cff55c20822e925c6
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
11
  rdoc.title = 'Visitor'
12
12
  rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
13
+ rdoc.rdoc_files.include('README.md')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
@@ -20,5 +20,5 @@ load 'rails/tasks/statistics.rake'
20
20
 
21
21
 
22
22
 
23
- Bundler::GemHelper.install_tasks
23
+ require 'bundler/gem_tasks'
24
24
 
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/unidom/visitor .js
2
+ //= link_directory ../stylesheets/unidom/visitor .css
@@ -5,7 +5,7 @@
5
5
  // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
6
  //
7
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
9
  //
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
@@ -6,9 +6,9 @@
6
6
  * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
8
  * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
12
  *
13
13
  *= require_self
14
14
  */
@@ -1,2 +1,3 @@
1
1
  class Unidom::Visitor::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -0,0 +1,2 @@
1
+ class Unidom::Visitor::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Visitor::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Visitor::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -2,7 +2,7 @@
2
2
  # flag_code 有4个枚举值:RQRD (required)、SFCT (sufficient)、RQST (requisite)、OPTN (optional)。
3
3
  # 各枚举值的含义见: http://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html 。
4
4
 
5
- class Unidom::Visitor::Authenticating < ActiveRecord::Base
5
+ class Unidom::Visitor::Authenticating < Unidom::Visitor::ApplicationRecord
6
6
 
7
7
  self.table_name = 'unidom_authenticatings'
8
8
 
@@ -1,6 +1,6 @@
1
1
  # Guest 是系统访客。
2
2
 
3
- class Unidom::Visitor::Guest < ActiveRecord::Base
3
+ class Unidom::Visitor::Guest < Unidom::Visitor::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_guests'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Identificating 是身份关联,存储身份(identity)和访问者(visitor)之间的关联关系。
2
2
 
3
- class Unidom::Visitor::Identificating < ActiveRecord::Base
3
+ class Unidom::Visitor::Identificating < Unidom::Visitor::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_identificatings'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Password 是密码。
2
2
 
3
- class Unidom::Visitor::Password < ActiveRecord::Base
3
+ class Unidom::Visitor::Password < Unidom::Visitor::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_passwords'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Recognization 是访问者识别,用于维护访问者和参与者的对应关系。
2
2
 
3
- class Unidom::Visitor::Recognization < ActiveRecord::Base
3
+ class Unidom::Visitor::Recognization < Unidom::Visitor::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_recognizations'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # User 是系统用户。
2
2
 
3
- class Unidom::Visitor::User < ActiveRecord::Base
3
+ class Unidom::Visitor::User < Unidom::Visitor::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_users'
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Visitor
3
- VERSION = '1.11'.freeze
3
+ VERSION = '1.11.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-visitor
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.11'
4
+ version: 1.11.1
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-10-16 00:00:00.000000000 Z
11
+ date: 2016-11-03 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.0'
19
+ version: '1.6'
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.0'
26
+ version: '1.6'
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 (统一领域对象模型)是一系列的领域模型引擎。访问者领域模型引擎包括用户、游客、管理员和密码的模型。
@@ -36,10 +36,14 @@ files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
38
  - Rakefile
39
+ - app/assets/config/unidom-visitor_manifest.js
39
40
  - app/assets/javascripts/unidom/visitor/application.js
40
41
  - app/assets/stylesheets/unidom/visitor/application.css
41
42
  - app/controllers/unidom/visitor/application_controller.rb
42
43
  - app/helpers/unidom/visitor/application_helper.rb
44
+ - app/jobs/unidom/visitor/application_job.rb
45
+ - app/mailers/unidom/visitor/application_mailer.rb
46
+ - app/models/unidom/visitor/application_record.rb
43
47
  - app/models/unidom/visitor/authenticating.rb
44
48
  - app/models/unidom/visitor/concerns/as_credential.rb
45
49
  - app/models/unidom/visitor/concerns/as_identity.rb