social_stream 0.25.0 → 0.25.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,8 @@ class ActivityObject < ActiveRecord::Base
52
52
  # after_create :create_post_activity, :unless => :acts_as_actor?
53
53
 
54
54
  scope :authored_by, lambda { |subject|
55
- joins(:received_author_action).merge(ActivityAction.sent_by(subject))
55
+ joins(:received_actions).
56
+ merge(ActivityAction.sent_by(subject).where(:author => true))
56
57
  }
57
58
 
58
59
  scope :followed, order("activity_objects.follower_count DESC")
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.19.0".freeze
3
+ VERSION = "0.19.1".freeze
4
4
  end
5
5
  end
@@ -8,6 +8,9 @@ module SocialStream
8
8
  subtype_of :activity_object,
9
9
  :build => { :object_type => to_s }
10
10
 
11
+ has_many :received_actions,
12
+ :through => :activity_object
13
+
11
14
  unless self == Actor
12
15
  validates_presence_of :author_id, :owner_id, :user_author_id
13
16
 
@@ -60,4 +60,12 @@ describe Post do
60
60
  post.post_activity.relations.should include(tie.relation)
61
61
  end
62
62
  end
63
+
64
+ describe "authored_by" do
65
+ it "should work" do
66
+ post = Factory(:post)
67
+
68
+ Post.authored_by(post.author).should include(post)
69
+ end
70
+ end
63
71
  end
@@ -7,7 +7,7 @@ SocialStream.Video = (function(SS, $, undefined){
7
7
  ready: function () {
8
8
  $(this).jPlayer("setMedia", {
9
9
  webmv: $(this).closest(".video").find(".video-webm").attr("href"), // Defines the webm url
10
- flv: $(this).closest(".video").find(".video-flv").attr("href") // Defines the flv url
10
+ flv: $(this).closest(".video").find(".video-flv").attr("href"), // Defines the flv url
11
11
  mp4: $(this).closest(".video").find(".video-mp4").attr("href") // Defines the mp4 url
12
12
  });
13
13
  },
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "0.13.0".freeze
3
+ VERSION = "0.13.1".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.19.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.1')
16
16
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.7.0')
17
17
  s.add_runtime_dependency('paperclip','= 2.4.5')
18
18
  s.add_runtime_dependency('delayed_paperclip','2.4.5.1')
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.25.0".freeze
2
+ VERSION = "0.25.1".freeze
3
3
  end
@@ -11,8 +11,8 @@ 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.19.0')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.13.0')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.19.1')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.13.1')
16
16
  s.add_runtime_dependency('social_stream-events', '~> 0.11.0')
17
17
  s.add_runtime_dependency('social_stream-linkser', '~> 0.9.0')
18
18
  s.add_runtime_dependency('social_stream-presence', '~> 0.12.0')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.25.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,33 +10,33 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-02 00:00:00.000000000Z
13
+ date: 2012-04-03 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &84203640 !ruby/object:Gem::Requirement
17
+ requirement: &82780440 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.19.0
22
+ version: 0.19.1
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *84203640
25
+ version_requirements: *82780440
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: social_stream-documents
28
- requirement: &84203100 !ruby/object:Gem::Requirement
28
+ requirement: &82778310 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.13.0
33
+ version: 0.13.1
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *84203100
36
+ version_requirements: *82778310
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: social_stream-events
39
- requirement: &84202540 !ruby/object:Gem::Requirement
39
+ requirement: &82775280 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 0.11.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *84202540
47
+ version_requirements: *82775280
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: social_stream-linkser
50
- requirement: &84202170 !ruby/object:Gem::Requirement
50
+ requirement: &82774270 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 0.9.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *84202170
58
+ version_requirements: *82774270
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: social_stream-presence
61
- requirement: &84201850 !ruby/object:Gem::Requirement
61
+ requirement: &82772290 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 0.12.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *84201850
69
+ version_requirements: *82772290
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: capybara
72
- requirement: &84201380 !ruby/object:Gem::Requirement
72
+ requirement: &82769670 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.3.9
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *84201380
80
+ version_requirements: *82769670
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3
83
- requirement: &84200740 !ruby/object:Gem::Requirement
83
+ requirement: &82767730 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *84200740
91
+ version_requirements: *82767730
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: ruby-debug19
94
- requirement: &84200310 !ruby/object:Gem::Requirement
94
+ requirement: &82750030 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *84200310
102
+ version_requirements: *82750030
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec-rails
105
- requirement: &84190140 !ruby/object:Gem::Requirement
105
+ requirement: &82747580 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 2.8.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *84190140
113
+ version_requirements: *82747580
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: factory_girl
116
- requirement: &84189750 !ruby/object:Gem::Requirement
116
+ requirement: &82746360 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.3.2
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *84189750
124
+ version_requirements: *82746360
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: forgery
127
- requirement: &84189340 !ruby/object:Gem::Requirement
127
+ requirement: &82736970 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.4.2
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *84189340
135
+ version_requirements: *82736970
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ci_reporter
138
- requirement: &84188810 !ruby/object:Gem::Requirement
138
+ requirement: &82735660 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 1.6.4
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *84188810
146
+ version_requirements: *82735660
147
147
  description: Social Stream is a Ruby on Rails engine for building social network websites.
148
148
  It supports contacts, posts, file uploads, private messages and many more.
149
149
  email: