interest 0.0.2 → 0.1.0
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 +4 -4
- data/README.md +1 -1
- data/lib/interest/blockable/blockee.rb +0 -2
- data/lib/interest/blockable/blocker.rb +0 -2
- data/lib/interest/follow_requestable/follow_requestee.rb +1 -2
- data/lib/interest/follow_requestable/follow_requester.rb +1 -2
- data/lib/interest/followable/followee.rb +1 -2
- data/lib/interest/followable/follower.rb +1 -2
- data/lib/interest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd5f35dd271bd2f288fd39492316c60a780566b0
|
4
|
+
data.tar.gz: b42ce9381de03eeb3ef0efff2e51e23cc6090a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4d32c0e849aba961b97240a5a21160e41c2ca07daf4fa4f5187da8c2b1c3fe1381d427591b3cffa210d8f70e315cf30f9b64747b5629df82963aad38b9d80ee
|
7
|
+
data.tar.gz: 53a781c3a8157a8b13e047d59c26153c75b5c4bd8c72e3ec587c07f7bf6ab5a2f2915672a4d64d9911dee2fe30cd9c3c01472de1341cec98303b45b3e2f92e39
|
data/README.md
CHANGED
@@ -17,7 +17,6 @@ module Interest
|
|
17
17
|
|
18
18
|
def define_blockee_association_methods
|
19
19
|
has_many :blocker_relationships,
|
20
|
-
-> { uniq },
|
21
20
|
as: :blockee,
|
22
21
|
dependent: :destroy,
|
23
22
|
class_name: Interest.blocking_class_name do
|
@@ -29,7 +28,6 @@ module Interest
|
|
29
28
|
association_method_name = blockee_association_method_name_for source_type
|
30
29
|
|
31
30
|
has_many association_method_name,
|
32
|
-
-> { uniq },
|
33
31
|
through: :blocker_relationships,
|
34
32
|
source: :blocker,
|
35
33
|
source_type: source_type
|
@@ -46,7 +46,6 @@ module Interest
|
|
46
46
|
|
47
47
|
def define_blocker_association_methods
|
48
48
|
has_many :blocking_relationships,
|
49
|
-
-> { uniq },
|
50
49
|
as: :blocker,
|
51
50
|
dependent: :destroy,
|
52
51
|
class_name: Interest.blocking_class_name do
|
@@ -58,7 +57,6 @@ module Interest
|
|
58
57
|
association_method_name = blocker_association_method_name_for source_type
|
59
58
|
|
60
59
|
has_many association_method_name,
|
61
|
-
-> { uniq },
|
62
60
|
through: :blocking_relationships,
|
63
61
|
source: :blockee,
|
64
62
|
source_type: source_type
|
@@ -22,7 +22,7 @@ module Interest
|
|
22
22
|
|
23
23
|
def define_follow_requestee_association_methods
|
24
24
|
has_many :incoming_follow_requests,
|
25
|
-
-> { where(followings: {status: "pending"})
|
25
|
+
-> { where(followings: {status: "pending"}) },
|
26
26
|
as: :followee,
|
27
27
|
dependent: :destroy,
|
28
28
|
class_name: "Following" do
|
@@ -34,7 +34,6 @@ module Interest
|
|
34
34
|
association_method_name = follow_requestee_association_method_name_for source_type
|
35
35
|
|
36
36
|
has_many association_method_name,
|
37
|
-
-> { uniq },
|
38
37
|
through: :incoming_follow_requests,
|
39
38
|
source: :follower,
|
40
39
|
source_type: source_type
|
@@ -69,7 +69,7 @@ module Interest
|
|
69
69
|
|
70
70
|
def define_follow_requester_association_methods
|
71
71
|
has_many :outgoing_follow_requests,
|
72
|
-
-> { where(followings: {status: "pending"})
|
72
|
+
-> { where(followings: {status: "pending"}) },
|
73
73
|
as: :follower,
|
74
74
|
dependent: :destroy,
|
75
75
|
class_name: "Following" do
|
@@ -81,7 +81,6 @@ module Interest
|
|
81
81
|
association_method_name = follow_requester_association_method_name_for source_type
|
82
82
|
|
83
83
|
has_many association_method_name,
|
84
|
-
-> { uniq },
|
85
84
|
through: :outgoing_follow_requests,
|
86
85
|
source: :followee,
|
87
86
|
source_type: source_type
|
@@ -18,7 +18,7 @@ module Interest
|
|
18
18
|
|
19
19
|
def define_followee_association_methods
|
20
20
|
has_many :follower_relationships,
|
21
|
-
-> { where(Interest.following_class.table_name.to_sym => {status: "accepted"})
|
21
|
+
-> { where(Interest.following_class.table_name.to_sym => {status: "accepted"}) },
|
22
22
|
as: :followee,
|
23
23
|
dependent: :destroy,
|
24
24
|
class_name: Interest.following_class_name do
|
@@ -30,7 +30,6 @@ module Interest
|
|
30
30
|
association_method_name = followee_association_method_name_for source_type
|
31
31
|
|
32
32
|
has_many association_method_name,
|
33
|
-
-> { uniq },
|
34
33
|
through: :follower_relationships,
|
35
34
|
source: :follower,
|
36
35
|
source_type: source_type
|
@@ -45,7 +45,7 @@ module Interest
|
|
45
45
|
|
46
46
|
def define_follower_association_methods
|
47
47
|
has_many :following_relationships,
|
48
|
-
-> { where(Interest.following_class.table_name.to_sym => {status: "accepted"})
|
48
|
+
-> { where(Interest.following_class.table_name.to_sym => {status: "accepted"}) },
|
49
49
|
as: :follower,
|
50
50
|
dependent: :destroy,
|
51
51
|
class_name: Interest.following_class_name do
|
@@ -57,7 +57,6 @@ module Interest
|
|
57
57
|
association_method_name = follower_association_method_name_for source_type
|
58
58
|
|
59
59
|
has_many association_method_name,
|
60
|
-
-> { uniq },
|
61
60
|
through: :following_relationships,
|
62
61
|
source: :followee,
|
63
62
|
source_type: source_type
|
data/lib/interest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tatat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|