unidom-accession 2.2 → 2.2.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: fac5a377dcd1674c04524568cdc5907da9a9d533
4
- data.tar.gz: 9bc341f3a66552a6a2d77d0176484d2b762a58d2
3
+ metadata.gz: b288b507d1caf232920b7275345ba76d871538fa
4
+ data.tar.gz: e71db03b18a65c3d5545ed545ed4767817caa197
5
5
  SHA512:
6
- metadata.gz: ceac71f14c063463326cf22d1b184507db0fc6e93092b542a307175aa49ed06e797412fed8761b28253e0958c043d38ca84c4f6a059e4e37bad5fa43e1aa3270
7
- data.tar.gz: 45c35c9e4bbb1e845f0f5094499a19d95efffcb3d2059eafffac3090f26cdadc0e091a2d3c70fcd8e67d8757f2eb8d4a78d6d78eb9c5b38f4d018c4b73eed9d3
6
+ metadata.gz: c2376cc4d2bc9a8395148b33b07cb7845c35796ad8b400aab9446ff63f7c0759eff9375648b25ecc12e636f4ec6521f06624efc6b72b15b358f17ff1812c3d83
7
+ data.tar.gz: ecb479b1c816ff51535d4d10e82daba74e61fcf0f0158c37cd2d3369cd3902a0a3743b46af270c876a234aa88ae09a2eff6157a3b0450a9692c2dee2cbc27e3e
data/README.md CHANGED
@@ -2,26 +2,39 @@
2
2
 
