social_stream 0.12.9 → 0.12.10
Sign up to get free protection for your applications and to get access to all the features.
data/base/app/models/actor.rb
CHANGED
@@ -206,7 +206,7 @@ class Actor < ActiveRecord::Base
|
|
206
206
|
subject_types = Array(options[:type] || self.class.subtypes)
|
207
207
|
subject_classes = subject_types.map{ |s| s.to_s.classify }
|
208
208
|
|
209
|
-
as = Actor.
|
209
|
+
as = Actor.group(:id).
|
210
210
|
where('actors.subject_type' => subject_classes)
|
211
211
|
|
212
212
|
if options[:load_subjects].nil? || options[:load_subjects]
|
@@ -29,6 +29,22 @@ describe User do
|
|
29
29
|
it "should represent" do
|
30
30
|
@user.represented.should include(@group)
|
31
31
|
end
|
32
|
+
|
33
|
+
context "and a second group" do
|
34
|
+
before do
|
35
|
+
@second_group =
|
36
|
+
Factory(:member,
|
37
|
+
:contact => Factory(:group_contact,
|
38
|
+
:receiver => @user.actor)
|
39
|
+
).sender_subject
|
40
|
+
Factory(:friend, :contact => @user.contact_to!(@second_group))
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should represent both groups" do
|
44
|
+
@user.represented.should include(@group)
|
45
|
+
@user.represented.should include(@second_group)
|
46
|
+
end
|
47
|
+
end
|
32
48
|
end
|
33
49
|
end
|
34
50
|
|
data/social_stream.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
12
|
|
13
13
|
# Gem dependencies
|
14
|
-
s.add_runtime_dependency('social_stream-base', '~> 0.9.
|
14
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.32')
|
15
15
|
s.add_runtime_dependency('social_stream-documents', '~> 0.4.5')
|
16
16
|
s.add_runtime_dependency('social_stream-events', '~> 0.0.20')
|
17
17
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 10
|
10
|
+
version: 0.12.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GING - DIT - UPM
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 123
|
31
31
|
segments:
|
32
32
|
- 0
|
33
33
|
- 9
|
34
|
-
-
|
35
|
-
version: 0.9.
|
34
|
+
- 32
|
35
|
+
version: 0.9.32
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|