unidom-party 1.7 → 1.7.1

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: 1d22f872e320c0d91af4f8769f421236057b1350
4
- data.tar.gz: f3e2a58a200cb5c4b9971ea8f99f17ec4feed2bb
3
+ metadata.gz: 593dbd76ed532a32976886c41a47fb3e5467ca5b
4
+ data.tar.gz: 5eb673bde8a4198296ce2fa18a4daea8317cb78c
5
5
  SHA512:
6
- metadata.gz: aa7fa549f5e569c31b584db4580ff944649f59724bce6739dca621330c9b6f5cf16f9646046ced229da6a03128e2ff0753e33a40fb4f12ea068746331a059686
7
- data.tar.gz: 76ce858ba7334e059a4e26015dd1323598aeaa7b4b50ffac483a86c528f4c89b5d6f87887da06d4a9c22b4bd795a713093dfb7eb3b0ee65fff0cc78278da99a4
6
+ metadata.gz: 795c84bdf901c6e1a9bced24f26f46416acd01d99c87963b7234c7a6d72588e487200cfbcd47eb30085899405de03bff71e926ae6e9ea6c035c676269b766616
7
+ data.tar.gz: 26022b7665e3c17e51aa66d817b5ec695e17b5d3b17eb2100e644df835394f8282d23bc83b52619f9e8e89cf97ccf7f6348fd7ca0e26334b93ad4edbecca47f4
data/README.md CHANGED
@@ -88,12 +88,12 @@ The As Target Party concern do the following tasks for the includer automaticall
88
88
 
89
89
  The As Collaboration concern do the following tasks for the includer automatically:
90
90
  1. Define the has_many :collaboratings macro as: ``has_many :collaboratings, class_name: 'Unidom::Party::Collaborating', as: :collaboration``
91
- 2. Define the #is_collaborated! method as: ``is_collaborated!(by: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
91
+ 2. Define the #is_collaborated! method as: ``is_collaborated!(by: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
92
92
  3. Define the #is_collaborated? method as: ``is_collaborated?(by: nil, as: nil, at: Time.now, priority: 0, grade: 0)``
93
93
 
94
94
  ### As Collaborator concern
95
95
 
96
96
  The As Collaborator concern do the following tasks for the includer automatically:
97
97
  1. Define the has_many :collaboratings macro as: ``has_many :collaboratings, class_name: 'Unidom::Party::Collaborating', as: :collaborator``
98
- 2. Define the #collaborate! method as: ``collaborate!(on: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
98
+ 2. Define the #collaborate! method as: ``collaborate!(on: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
99
99
  3. Define the #collaborate? method as: ``collaborate?(on: nil, as: nil, at: Time.now, priority: 0, grade: 0)``
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
11
  rdoc.title = 'Unidom::Party'
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/party .js
2
+ //= link_directory ../stylesheets/unidom/party .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,6 +1,3 @@
1
- module Unidom
2
- module Party
3
- class ApplicationController < ActionController::Base
4
- end
5
- end
6
- end
1
+ class Unidom::Party::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
3
+ end
@@ -0,0 +1,2 @@
1
+ class Unidom::Party::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Party::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Party::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,6 +1,6 @@
1
1
  # Collaborating 是参与者以特定的角色进行协作。
2
2
 
3
- class Unidom::Party::Collaborating < ActiveRecord::Base
3
+ class Unidom::Party::Collaborating < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_collaboratings'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Company 是公司。
2
2
 
3
- class Unidom::Party::Company < ActiveRecord::Base
3
+ class Unidom::Party::Company < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_companies'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Government Agency 是政府机构。
2
2
  # function_code 是行政职能代码: PLST: Police Station 公安局, PLSS: Police Sub-Station 派出所
3
- class Unidom::Party::GovernmentAgency < ActiveRecord::Base
3
+ class Unidom::Party::GovernmentAgency < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_government_agencies'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Party Relation 是参与者关系。
2
2
 
3
- class Unidom::Party::PartyRelation < ActiveRecord::Base
3
+ class Unidom::Party::PartyRelation < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_party_relations'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Person 是个人。
2
2
 
3
- class Unidom::Party::Person < ActiveRecord::Base
3
+ class Unidom::Party::Person < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_people'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Shop 是店铺。
2
2
 
3
- class Unidom::Party::Shop < ActiveRecord::Base
3
+ class Unidom::Party::Shop < Unidom::Party::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_shops'
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Party
3
- VERSION = '1.7'.freeze
3
+ VERSION = '1.7.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-party
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: 1.7.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-12 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 Party domain model engine includes Person, Shop, and Company models. Unidom
29
29
  (统一领域对象模型)是一系列的领域模型引擎。参与者领域模型引擎包括个人、店铺、公司的模型。
@@ -36,10 +36,14 @@ files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
38
  - Rakefile
39
+ - app/assets/config/unidom-party_manifest.js
39
40
  - app/assets/javascripts/unidom/party/application.js
40
41
  - app/assets/stylesheets/unidom/party/application.css
41
42
  - app/controllers/unidom/party/application_controller.rb
42
43
  - app/helpers/unidom/party/application_helper.rb
44
+ - app/jobs/unidom/party/application_job.rb
45
+ - app/mailers/unidom/party/application_mailer.rb
46
+ - app/models/unidom/party/application_record.rb
43
47
  - app/models/unidom/party/collaborating.rb
44
48
  - app/models/unidom/party/company.rb
45
49
  - app/models/unidom/party/concerns/as_collaboration.rb