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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d22f872e320c0d91af4f8769f421236057b1350
|
4
|
+
data.tar.gz: f3e2a58a200cb5c4b9971ea8f99f17ec4feed2bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/unidom/party/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|