3
3
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
4
4
  [![Gem Version](https://badge.fury.io/rb/unidom-accession.svg)](https://badge.fury.io/rb/unidom-accession)
5
+ [![Dependency Status](https://gemnasium.com/badges/github.com/topbitdu/unidom-accession.svg)](https://gemnasium.com/github.com/topbitdu/unidom-accession)
5
6
 
6
7
  Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Accession domain model engine includes Post Fullfillment and its relative models.
7
8
  Unidom (统一领域对象模型)是一系列的领域模型引擎。就职领域模型引擎包括岗位履行及其相关的模型。
8
9
 
10
+
11
+
9
12
  ## Recent Update
13
+
10
14
  Check out the [Road Map](ROADMAP.md) to find out what's the next.
11
15
  Check out the [Change Log](CHANGELOG.md) to find out what's new.
12
16
 
17
+
18
+
13
19
  ## Usage in Gemfile
20
+
14
21
  ```ruby
15
22
  gem 'unidom-accession'
16
23
  ```
17
24
 
25
+
26
+
18
27
  ## Run the Database Migration
28
+
19
29
  ```shell
20
30
  rake db:migrate
21
31
  ```
22
32
  The migration versions start with 200405.
23
33
 
34
+
35
+
24
36
  ## Call the Model
37
+
25
38
  ```ruby
26
39
  post_fulfillment = Unidom::Accession::PostFulfillment.valid_at.alive.first
27
40
 
@@ -33,22 +46,27 @@ part_time_fulfillments = Unidom::Accession::PostFulfillment.part_time.temporary(
33
46
  temporary_fulfillments = Unidom::Accession::PostFulfillment.part_time(false).temporary # all full time & temporary post fulfillments
34
47
  ```
35
48
 
49
+
50
+
36
51
  ## Include the Concern
52
+
37
53
  ```ruby
38
54
  include Unidom::Accession::Concerns::AsPostFulfilled
39
55
  include Unidom::Accession::Concerns::AsPostFulfiller
40
56
  ```
41
57
 
42
58
  ### As Post Fulfilled concern
59
+
43
60
  The As Post Fulfilled concern do the following tasks for the includer automatically:
44
61
  1. Define the has_many :post_fulfillments macro as: ``has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as: :fulfilled``
45
62
  2. Define the has_many :fulfiller_people macro as: ``has_many :fulfiller_people, through: :post_fulfillments, source: :fulfiller, source_type: 'Unidom::Party::Person'``
46
- 3. Define the #is_fulfilled_as_post! method as: ``def is_fulfilled_as_post!(by: nil, at: Time.now)``
63
+ 3. Define the #is_fulfilled_as_post! method as: ``def is_fulfilled_as_post!(by: nil, at: Time.now)``
47
64
  4. Define the #is_fulfilled_as_post? method as: ``def is_fulfilled_as_post?(by: nil, at: Time.now)``
48
65
 
49
66
  ### As Post Fulfiller concern
67
+
50
68
  The As Post Fulfiller concern do the following tasks for the includer automatically:
51
69
  1. Define the has_many :post_fulfillments macro as: ``has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as: :fulfiller``
52
70
  2. Define the has_many :fulfilled_posts macro as: ``has_many :fulfilled_posts, through: :post_fulfillments, source: :fulfilled, source_type: 'Unidom::Position::Post'``
53
- 3. Define the #fulfill_post! method as: ``def fulfill_post!(post, at: Time.now)``
71
+ 3. Define the #fulfill_post! method as: ``def fulfill_post!(post, at: Time.now)``
54
72
  4. Define the #fulfill_post? method as: ``def fulfill_post?(post, at: Time.now)``
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
11
  rdoc.title = 'Unidom Accession'
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/accession .js
2
+ //= link_directory ../stylesheets/unidom/accession .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::Accession::ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -0,0 +1,2 @@
1
+ class Unidom::Accession::ApplicationJob < ActiveJob::Base
2
+ end
@@ -0,0 +1,4 @@
1
+ class Unidom::Accession::ApplicationMailer < ActionMailer::Base
2
+ default from: 'from@example.com'
3
+ layout 'mailer'
4
+ end
@@ -0,0 +1,3 @@
1
+ class Unidom::Accession::ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -21,4 +21,7 @@ module Unidom::Accession::Concerns::AsPostFulfilled
21
21
 
22
22
  end
23
23
 
24
+ module ClassMethods
25
+ end
26
+
24
27
  end
@@ -21,4 +21,7 @@ module Unidom::Accession::Concerns::AsPostFulfiller
21
21
 
22
22
  end
23
23
 
24
+ module ClassMethods
25
+ end
26
+
24
27
  end
@@ -1,6 +1,6 @@
1
1
  # Post Fulfillment 是岗位履行。
2
2
 
3
- class Unidom::Accession::PostFulfillment < ActiveRecord::Base
3
+ class Unidom::Accession::PostFulfillment < Unidom::Accession::ApplicationRecord
4
4
 
5
5
  self.table_name = 'unidom_post_fulfillments'
6
6
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Accession
3
- VERSION = '2.2'.freeze
3
+ VERSION = '2.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-accession
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.2'
4
+ version: 2.2.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-09-25 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 Accession domain model engine includes Post Fullfillment and its relative models.
29
29
  Unidom (统一领域对象模型)是一系列的领域模型引擎。就职领域模型引擎包括岗位履行及其相关的模型。
@@ -36,10 +36,14 @@ files:
36
36
  - MIT-LICENSE
37
37
  - README.md
38
38
  - Rakefile
39
+ - app/assets/config/unidom-accession_manifest.js
39
40
  - app/assets/javascripts/unidom/accession/application.js
40
41
  - app/assets/stylesheets/unidom/accession/application.css
41
42
  - app/controllers/unidom/accession/application_controller.rb
42
43
  - app/helpers/unidom/accession/application_helper.rb
44
+ - app/jobs/unidom/accession/application_job.rb
45
+ - app/mailers/unidom/accession/application_mailer.rb
46
+ - app/models/unidom/accession/application_record.rb
43
47
  - app/models/unidom/accession/concerns/as_post_fulfilled.rb
44
48
  - app/models/unidom/accession/concerns/as_post_fulfiller.rb
45
49
  - app/models/unidom/accession/post_fulfillment.rb