interest 0.0.2 → 0.1.0

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: db3f3e5e177d1f9cadc4cc8e9e47db3da053fb8c
4
- data.tar.gz: 7f519de87a569330f0912e46e0ccb86fac2aa836
3
+ metadata.gz: dd5f35dd271bd2f288fd39492316c60a780566b0
4
+ data.tar.gz: b42ce9381de03eeb3ef0efff2e51e23cc6090a53
5
5
  SHA512:
6
- metadata.gz: 5c2b439fadd5dc295e4c65f20e1b33863195149694bc885c989d84a6665d4a967ea5aed2ecc20e80900bcadea66cf01164ae5aa2460a51a0e8557ab37a041f3f
7
- data.tar.gz: aa3732ae39b50117f043adb9a2355fafd03d4532ee055c64d3f08a9708bc9c81105710fb064561041445cbeda2e8a2581e3441d5c42f65b3f76ab023744571d0
6
+ metadata.gz: f4d32c0e849aba961b97240a5a21160e41c2ca07daf4fa4f5187da8c2b1c3fe1381d427591b3cffa210d8f70e315cf30f9b64747b5629df82963aad38b9d80ee
7
+ data.tar.gz: 53a781c3a8157a8b13e047d59c26153c75b5c4bd8c72e3ec587c07f7bf6ab5a2f2915672a4d64d9911dee2fe30cd9c3c01472de1341cec98303b45b3e2f92e39
data/README.md CHANGED
@@ -262,7 +262,7 @@ returns `Blocking` or raises `Interest::Blockable::Rejected`.
262
262
  Otherwise,
263
263
 
264
264
  ```ruby
265
- blocking = blog.block!(user)
265
+ blocking = blog.block(user)
266
266
  ```
267
267
 
268
268
  returns `Blocking` or `nil`
@@ -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"}).uniq },
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"}).uniq },
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"}).uniq },
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"}).uniq },
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
@@ -1,3 +1,3 @@
1
1
  module Interest
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
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.2
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: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2015-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport