social_stream 0.12.11 → 0.12.12
Sign up to get free protection for your applications and to get access to all the features.
- data/base/app/assets/stylesheets/activities.css.scss +1 -1
- data/base/app/assets/stylesheets/base.css.scss +1 -1
- data/base/app/assets/stylesheets/home.css.scss +1 -0
- data/base/config/locales/es.yml +1 -1
- data/base/lib/social_stream/base/version.rb +1 -1
- data/base/lib/social_stream/controllers/cancan_devise_integration.rb +12 -3
- data/base/spec/controllers/posts_controller_spec.rb +21 -0
- data/documents/app/views/documents/_document_global_search.html.erb +1 -1
- data/documents/lib/social_stream/documents/version.rb +1 -1
- data/documents/social_stream-documents.gemspec +1 -1
- data/lib/social_stream/version.rb +1 -1
- data/social_stream.gemspec +2 -2
- metadata +10 -10
@@ -34,7 +34,7 @@
|
|
34
34
|
.activity { text-align:left; display: block; vertical-align: top; padding: 10px 0px 5px 0px;
|
35
35
|
display: inline-block; color: $sentence-color; font-size: 13px; color: $main-color;border-bottom:1px solid #E9E9E9;}
|
36
36
|
.actor_logo { width: 38px; padding: 8px 0px 5px 5px; display: inline-block; vertical-align: top;}
|
37
|
-
.activity_content { padding: 0px; display: inline-block; color: $sentence-color; width: 89%;}
|
37
|
+
.activity_content { padding: 0px; display: inline-block; color: $sentence-color; width: 89%; word-wrap: break-word; }
|
38
38
|
.actor_name {font-size: 13px;}
|
39
39
|
.actor_name a{font-weight: bold;}
|
40
40
|
.post a { color: $main-color;}
|
@@ -77,7 +77,7 @@ button, input[type=submit]{margin: 10px 0 10px 0px;padding: 3px 20px 3px 20px;co
|
|
77
77
|
.block .center{ text-align:center;}
|
78
78
|
.block .close { float:right; vertical-align:top;}
|
79
79
|
.block .content{ padding: 5px 4px 5px 4px; }
|
80
|
-
.block .header{vertical-align: middle; background:
|
80
|
+
.block .header{vertical-align: middle; background: $secondary-color;
|
81
81
|
padding-left: 10px; display: block; height:20px; font-weight:bold;}
|
82
82
|
.block .header_icon{ margin-top: 2px; width:14px; height:14px; }
|
83
83
|
.block .header_icon_right { float: right; padding-right: 5px; padding-top: 3px;}
|
data/base/config/locales/es.yml
CHANGED
@@ -8,11 +8,20 @@ module SocialStream
|
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
|
-
#
|
12
|
-
#
|
11
|
+
# Catch some authorization errors:
|
12
|
+
#
|
13
|
+
# * Redirect to home when the user changes the session and the resource
|
14
|
+
# is not accesible with the new representation
|
15
|
+
#
|
16
|
+
# * Redirect to login if the user is trying to access a protected resource
|
17
|
+
# and she is not authenticated
|
13
18
|
def rescue_from_access_denied(exception)
|
14
19
|
if user_signed_in?
|
15
|
-
|
20
|
+
if params[:s].present? && controller_name != 'home'
|
21
|
+
redirect_to :home
|
22
|
+
else
|
23
|
+
raise exception
|
24
|
+
end
|
16
25
|
else
|
17
26
|
redirect_to new_user_session_path
|
18
27
|
end
|
@@ -131,6 +131,7 @@ describe PostsController do
|
|
131
131
|
end
|
132
132
|
end
|
133
133
|
end
|
134
|
+
|
134
135
|
end
|
135
136
|
|
136
137
|
context "creating post in group's wall" do
|
@@ -163,5 +164,25 @@ describe PostsController do
|
|
163
164
|
response.should be_success
|
164
165
|
end
|
165
166
|
end
|
167
|
+
|
168
|
+
describe "to friend on representation change" do
|
169
|
+
before do
|
170
|
+
@post = Factory(:post)
|
171
|
+
|
172
|
+
@user = @post.post_activity.sender_subject
|
173
|
+
|
174
|
+
@group = Factory(:member, :contact => Factory(:g2g_contact, :receiver => @user.actor)).sender_subject
|
175
|
+
|
176
|
+
Factory(:friend, :contact => Factory(:g2g_contact, :sender => @user.actor))
|
177
|
+
|
178
|
+
sign_in @user
|
179
|
+
end
|
180
|
+
|
181
|
+
it "should redirect show to home" do
|
182
|
+
get :show, :id => @post.to_param, :s => @group.slug
|
183
|
+
|
184
|
+
response.should redirect_to(:home)
|
185
|
+
end
|
186
|
+
end
|
166
187
|
end
|
167
188
|
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= render :partial => 'documents/document_with_details',
|
2
|
-
:locals => {:document =>
|
2
|
+
:locals => {:document => document} %>
|
@@ -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.9.
|
15
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.34')
|
16
16
|
s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.7.0')
|
17
17
|
s.add_runtime_dependency('paperclip','2.3.11')
|
18
18
|
s.add_runtime_dependency('delayed_paperclip','>= 0.7.2')
|
data/social_stream.gemspec
CHANGED
@@ -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.9.
|
15
|
-
s.add_runtime_dependency('social_stream-documents', '~> 0.4.
|
14
|
+
s.add_runtime_dependency('social_stream-base', '~> 0.9.34')
|
15
|
+
s.add_runtime_dependency('social_stream-documents', '~> 0.4.6')
|
16
16
|
s.add_runtime_dependency('social_stream-events', '~> 0.0.20')
|
17
17
|
|
18
18
|
# Development Gem dependencies
|
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: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 12
|
10
|
+
version: 0.12.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- GING - DIT - UPM
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-11-
|
19
|
+
date: 2011-11-18 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -27,12 +27,12 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ~>
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 127
|
31
31
|
segments:
|
32
32
|
- 0
|
33
33
|
- 9
|
34
|
-
-
|
35
|
-
version: 0.9.
|
34
|
+
- 34
|
35
|
+
version: 0.9.34
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id001
|
38
38
|
- !ruby/object:Gem::Dependency
|
@@ -43,12 +43,12 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
hash:
|
46
|
+
hash: 3
|
47
47
|
segments:
|
48
48
|
- 0
|
49
49
|
- 4
|
50
|
-
-
|
51
|
-
version: 0.4.
|
50
|
+
- 6
|
51
|
+
version: 0.4.6
|
52
52
|
type: :runtime
|
53
53
|
version_requirements: *id002
|
54
54
|
- !ruby/object:Gem::Dependency
|