unidom-party 1.6 → 1.7

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: f27f34bb20b80585520c786cfb813e9218788f57
4
- data.tar.gz: 7785f0f54cd08dbb8cbcd56ce83853537ab70d4b
3
+ metadata.gz: 1d22f872e320c0d91af4f8769f421236057b1350
4
+ data.tar.gz: f3e2a58a200cb5c4b9971ea8f99f17ec4feed2bb
5
5
  SHA512:
6
- metadata.gz: 4b9a3349edf2e3d6975beaa2896fa0ffc84f206488b9bd73a57c3db589fb07c8ef8a6b7e2e4c6afc0d9a531fe0221362a03e205749fd348403da2a3567998ee0
7
- data.tar.gz: c55824e0f21a5e5a45c1c4fb36aa6dae604a6f51eb0f7a36e6efbb0a835752de73f324c9d1c90971c656f4b3377deea4987b2468c3c6349f86048d70d8673824
6
+ metadata.gz: aa7fa549f5e569c31b584db4580ff944649f59724bce6739dca621330c9b6f5cf16f9646046ced229da6a03128e2ff0753e33a40fb4f12ea068746331a059686
7
+ data.tar.gz: 76ce858ba7334e059a4e26015dd1323598aeaa7b4b50ffac483a86c528f4c89b5d6f87887da06d4a9c22b4bd795a713093dfb7eb3b0ee65fff0cc78278da99a4
data/README.md CHANGED
@@ -89,10 +89,11 @@ The As Target Party concern do the following tasks for the includer automaticall
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
91
  2. Define the #is_collaborated! method as: ``is_collaborated!(by: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
92
+ 3. Define the #is_collaborated? method as: ``is_collaborated?(by: nil, as: nil, at: Time.now, priority: 0, grade: 0)``
92
93
 
93
94
  ### As Collaborator concern
94
95
 
95
96
  The As Collaborator concern do the following tasks for the includer automatically:
96
97
  1. Define the has_many :collaboratings macro as: ``has_many :collaboratings, class_name: 'Unidom::Party::Collaborating', as: :collaborator``
97
98
  2. Define the #collaborate! method as: ``collaborate!(on: nil, as: nil, at: Time.now, name: nil, priority: 0, grade: 0)``
98
-
99
+ 3. Define the #collaborate? method as: ``collaborate?(on: nil, as: nil, at: Time.now, priority: 0, grade: 0)``
@@ -17,7 +17,6 @@ module Unidom::Party::Concerns::AsCollaboration
17
17
  collaborating
18
18
  end
19
19
 
20
- =begin
21
20
  def is_collaborated?(by: nil, as: nil, at: Time.now, priority: nil, grade: nil)
22
21
  query = collaboratings
23
22
  query = query.collaborated_by by if by.present?
@@ -26,7 +25,6 @@ module Unidom::Party::Concerns::AsCollaboration
26
25
  query = query.grade_is grade if grade.present?
27
26
  query.valid_at(now: at).alive.exists?
28
27
  end
29
- =end
30
28
 
31
29
  end
32
30
 
@@ -17,7 +17,6 @@ module Unidom::Party::Concerns::AsCollaborator
17
17
  collaborating
18
18
  end
19
19
 
20
- =begin
21
20
  def collaborate?(on: nil, as: nil, at: Time.now, priority: nil, grade: nil)
22
21
  query = collaboratings
23
22
  query = query.collaboration_is on if on.present?
@@ -26,7 +25,6 @@ module Unidom::Party::Concerns::AsCollaborator
26
25
  query = query.grade_is grade if grade.present?
27
26
  query.valid_at(now: at).alive.exists?
28
27
  end
29
- =end
30
28
 
31
29
  end
32
30
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Party
3
- VERSION = '1.6'.freeze
3
+ VERSION = '1.7'.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.6'
4
+ version: '1.7'
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-10 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common