social_stream 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +6 -0
- data/app/controllers/api_controller.rb +39 -0
- data/app/controllers/frontpage_controller.rb +2 -0
- data/app/controllers/groups_controller.rb +8 -2
- data/app/controllers/likes_controller.rb +9 -29
- data/app/controllers/logos_controller.rb +21 -0
- data/app/controllers/mailbox/conversation_controller.rb +110 -0
- data/app/controllers/mailbox_controller.rb +35 -0
- data/app/controllers/posts_controller.rb +2 -0
- data/app/controllers/profiles_controller.rb +3 -0
- data/app/controllers/ties_controller.rb +10 -0
- data/app/controllers/users_controller.rb +5 -5
- data/app/helpers/groups_helper.rb +0 -2
- data/app/helpers/subjects_helper.rb +11 -0
- data/app/helpers/ties_helper.rb +1 -1
- data/app/models/activity.rb +24 -1
- data/app/models/activity_object.rb +10 -0
- data/app/models/activity_object_activity.rb +10 -0
- data/app/models/actor.rb +87 -60
- data/app/models/group.rb +10 -4
- data/app/models/like.rb +34 -0
- data/app/models/logo.rb +51 -0
- data/app/models/permission.rb +7 -5
- data/app/models/profile.rb +24 -8
- data/app/models/tie.rb +15 -2
- data/app/models/user.rb +2 -2
- data/app/views/activities/_activities.html.erb +1 -1
- data/app/views/activities/_new.html.erb +12 -7
- data/app/views/api/activity_atom_feed.atom.builder +40 -0
- data/app/views/comments/_new.html.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +21 -0
- data/app/views/devise/passwords/new.html.erb +16 -0
- data/app/views/devise/registrations/new.html.erb +35 -19
- data/app/views/devise/sessions/new.html.erb +30 -0
- data/app/views/frontpage/_header.html.erb +18 -20
- data/app/views/frontpage/_search.html.erb +13 -0
- data/app/views/frontpage/_sponsor.html.erb +12 -13
- data/app/views/frontpage/index.html.erb +88 -80
- data/app/views/groups/_group.html.erb +2 -6
- data/app/views/groups/_index.html.erb +22 -25
- data/app/views/groups/_logo.html.erb +1 -1
- data/app/views/groups/_new.html.erb +56 -39
- data/app/views/groups/_profile.html.erb +142 -0
- data/app/views/groups/_sidebar_index.html.erb +73 -0
- data/app/views/groups/{_middle_show.html.erb → _sidebar_show.html.erb} +2 -2
- data/app/views/groups/_tabs.html.erb +37 -31
- data/app/views/groups/_toolbar_show.html.erb +12 -0
- data/app/views/groups/edit.html.erb +136 -0
- data/app/views/groups/index.html.erb +47 -46
- data/app/views/groups/new.html.erb +2 -0
- data/app/views/groups/show.html.erb +9 -4
- data/app/views/groups/update.js.erb +39 -0
- data/app/views/home/_groups.html.erb +4 -5
- data/app/views/{users/_middle_index.html.erb → home/_sidebar.html.erb} +0 -2
- data/app/views/home/index.html.erb +3 -5
- data/app/views/layouts/_footer.html.erb +4 -0
- data/app/views/layouts/_header.erb +29 -37
- data/app/views/layouts/_representation.html.erb +2 -2
- data/app/views/layouts/application.html.erb +47 -74
- data/app/views/layouts/frontpage.html.erb +27 -48
- data/app/views/layouts/test.html +44 -0
- data/app/views/likes/create.js.erb +1 -1
- data/app/views/likes/destroy.js.erb +1 -1
- data/app/views/logos/_form.html.erb +33 -0
- data/app/views/logos/_precrop.html.erb +48 -0
- data/app/views/logos/edit.html.erb +6 -0
- data/app/views/logos/index.html.erb +27 -0
- data/app/views/logos/new.html.erb +20 -0
- data/app/views/logos/show.html.erb +5 -0
- data/app/views/mailbox/_conversation.html.erb +23 -0
- data/app/views/mailbox/_conversations.html.erb +9 -0
- data/app/views/mailbox/_index.html.erb +16 -0
- data/app/views/{messages → mailbox}/_location.html.erb +0 -0
- data/app/views/mailbox/_menu_options.html.erb +19 -0
- data/app/views/mailbox/_show.html.erb +15 -0
- data/app/views/mailbox/conversation/_conversation.html.erb +40 -0
- data/app/views/mailbox/conversation/_form.html.erb +54 -0
- data/app/views/mailbox/conversation/_location.html.erb +3 -0
- data/app/views/mailbox/conversation/_new.html.erb +19 -0
- data/app/views/mailbox/conversation/_show.html.erb +27 -0
- data/app/views/mailbox/conversation/edit.html.erb +6 -0
- data/app/views/mailbox/conversation/new.html.erb +10 -0
- data/app/views/mailbox/conversation/new.js.erb +1 -0
- data/app/views/mailbox/conversation/show.html.erb +1 -0
- data/app/views/{messages → mailbox}/edit.html.erb +0 -0
- data/app/views/mailbox/index.html.erb +10 -0
- data/app/views/{messages → mailbox}/index.js.erb +0 -0
- data/app/views/mailbox/new.html.erb +14 -0
- data/app/views/mailbox/show.html.erb +11 -0
- data/app/views/mailbox/show.js.erb +1 -0
- data/app/views/menu/_group.html.erb +15 -0
- data/{lib/generators/social_stream/templates/public/stylesheets/users.css → app/views/menu/_home_user.html.erb} +0 -0
- data/app/views/menu/_options.html.erb +11 -0
- data/app/views/menu/_services.html.erb +11 -0
- data/app/views/menu/_tiesGroup.html.erb +14 -0
- data/app/views/menu/_tiesUser.html.erb +11 -0
- data/app/views/menu/_user.html.erb +15 -0
- data/app/views/profiles/show.html.erb +1 -0
- data/app/views/subjects/_contacts.html.erb +8 -9
- data/app/views/subjects/_menu_options.html.erb +14 -0
- data/app/views/subjects/_toolbar.html.erb +15 -0
- data/app/views/ties/_new.html.erb +3 -2
- data/app/views/ties/_pendings.html.erb +7 -12
- data/app/views/ties/_suggestions.html.erb +12 -12
- data/app/views/ties/_tie.html.erb +9 -7
- data/app/views/ties/new.js.erb +1 -2
- data/app/views/users/_groups.html.erb +4 -3
- data/app/views/users/_index.html.erb +24 -22
- data/app/views/users/_logo.html.erb +1 -1
- data/app/views/users/_profile.html.erb +167 -164
- data/app/views/users/_sidebar_index.html.erb +6 -0
- data/app/views/users/{_middle_show.html.erb → _sidebar_show.html.erb} +0 -0
- data/app/views/users/_toolbar_show.html.erb +17 -0
- data/app/views/users/edit.html.erb +193 -165
- data/app/views/users/index.html.erb +34 -47
- data/{spec/dummy/public/stylesheets/.gitkeep → app/views/users/info.html.erb} +0 -0
- data/app/views/users/show.html.erb +4 -4
- data/app/views/users/show.xml.builder +28 -0
- data/app/views/users/update.js.erb +3 -1
- data/config/locales/en.yml +88 -9
- data/config/routes.rb +30 -14
- data/lib/generators/social_stream/install_generator.rb +8 -2
- data/lib/generators/social_stream/templates/migration.rb +75 -81
- data/lib/generators/social_stream/templates/public/images/{frontpage/facebook.png → btn/1-facebook.png} +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/edit.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/facebook.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/linkedin.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png +0 -0
- data/lib/generators/social_stream/templates/public/images/btn/twitter.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/meet.png +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/icons/favicon.ico +0 -0
- data/lib/generators/social_stream/templates/public/images/logo.png +0 -0
- data/lib/generators/social_stream/templates/public/images/w3c_css.png +0 -0
- data/lib/generators/social_stream/templates/public/images/w3c_xhtml.png +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js +3 -3
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js +1 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js +3 -3
- data/lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js +163 -0
- data/lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js +76 -76
- data/lib/generators/social_stream/templates/public/javascripts/jquery.min.js +156 -5
- data/lib/generators/social_stream/templates/public/javascripts/main.js +9 -0
- data/lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js +42 -0
- data/lib/generators/social_stream/templates/public/javascripts/menu.js +1 -1
- data/lib/generators/social_stream/templates/public/javascripts/rails.js +30 -29
- data/lib/generators/social_stream/templates/public/javascripts/superfish.js +121 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/activities.css +72 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/base.css +150 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/carousel.css +23 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{fcbkComplete.css → default/fcbkComplete.css} +2 -2
- data/lib/generators/social_stream/templates/public/stylesheets/default/footer.css +25 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css +54 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/header.css +44 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/home.css +44 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{images → default/images}/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css +15 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{jquery-ui.css → default/jquery-ui.css} +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css +35 -0
- data/lib/generators/social_stream/templates/public/stylesheets/default/menu.css +33 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_222222_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_454545_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_888888_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.7.3.custom.css +0 -0
- data/lib/generators/social_stream/templates/public/stylesheets/{smoothness → default/smoothness}/jquery-ui-1.8.4.custom.css +0 -0
- data/lib/social_stream.rb +11 -2
- data/lib/social_stream/ability.rb +21 -3
- data/lib/social_stream/models/object.rb +5 -3
- data/lib/social_stream/models/subject.rb +50 -31
- data/lib/social_stream/rails.rb +5 -0
- data/lib/social_stream/test_helpers.rb +11 -0
- data/lib/social_stream/test_helpers/controllers.rb +64 -0
- data/lib/social_stream/version.rb +1 -1
- data/lib/tasks/db/populate.rake +110 -25
- data/social_stream.gemspec +7 -1
- data/spec/controllers/contacts_controller_spec.rb +1 -1
- data/spec/controllers/groups_controller_spec.rb +8 -0
- data/spec/controllers/home_controller_spec.rb +15 -0
- data/spec/controllers/likes_controller_spec.rb +29 -0
- data/spec/controllers/posts_controller_spec.rb +41 -0
- data/spec/controllers/profiles_controller_spec.rb +46 -0
- data/spec/controllers/users_controller_spec.rb +2 -2
- data/spec/dummy/.gitignore +4 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environments/test_pg.rb +35 -0
- data/spec/dummy/config/routes.rb +2 -0
- data/spec/factories/group.rb +1 -1
- data/spec/integration/navigation_spec.rb +1 -1
- data/spec/models/actor_spec.rb +4 -4
- data/spec/models/user_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -1
- data/spec/support/db.rb +7 -0
- metadata +198 -116
- data/app/controllers/messages_controller.rb +0 -3
- data/app/models/message.rb +0 -2
- data/app/views/groups/_middle_index.html.erb +0 -74
- data/app/views/groups/_right_index.html.erb +0 -19
- data/app/views/groups/_right_show.html.erb +0 -8
- data/app/views/home/_middle.html.erb +0 -4
- data/app/views/home/_options.html.erb +0 -8
- data/app/views/home/_right.html.erb +0 -17
- data/app/views/messages/_form.html.erb +0 -24
- data/app/views/messages/_index.html.erb +0 -24
- data/app/views/messages/_message.html.erb +0 -17
- data/app/views/messages/_messages.html.erb +0 -2
- data/app/views/messages/index.html.erb +0 -1
- data/app/views/messages/new.html.erb +0 -14
- data/app/views/messages/show.html.erb +0 -21
- data/app/views/users/_menu.html.erb +0 -7
- data/app/views/users/_options.html.erb +0 -5
- data/app/views/users/_right_index.html.erb +0 -19
- data/app/views/users/_right_show.html.erb +0 -14
- data/lib/generators/social_stream/templates/public/images/btn/btn_share.png +0 -0
- data/lib/generators/social_stream/templates/public/images/favicon.ico +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/collaborate.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/meet.gif +0 -0
- data/lib/generators/social_stream/templates/public/images/frontpage/share.gif +0 -0
- data/lib/generators/social_stream/templates/public/javascripts/hoverIntent.js +0 -84
- data/lib/generators/social_stream/templates/public/stylesheets/activities.css +0 -235
- data/lib/generators/social_stream/templates/public/stylesheets/base.css +0 -68
- data/lib/generators/social_stream/templates/public/stylesheets/boxy.css +0 -49
- data/lib/generators/social_stream/templates/public/stylesheets/browse.css +0 -162
- data/lib/generators/social_stream/templates/public/stylesheets/carousel.css +0 -57
- data/lib/generators/social_stream/templates/public/stylesheets/edit_user.css +0 -104
- data/lib/generators/social_stream/templates/public/stylesheets/frontpage.css +0 -708
- data/lib/generators/social_stream/templates/public/stylesheets/header.css +0 -116
- data/lib/generators/social_stream/templates/public/stylesheets/home.css +0 -121
- data/lib/generators/social_stream/templates/public/stylesheets/index.css +0 -625
- data/lib/generators/social_stream/templates/public/stylesheets/jqcloud.css +0 -62
- data/lib/generators/social_stream/templates/public/stylesheets/menu.css +0 -83
- data/lib/generators/social_stream/templates/public/stylesheets/message.css +0 -46
- data/lib/generators/social_stream/templates/public/stylesheets/middle.css +0 -113
- data/lib/generators/social_stream/templates/public/stylesheets/right.css +0 -58
- data/lib/generators/social_stream/templates/public/stylesheets/social_stream.css +0 -78
- data/lib/generators/social_stream/templates/public/stylesheets/ui.dropdownchecklist.css +0 -21
- data/spec/dummy/db/.gitignore +0 -2
- data/spec/dummy/log/.gitignore +0 -1
- data/spec/dummy/public/javascripts/application.js +0 -2
- data/spec/dummy/public/javascripts/controls.js +0 -965
- data/spec/dummy/public/javascripts/dragdrop.js +0 -974
- data/spec/dummy/public/javascripts/effects.js +0 -1123
- data/spec/dummy/public/javascripts/prototype.js +0 -6001
- data/spec/dummy/public/javascripts/rails.js +0 -175
@@ -42,6 +42,14 @@ describe GroupsController do
|
|
42
42
|
|
43
43
|
assert_response :success
|
44
44
|
end
|
45
|
+
|
46
|
+
it "should update contact group" do
|
47
|
+
@group = Factory(:member, :receiver => @user.actor).sender_subject
|
48
|
+
put :update, :id => @group.to_param,
|
49
|
+
"group" => { "profile_attributes" => { "organization" => "Social Stream" } }
|
50
|
+
|
51
|
+
response.should redirect_to(@group)
|
52
|
+
end
|
45
53
|
end
|
46
54
|
end
|
47
55
|
|
@@ -1,6 +1,8 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
2
|
|
3
3
|
describe HomeController do
|
4
|
+
include SocialStream::TestHelpers
|
5
|
+
|
4
6
|
render_views
|
5
7
|
|
6
8
|
describe "when Anonymous" do
|
@@ -19,6 +21,19 @@ describe HomeController do
|
|
19
21
|
get :index
|
20
22
|
assert_response :success
|
21
23
|
end
|
24
|
+
|
25
|
+
describe "when representing" do
|
26
|
+
before do
|
27
|
+
@represented = represent(Factory(:group))
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should render represented home" do
|
31
|
+
get :index
|
32
|
+
|
33
|
+
assert_response :success
|
34
|
+
assigns(:current_subject).should == @represented
|
35
|
+
end
|
36
|
+
end
|
22
37
|
end
|
23
38
|
end
|
24
39
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe LikesController do
|
4
|
+
render_views
|
5
|
+
|
6
|
+
it "should create like" do
|
7
|
+
@activity = Factory(:activity)
|
8
|
+
@subject = @activity.receiver_subject
|
9
|
+
|
10
|
+
sign_in @subject
|
11
|
+
|
12
|
+
post :create, :activity_id => @activity.id
|
13
|
+
|
14
|
+
assert @activity.liked_by?(@subject)
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should destroy like" do
|
18
|
+
@like_activity = Factory(:like_activity)
|
19
|
+
@activity = @like_activity.parent
|
20
|
+
@subject = @like_activity.sender_subject
|
21
|
+
|
22
|
+
sign_in @subject
|
23
|
+
|
24
|
+
delete :destroy, :activity_id => @activity.id
|
25
|
+
|
26
|
+
assert ! @activity.liked_by?(@subject)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
|
4
|
+
describe PostsController do
|
5
|
+
include SocialStream::TestHelpers::Controllers
|
6
|
+
|
7
|
+
render_views
|
8
|
+
|
9
|
+
describe "authorizing" do
|
10
|
+
before do
|
11
|
+
@user = Factory(:user)
|
12
|
+
sign_in @user
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "posts to user" do
|
16
|
+
before do
|
17
|
+
model_assigned_to @user.sent_ties.received_by(@user).related_by(@user.relations.sort.first).first
|
18
|
+
end
|
19
|
+
|
20
|
+
it_should_behave_like "Allow Creating"
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "post to friend" do
|
24
|
+
before do
|
25
|
+
model_assigned_to Factory(:friend, :receiver => @user.actor)
|
26
|
+
end
|
27
|
+
|
28
|
+
it_should_behave_like "Allow Creating"
|
29
|
+
end
|
30
|
+
|
31
|
+
describe "post to acquaintance" do
|
32
|
+
before do
|
33
|
+
model_assigned_to Factory(:acquaintance, :receiver => @user.actor)
|
34
|
+
end
|
35
|
+
|
36
|
+
it_should_behave_like "Deny Creating"
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe ProfilesController do
|
4
|
+
render_views
|
5
|
+
|
6
|
+
context "for a user" do
|
7
|
+
before do
|
8
|
+
@user = Factory(:user)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should render show" do
|
12
|
+
get :show, :user_id => @user.to_param
|
13
|
+
|
14
|
+
assert_response :success
|
15
|
+
end
|
16
|
+
|
17
|
+
it "should render edit" do
|
18
|
+
pending
|
19
|
+
|
20
|
+
get :edit, :user_id => @user.to_param
|
21
|
+
|
22
|
+
assert_response :success
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context "for a group" do
|
27
|
+
before do
|
28
|
+
@group = Factory(:group)
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should render show" do
|
32
|
+
get :show, :group_id => @group.to_param
|
33
|
+
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should render edit" do
|
38
|
+
pending
|
39
|
+
|
40
|
+
get :edit, :group_id => @group.to_param
|
41
|
+
|
42
|
+
assert_response :success
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
@@ -11,7 +11,7 @@ describe UsersController do
|
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should render show" do
|
14
|
-
get :show, :id => Factory(:
|
14
|
+
get :show, :id => Factory(:friend, :receiver => Factory(:group).actor).sender_subject.to_param
|
15
15
|
|
16
16
|
assert_response :success
|
17
17
|
end
|
@@ -19,7 +19,7 @@ describe UsersController do
|
|
19
19
|
|
20
20
|
describe "when authenticated" do
|
21
21
|
before do
|
22
|
-
@user = Factory(:
|
22
|
+
@user = Factory(:friend, :receiver => Factory(:group).actor).sender_subject
|
23
23
|
|
24
24
|
sign_in @user
|
25
25
|
end
|
@@ -15,6 +15,14 @@ test:
|
|
15
15
|
pool: 5
|
16
16
|
timeout: 5000
|
17
17
|
|
18
|
+
test_pg:
|
19
|
+
adapter: postgresql
|
20
|
+
encoding: unicode
|
21
|
+
database: social_stream_test
|
22
|
+
pool: 5
|
23
|
+
username: social_stream
|
24
|
+
password:
|
25
|
+
|
18
26
|
production:
|
19
27
|
adapter: sqlite3
|
20
28
|
database: db/production.sqlite3
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Log error messages when you accidentally call methods on nil.
|
11
|
+
config.whiny_nils = true
|
12
|
+
|
13
|
+
# Show full error reports and disable caching
|
14
|
+
config.consider_all_requests_local = true
|
15
|
+
config.action_controller.perform_caching = false
|
16
|
+
|
17
|
+
# Raise exceptions instead of rendering exception templates
|
18
|
+
config.action_dispatch.show_exceptions = false
|
19
|
+
|
20
|
+
# Disable request forgery protection in test environment
|
21
|
+
config.action_controller.allow_forgery_protection = false
|
22
|
+
|
23
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
+
# The :test delivery method accumulates sent emails in the
|
25
|
+
# ActionMailer::Base.deliveries array.
|
26
|
+
config.action_mailer.delivery_method = :test
|
27
|
+
|
28
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
+
# like if you have constraints or database-specific column types
|
31
|
+
# config.active_record.schema_format = :sql
|
32
|
+
|
33
|
+
# Print deprecation notices to the stderr
|
34
|
+
config.active_support.deprecation = :stderr
|
35
|
+
end
|
data/spec/dummy/config/routes.rb
CHANGED
data/spec/factories/group.rb
CHANGED
data/spec/models/actor_spec.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
2
|
|
3
3
|
describe Actor do
|
4
|
-
it "should generate
|
5
|
-
assert Factory(:actor).
|
4
|
+
it "should generate slug" do
|
5
|
+
assert Factory(:actor).slug.present?
|
6
6
|
end
|
7
7
|
|
8
|
-
it "should generate different
|
8
|
+
it "should generate different slug" do
|
9
9
|
a = Factory(:actor)
|
10
10
|
b = Factory(:actor, :name => a.name)
|
11
11
|
|
12
12
|
a.name.should == b.name
|
13
|
-
a.
|
13
|
+
a.slug.should_not == b.slug
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should generate relations" do
|
data/spec/models/user_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
2
|
|
3
3
|
describe User do
|
4
|
-
it "should find by
|
4
|
+
it "should find by slug" do
|
5
5
|
user = Factory(:user)
|
6
6
|
|
7
|
-
assert user.should == User.
|
7
|
+
assert user.should == User.find_by_slug(user.slug)
|
8
8
|
end
|
9
9
|
|
10
10
|
it "should represent" do
|
data/spec/spec_helper.rb
CHANGED
data/spec/support/db.rb
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
require File.join(Rails.root, '../../lib/generators/social_stream/templates/migration')
|
2
|
+
|
3
|
+
begin
|
4
|
+
CreateSocialStream.down
|
5
|
+
rescue
|
6
|
+
puts "WARNING: SocialStream migration failed to rollback"
|
7
|
+
end
|
8
|
+
|
2
9
|
CreateSocialStream.up
|
3
10
|
|
4
11
|
require File.expand_path("../../dummy/db/seeds", __FILE__)
|
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: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
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-03-
|
19
|
+
date: 2011-03-22 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -155,12 +155,12 @@ dependencies:
|
|
155
155
|
requirements:
|
156
156
|
- - ~>
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
hash:
|
158
|
+
hash: 11
|
159
159
|
segments:
|
160
160
|
- 1
|
161
|
-
-
|
162
|
-
-
|
163
|
-
version: 1.
|
161
|
+
- 6
|
162
|
+
- 2
|
163
|
+
version: 1.6.2
|
164
164
|
type: :runtime
|
165
165
|
version_requirements: *id009
|
166
166
|
- !ruby/object:Gem::Dependency
|
@@ -214,9 +214,25 @@ dependencies:
|
|
214
214
|
type: :runtime
|
215
215
|
version_requirements: *id012
|
216
216
|
- !ruby/object:Gem::Dependency
|
217
|
-
name:
|
217
|
+
name: rails_css_themes
|
218
218
|
prerelease: false
|
219
219
|
requirement: &id013 !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
221
|
+
requirements:
|
222
|
+
- - ~>
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
hash: 23
|
225
|
+
segments:
|
226
|
+
- 1
|
227
|
+
- 0
|
228
|
+
- 0
|
229
|
+
version: 1.0.0
|
230
|
+
type: :runtime
|
231
|
+
version_requirements: *id013
|
232
|
+
- !ruby/object:Gem::Dependency
|
233
|
+
name: rails
|
234
|
+
prerelease: false
|
235
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
220
236
|
none: false
|
221
237
|
requirements:
|
222
238
|
- - ~>
|
@@ -228,11 +244,11 @@ dependencies:
|
|
228
244
|
- 5
|
229
245
|
version: 3.0.5
|
230
246
|
type: :development
|
231
|
-
version_requirements: *
|
247
|
+
version_requirements: *id014
|
232
248
|
- !ruby/object:Gem::Dependency
|
233
249
|
name: capybara
|
234
250
|
prerelease: false
|
235
|
-
requirement: &
|
251
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
236
252
|
none: false
|
237
253
|
requirements:
|
238
254
|
- - ~>
|
@@ -244,11 +260,11 @@ dependencies:
|
|
244
260
|
- 9
|
245
261
|
version: 0.3.9
|
246
262
|
type: :development
|
247
|
-
version_requirements: *
|
263
|
+
version_requirements: *id015
|
248
264
|
- !ruby/object:Gem::Dependency
|
249
265
|
name: sqlite3-ruby
|
250
266
|
prerelease: false
|
251
|
-
requirement: &
|
267
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
252
268
|
none: false
|
253
269
|
requirements:
|
254
270
|
- - ">="
|
@@ -258,11 +274,11 @@ dependencies:
|
|
258
274
|
- 0
|
259
275
|
version: "0"
|
260
276
|
type: :development
|
261
|
-
version_requirements: *
|
277
|
+
version_requirements: *id016
|
262
278
|
- !ruby/object:Gem::Dependency
|
263
279
|
name: ruby-debug
|
264
280
|
prerelease: false
|
265
|
-
requirement: &
|
281
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
266
282
|
none: false
|
267
283
|
requirements:
|
268
284
|
- - ~>
|
@@ -274,11 +290,11 @@ dependencies:
|
|
274
290
|
- 3
|
275
291
|
version: 0.10.3
|
276
292
|
type: :development
|
277
|
-
version_requirements: *
|
293
|
+
version_requirements: *id017
|
278
294
|
- !ruby/object:Gem::Dependency
|
279
295
|
name: rspec-rails
|
280
296
|
prerelease: false
|
281
|
-
requirement: &
|
297
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
282
298
|
none: false
|
283
299
|
requirements:
|
284
300
|
- - ~>
|
@@ -290,11 +306,11 @@ dependencies:
|
|
290
306
|
- 0
|
291
307
|
version: 2.5.0
|
292
308
|
type: :development
|
293
|
-
version_requirements: *
|
309
|
+
version_requirements: *id018
|
294
310
|
- !ruby/object:Gem::Dependency
|
295
311
|
name: factory_girl
|
296
312
|
prerelease: false
|
297
|
-
requirement: &
|
313
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
298
314
|
none: false
|
299
315
|
requirements:
|
300
316
|
- - ~>
|
@@ -306,11 +322,11 @@ dependencies:
|
|
306
322
|
- 2
|
307
323
|
version: 1.3.2
|
308
324
|
type: :development
|
309
|
-
version_requirements: *
|
325
|
+
version_requirements: *id019
|
310
326
|
- !ruby/object:Gem::Dependency
|
311
327
|
name: forgery
|
312
328
|
prerelease: false
|
313
|
-
requirement: &
|
329
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
314
330
|
none: false
|
315
331
|
requirements:
|
316
332
|
- - ~>
|
@@ -322,11 +338,11 @@ dependencies:
|
|
322
338
|
- 6
|
323
339
|
version: 0.3.6
|
324
340
|
type: :development
|
325
|
-
version_requirements: *
|
341
|
+
version_requirements: *id020
|
326
342
|
- !ruby/object:Gem::Dependency
|
327
343
|
name: ci_reporter
|
328
344
|
prerelease: false
|
329
|
-
requirement: &
|
345
|
+
requirement: &id021 !ruby/object:Gem::Requirement
|
330
346
|
none: false
|
331
347
|
requirements:
|
332
348
|
- - ~>
|
@@ -338,11 +354,11 @@ dependencies:
|
|
338
354
|
- 4
|
339
355
|
version: 1.6.4
|
340
356
|
type: :development
|
341
|
-
version_requirements: *
|
357
|
+
version_requirements: *id021
|
342
358
|
- !ruby/object:Gem::Dependency
|
343
359
|
name: nifty-generators
|
344
360
|
prerelease: false
|
345
|
-
requirement: &
|
361
|
+
requirement: &id022 !ruby/object:Gem::Requirement
|
346
362
|
none: false
|
347
363
|
requirements:
|
348
364
|
- - ~>
|
@@ -354,7 +370,39 @@ dependencies:
|
|
354
370
|
- 5
|
355
371
|
version: 0.4.5
|
356
372
|
type: :development
|
357
|
-
version_requirements: *
|
373
|
+
version_requirements: *id022
|
374
|
+
- !ruby/object:Gem::Dependency
|
375
|
+
name: mailboxer
|
376
|
+
prerelease: false
|
377
|
+
requirement: &id023 !ruby/object:Gem::Requirement
|
378
|
+
none: false
|
379
|
+
requirements:
|
380
|
+
- - ~>
|
381
|
+
- !ruby/object:Gem::Version
|
382
|
+
hash: 15
|
383
|
+
segments:
|
384
|
+
- 0
|
385
|
+
- 0
|
386
|
+
- 8
|
387
|
+
version: 0.0.8
|
388
|
+
type: :runtime
|
389
|
+
version_requirements: *id023
|
390
|
+
- !ruby/object:Gem::Dependency
|
391
|
+
name: rmagick
|
392
|
+
prerelease: false
|
393
|
+
requirement: &id024 !ruby/object:Gem::Requirement
|
394
|
+
none: false
|
395
|
+
requirements:
|
396
|
+
- - ~>
|
397
|
+
- !ruby/object:Gem::Version
|
398
|
+
hash: 57
|
399
|
+
segments:
|
400
|
+
- 2
|
401
|
+
- 13
|
402
|
+
- 1
|
403
|
+
version: 2.13.1
|
404
|
+
type: :runtime
|
405
|
+
version_requirements: *id024
|
358
406
|
description: Ruby on Rails engine supporting social networking features and activity streams.
|
359
407
|
email:
|
360
408
|
executables: []
|
@@ -372,6 +420,7 @@ files:
|
|
372
420
|
- README.rdoc
|
373
421
|
- Rakefile
|
374
422
|
- app/controllers/activities_controller.rb
|
423
|
+
- app/controllers/api_controller.rb
|
375
424
|
- app/controllers/authentications_controller.rb
|
376
425
|
- app/controllers/comments_controller.rb
|
377
426
|
- app/controllers/contacts_controller.rb
|
@@ -379,15 +428,19 @@ files:
|
|
379
428
|
- app/controllers/groups_controller.rb
|
380
429
|
- app/controllers/home_controller.rb
|
381
430
|
- app/controllers/likes_controller.rb
|
382
|
-
- app/controllers/
|
431
|
+
- app/controllers/logos_controller.rb
|
432
|
+
- app/controllers/mailbox/conversation_controller.rb
|
433
|
+
- app/controllers/mailbox_controller.rb
|
383
434
|
- app/controllers/omniauth_callbacks_controller.rb
|
384
435
|
- app/controllers/posts_controller.rb
|
436
|
+
- app/controllers/profiles_controller.rb
|
385
437
|
- app/controllers/representations_controller.rb
|
386
438
|
- app/controllers/ties_controller.rb
|
387
439
|
- app/controllers/users_controller.rb
|
388
440
|
- app/helpers/activities_helper.rb
|
389
441
|
- app/helpers/contacts_helper.rb
|
390
442
|
- app/helpers/groups_helper.rb
|
443
|
+
- app/helpers/subjects_helper.rb
|
391
444
|
- app/helpers/ties_helper.rb
|
392
445
|
- app/helpers/users_helper.rb
|
393
446
|
- app/models/ability.rb
|
@@ -399,7 +452,8 @@ files:
|
|
399
452
|
- app/models/authentication.rb
|
400
453
|
- app/models/comment.rb
|
401
454
|
- app/models/group.rb
|
402
|
-
- app/models/
|
455
|
+
- app/models/like.rb
|
456
|
+
- app/models/logo.rb
|
403
457
|
- app/models/permission.rb
|
404
458
|
- app/models/post.rb
|
405
459
|
- app/models/profile.rb
|
@@ -418,56 +472,89 @@ files:
|
|
418
472
|
- app/views/activities/_options.html.erb
|
419
473
|
- app/views/activities/_root.html.erb
|
420
474
|
- app/views/activity_objects/_activity_object.html.erb
|
475
|
+
- app/views/api/activity_atom_feed.atom.builder
|
421
476
|
- app/views/comments/_comment.html.erb
|
422
477
|
- app/views/comments/_new.html.erb
|
423
478
|
- app/views/comments/create.js.erb
|
424
479
|
- app/views/comments/destroy.js.erb
|
425
480
|
- app/views/contacts/index.html.erb
|
481
|
+
- app/views/devise/passwords/edit.html.erb
|
482
|
+
- app/views/devise/passwords/new.html.erb
|
426
483
|
- app/views/devise/registrations/new.html.erb
|
484
|
+
- app/views/devise/sessions/new.html.erb
|
427
485
|
- app/views/frontpage/_header.html.erb
|
486
|
+
- app/views/frontpage/_search.html.erb
|
428
487
|
- app/views/frontpage/_sponsor.html.erb
|
429
488
|
- app/views/frontpage/index.html.erb
|
430
489
|
- app/views/groups/_group.html.erb
|
431
490
|
- app/views/groups/_index.html.erb
|
432
491
|
- app/views/groups/_location.html.erb
|
433
492
|
- app/views/groups/_logo.html.erb
|
434
|
-
- app/views/groups/_middle_index.html.erb
|
435
|
-
- app/views/groups/_middle_show.html.erb
|
436
493
|
- app/views/groups/_new.html.erb
|
437
|
-
- app/views/groups/
|
438
|
-
- app/views/groups/
|
494
|
+
- app/views/groups/_profile.html.erb
|
495
|
+
- app/views/groups/_sidebar_index.html.erb
|
496
|
+
- app/views/groups/_sidebar_show.html.erb
|
439
497
|
- app/views/groups/_tabs.html.erb
|
498
|
+
- app/views/groups/_toolbar_show.html.erb
|
499
|
+
- app/views/groups/edit.html.erb
|
440
500
|
- app/views/groups/index.html.erb
|
441
501
|
- app/views/groups/index.js.erb
|
442
502
|
- app/views/groups/new.html.erb
|
443
503
|
- app/views/groups/show.html.erb
|
504
|
+
- app/views/groups/update.js.erb
|
444
505
|
- app/views/home/_groups.html.erb
|
445
506
|
- app/views/home/_location.html.erb
|
446
|
-
- app/views/home/
|
447
|
-
- app/views/home/_options.html.erb
|
448
|
-
- app/views/home/_right.html.erb
|
507
|
+
- app/views/home/_sidebar.html.erb
|
449
508
|
- app/views/home/index.html.erb
|
450
509
|
- app/views/layouts/_footer.html.erb
|
451
510
|
- app/views/layouts/_header.erb
|
452
511
|
- app/views/layouts/_representation.html.erb
|
453
512
|
- app/views/layouts/application.html.erb
|
454
513
|
- app/views/layouts/frontpage.html.erb
|
514
|
+
- app/views/layouts/test.html
|
455
515
|
- app/views/likes/create.js.erb
|
456
516
|
- app/views/likes/destroy.js.erb
|
457
|
-
- app/views/
|
458
|
-
- app/views/
|
459
|
-
- app/views/
|
460
|
-
- app/views/
|
461
|
-
- app/views/
|
462
|
-
- app/views/
|
463
|
-
- app/views/
|
464
|
-
- app/views/
|
465
|
-
- app/views/
|
466
|
-
- app/views/
|
517
|
+
- app/views/logos/_form.html.erb
|
518
|
+
- app/views/logos/_precrop.html.erb
|
519
|
+
- app/views/logos/edit.html.erb
|
520
|
+
- app/views/logos/index.html.erb
|
521
|
+
- app/views/logos/new.html.erb
|
522
|
+
- app/views/logos/show.html.erb
|
523
|
+
- app/views/mailbox/_conversation.html.erb
|
524
|
+
- app/views/mailbox/_conversations.html.erb
|
525
|
+
- app/views/mailbox/_index.html.erb
|
526
|
+
- app/views/mailbox/_location.html.erb
|
527
|
+
- app/views/mailbox/_menu_options.html.erb
|
528
|
+
- app/views/mailbox/_show.html.erb
|
529
|
+
- app/views/mailbox/conversation/_conversation.html.erb
|
530
|
+
- app/views/mailbox/conversation/_form.html.erb
|
531
|
+
- app/views/mailbox/conversation/_location.html.erb
|
532
|
+
- app/views/mailbox/conversation/_new.html.erb
|
533
|
+
- app/views/mailbox/conversation/_show.html.erb
|
534
|
+
- app/views/mailbox/conversation/edit.html.erb
|
535
|
+
- app/views/mailbox/conversation/new.html.erb
|
536
|
+
- app/views/mailbox/conversation/new.js.erb
|
537
|
+
- app/views/mailbox/conversation/show.html.erb
|
538
|
+
- app/views/mailbox/edit.html.erb
|
539
|
+
- app/views/mailbox/index.html.erb
|
540
|
+
- app/views/mailbox/index.js.erb
|
541
|
+
- app/views/mailbox/new.html.erb
|
542
|
+
- app/views/mailbox/show.html.erb
|
543
|
+
- app/views/mailbox/show.js.erb
|
544
|
+
- app/views/menu/_group.html.erb
|
545
|
+
- app/views/menu/_home_user.html.erb
|
546
|
+
- app/views/menu/_options.html.erb
|
547
|
+
- app/views/menu/_services.html.erb
|
548
|
+
- app/views/menu/_tiesGroup.html.erb
|
549
|
+
- app/views/menu/_tiesUser.html.erb
|
550
|
+
- app/views/menu/_user.html.erb
|
467
551
|
- app/views/posts/_post.html.erb
|
468
552
|
- app/views/posts/create.js.erb
|
469
553
|
- app/views/posts/destroy.js.erb
|
554
|
+
- app/views/profiles/show.html.erb
|
470
555
|
- app/views/subjects/_contacts.html.erb
|
556
|
+
- app/views/subjects/_menu_options.html.erb
|
557
|
+
- app/views/subjects/_toolbar.html.erb
|
471
558
|
- app/views/ties/_form.html.erb
|
472
559
|
- app/views/ties/_new.html.erb
|
473
560
|
- app/views/ties/_pendings.html.erb
|
@@ -482,17 +569,16 @@ files:
|
|
482
569
|
- app/views/users/_index.html.erb
|
483
570
|
- app/views/users/_location.html.erb
|
484
571
|
- app/views/users/_logo.html.erb
|
485
|
-
- app/views/users/_menu.html.erb
|
486
|
-
- app/views/users/_middle_index.html.erb
|
487
|
-
- app/views/users/_middle_show.html.erb
|
488
|
-
- app/views/users/_options.html.erb
|
489
572
|
- app/views/users/_profile.html.erb
|
490
|
-
- app/views/users/
|
491
|
-
- app/views/users/
|
573
|
+
- app/views/users/_sidebar_index.html.erb
|
574
|
+
- app/views/users/_sidebar_show.html.erb
|
575
|
+
- app/views/users/_toolbar_show.html.erb
|
492
576
|
- app/views/users/edit.html.erb
|
493
577
|
- app/views/users/index.html.erb
|
494
578
|
- app/views/users/index.js.erb
|
579
|
+
- app/views/users/info.html.erb
|
495
580
|
- app/views/users/show.html.erb
|
581
|
+
- app/views/users/show.xml.builder
|
496
582
|
- app/views/users/update.js.erb
|
497
583
|
- bin/social_stream
|
498
584
|
- bin/social_stream_heroku
|
@@ -506,6 +592,7 @@ files:
|
|
506
592
|
- lib/generators/social_stream/templates/public/images/boxy/boxy-nw.png
|
507
593
|
- lib/generators/social_stream/templates/public/images/boxy/boxy-se.png
|
508
594
|
- lib/generators/social_stream/templates/public/images/boxy/boxy-sw.png
|
595
|
+
- lib/generators/social_stream/templates/public/images/btn/1-facebook.png
|
509
596
|
- lib/generators/social_stream/templates/public/images/btn/_notes/btn_certificates.png.mno
|
510
597
|
- lib/generators/social_stream/templates/public/images/btn/arrows-ffffff.png
|
511
598
|
- lib/generators/social_stream/templates/public/images/btn/bold.png
|
@@ -548,7 +635,6 @@ files:
|
|
548
635
|
- lib/generators/social_stream/templates/public/images/btn/btn_rank.png
|
549
636
|
- lib/generators/social_stream/templates/public/images/btn/btn_security.png
|
550
637
|
- lib/generators/social_stream/templates/public/images/btn/btn_send.png
|
551
|
-
- lib/generators/social_stream/templates/public/images/btn/btn_share.png
|
552
638
|
- lib/generators/social_stream/templates/public/images/btn/btn_spam.png
|
553
639
|
- lib/generators/social_stream/templates/public/images/btn/btn_star.png
|
554
640
|
- lib/generators/social_stream/templates/public/images/btn/btn_tag.png
|
@@ -556,6 +642,7 @@ files:
|
|
556
642
|
- lib/generators/social_stream/templates/public/images/btn/btn_write.png
|
557
643
|
- lib/generators/social_stream/templates/public/images/btn/close.png
|
558
644
|
- lib/generators/social_stream/templates/public/images/btn/date.png
|
645
|
+
- lib/generators/social_stream/templates/public/images/btn/edit.png
|
559
646
|
- lib/generators/social_stream/templates/public/images/btn/facebook.png
|
560
647
|
- lib/generators/social_stream/templates/public/images/btn/flag.png
|
561
648
|
- lib/generators/social_stream/templates/public/images/btn/flyer.png
|
@@ -564,6 +651,7 @@ files:
|
|
564
651
|
- lib/generators/social_stream/templates/public/images/btn/index_71.png
|
565
652
|
- lib/generators/social_stream/templates/public/images/btn/italic.png
|
566
653
|
- lib/generators/social_stream/templates/public/images/btn/keynote.png
|
654
|
+
- lib/generators/social_stream/templates/public/images/btn/linkedin.png
|
567
655
|
- lib/generators/social_stream/templates/public/images/btn/live.png
|
568
656
|
- lib/generators/social_stream/templates/public/images/btn/new.png
|
569
657
|
- lib/generators/social_stream/templates/public/images/btn/next_conference.png
|
@@ -577,17 +665,15 @@ files:
|
|
577
665
|
- lib/generators/social_stream/templates/public/images/btn/subtime.png
|
578
666
|
- lib/generators/social_stream/templates/public/images/btn/tag_cloud.png
|
579
667
|
- lib/generators/social_stream/templates/public/images/btn/time.png
|
668
|
+
- lib/generators/social_stream/templates/public/images/btn/twitter-follow-icon.png
|
669
|
+
- lib/generators/social_stream/templates/public/images/btn/twitter.png
|
580
670
|
- lib/generators/social_stream/templates/public/images/btn/uno.png
|
581
671
|
- lib/generators/social_stream/templates/public/images/btn/viewer.png
|
582
|
-
- lib/generators/social_stream/templates/public/images/favicon.ico
|
583
672
|
- lib/generators/social_stream/templates/public/images/fcbkcomplete/close.gif
|
584
|
-
- lib/generators/social_stream/templates/public/images/frontpage/collaborate.gif
|
585
673
|
- lib/generators/social_stream/templates/public/images/frontpage/collaborate.png
|
586
674
|
- lib/generators/social_stream/templates/public/images/frontpage/comments.png
|
587
|
-
- lib/generators/social_stream/templates/public/images/frontpage/facebook.png
|
588
675
|
- lib/generators/social_stream/templates/public/images/frontpage/green_sq.png
|
589
676
|
- lib/generators/social_stream/templates/public/images/frontpage/join.gif
|
590
|
-
- lib/generators/social_stream/templates/public/images/frontpage/meet.gif
|
591
677
|
- lib/generators/social_stream/templates/public/images/frontpage/meet.png
|
592
678
|
- lib/generators/social_stream/templates/public/images/frontpage/people.png
|
593
679
|
- lib/generators/social_stream/templates/public/images/frontpage/purple_sq.png
|
@@ -597,11 +683,11 @@ files:
|
|
597
683
|
- lib/generators/social_stream/templates/public/images/frontpage/right_social.gif
|
598
684
|
- lib/generators/social_stream/templates/public/images/frontpage/right_tags.gif
|
599
685
|
- lib/generators/social_stream/templates/public/images/frontpage/right_webcam.gif
|
600
|
-
- lib/generators/social_stream/templates/public/images/frontpage/share.gif
|
601
686
|
- lib/generators/social_stream/templates/public/images/frontpage/share.png
|
602
687
|
- lib/generators/social_stream/templates/public/images/frontpage/tags.png
|
603
688
|
- lib/generators/social_stream/templates/public/images/frontpage/yellow_sq.png
|
604
689
|
- lib/generators/social_stream/templates/public/images/header-logo.png
|
690
|
+
- lib/generators/social_stream/templates/public/images/icons/favicon.ico
|
605
691
|
- lib/generators/social_stream/templates/public/images/left.png
|
606
692
|
- lib/generators/social_stream/templates/public/images/loader.gif
|
607
693
|
- lib/generators/social_stream/templates/public/images/logo.png
|
@@ -615,11 +701,14 @@ files:
|
|
615
701
|
- lib/generators/social_stream/templates/public/images/logos/tie/user.png
|
616
702
|
- lib/generators/social_stream/templates/public/images/right.png
|
617
703
|
- lib/generators/social_stream/templates/public/images/title_background.png
|
704
|
+
- lib/generators/social_stream/templates/public/images/w3c_css.png
|
705
|
+
- lib/generators/social_stream/templates/public/images/w3c_xhtml.png
|
618
706
|
- lib/generators/social_stream/templates/public/javascripts/ajax.paginate.js
|
619
|
-
- lib/generators/social_stream/templates/public/javascripts/hoverIntent.js
|
620
707
|
- lib/generators/social_stream/templates/public/javascripts/jqcloud-0.1.3.min.js
|
621
708
|
- lib/generators/social_stream/templates/public/javascripts/jquery-ui-1.8.4.custom.min.js
|
709
|
+
- lib/generators/social_stream/templates/public/javascripts/jquery-ui-personalized-1.5.2.packed.js
|
622
710
|
- lib/generators/social_stream/templates/public/javascripts/jquery-ui.min.js
|
711
|
+
- lib/generators/social_stream/templates/public/javascripts/jquery.Jcrop.min.js
|
623
712
|
- lib/generators/social_stream/templates/public/javascripts/jquery.ba-url.js
|
624
713
|
- lib/generators/social_stream/templates/public/javascripts/jquery.boxy.js
|
625
714
|
- lib/generators/social_stream/templates/public/javascripts/jquery.fcbkcomplete.min.js
|
@@ -627,57 +716,52 @@ files:
|
|
627
716
|
- lib/generators/social_stream/templates/public/javascripts/jquery.livequery.js
|
628
717
|
- lib/generators/social_stream/templates/public/javascripts/jquery.min.js
|
629
718
|
- lib/generators/social_stream/templates/public/javascripts/jquery.validate.js
|
719
|
+
- lib/generators/social_stream/templates/public/javascripts/main.js
|
720
|
+
- lib/generators/social_stream/templates/public/javascripts/menu-collapsed.js
|
630
721
|
- lib/generators/social_stream/templates/public/javascripts/menu.js
|
631
722
|
- lib/generators/social_stream/templates/public/javascripts/rails.js
|
723
|
+
- lib/generators/social_stream/templates/public/javascripts/superfish.js
|
632
724
|
- lib/generators/social_stream/templates/public/javascripts/ui.dropdownchecklist.js
|
633
|
-
- lib/generators/social_stream/templates/public/stylesheets/activities.css
|
634
|
-
- lib/generators/social_stream/templates/public/stylesheets/base.css
|
635
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
636
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
637
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
638
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
639
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
640
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
641
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
642
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
643
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
644
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
645
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
646
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
647
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
648
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
649
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
650
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
651
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
652
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
653
|
-
- lib/generators/social_stream/templates/public/stylesheets/images/ui-
|
654
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
655
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
656
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
657
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
658
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
659
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
660
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
661
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
662
|
-
- lib/generators/social_stream/templates/public/stylesheets/
|
663
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
664
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
665
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
666
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
667
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
668
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
669
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
670
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-
|
671
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/
|
672
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/
|
673
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-icons_454545_256x240.png
|
674
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-icons_888888_256x240.png
|
675
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
|
676
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/jquery-ui-1.7.3.custom.css
|
677
|
-
- lib/generators/social_stream/templates/public/stylesheets/smoothness/jquery-ui-1.8.4.custom.css
|
678
|
-
- lib/generators/social_stream/templates/public/stylesheets/social_stream.css
|
679
|
-
- lib/generators/social_stream/templates/public/stylesheets/ui.dropdownchecklist.css
|
680
|
-
- lib/generators/social_stream/templates/public/stylesheets/users.css
|
725
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/activities.css
|
726
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/base.css
|
727
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/carousel.css
|
728
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/fcbkComplete.css
|
729
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/footer.css
|
730
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/frontpage.css
|
731
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/header.css
|
732
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/home.css
|
733
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_0_aaaaaa_40x100.png
|
734
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_flat_75_ffffff_40x100.png
|
735
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_55_fbf9ee_1x400.png
|
736
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_65_ffffff_1x400.png
|
737
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_dadada_1x400.png
|
738
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_75_e6e6e6_1x400.png
|
739
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_glass_95_fef1ec_1x400.png
|
740
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
741
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_222222_256x240.png
|
742
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_2e83ff_256x240.png
|
743
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_454545_256x240.png
|
744
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_888888_256x240.png
|
745
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/images/ui-icons_cd0a0a_256x240.png
|
746
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/jqcloud.css
|
747
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/jquery-ui.css
|
748
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/jquery.Jcrop.css
|
749
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/menu.css
|
750
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
751
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
752
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
753
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
754
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
755
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
756
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
757
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
758
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_222222_256x240.png
|
759
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_2e83ff_256x240.png
|
760
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_454545_256x240.png
|
761
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_888888_256x240.png
|
762
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/images/ui-icons_cd0a0a_256x240.png
|
763
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.7.3.custom.css
|
764
|
+
- lib/generators/social_stream/templates/public/stylesheets/default/smoothness/jquery-ui-1.8.4.custom.css
|
681
765
|
- lib/generators/social_stream/templates/relations.yml
|
682
766
|
- lib/paperclip/social_stream.rb
|
683
767
|
- lib/social_stream.rb
|
@@ -689,6 +773,8 @@ files:
|
|
689
773
|
- lib/social_stream/populate.rb
|
690
774
|
- lib/social_stream/rails.rb
|
691
775
|
- lib/social_stream/relations.rb
|
776
|
+
- lib/social_stream/test_helpers.rb
|
777
|
+
- lib/social_stream/test_helpers/controllers.rb
|
692
778
|
- lib/social_stream/version.rb
|
693
779
|
- lib/tasks/db/populate.rake
|
694
780
|
- social_stream.gemspec
|
@@ -696,8 +782,12 @@ files:
|
|
696
782
|
- spec/controllers/frontpage_controller_spec.rb
|
697
783
|
- spec/controllers/groups_controller_spec.rb
|
698
784
|
- spec/controllers/home_controller_spec.rb
|
785
|
+
- spec/controllers/likes_controller_spec.rb
|
786
|
+
- spec/controllers/posts_controller_spec.rb
|
787
|
+
- spec/controllers/profiles_controller_spec.rb
|
699
788
|
- spec/controllers/ties_controller_spec.rb
|
700
789
|
- spec/controllers/users_controller_spec.rb
|
790
|
+
- spec/dummy/.gitignore
|
701
791
|
- spec/dummy/Rakefile
|
702
792
|
- spec/dummy/app/controllers/application_controller.rb
|
703
793
|
- spec/dummy/app/helpers/application_helper.rb
|
@@ -709,6 +799,7 @@ files:
|
|
709
799
|
- spec/dummy/config/environments/development.rb
|
710
800
|
- spec/dummy/config/environments/production.rb
|
711
801
|
- spec/dummy/config/environments/test.rb
|
802
|
+
- spec/dummy/config/environments/test_pg.rb
|
712
803
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
713
804
|
- spec/dummy/config/initializers/devise.rb
|
714
805
|
- spec/dummy/config/initializers/inflections.rb
|
@@ -719,22 +810,13 @@ files:
|
|
719
810
|
- spec/dummy/config/locales/en.yml
|
720
811
|
- spec/dummy/config/relations.yml
|
721
812
|
- spec/dummy/config/routes.rb
|
722
|
-
- spec/dummy/db/.gitignore
|
723
813
|
- spec/dummy/db/migrate/.gitkeep
|
724
814
|
- spec/dummy/db/schema.rb
|
725
815
|
- spec/dummy/db/seeds.rb
|
726
|
-
- spec/dummy/log/.gitignore
|
727
816
|
- spec/dummy/public/404.html
|
728
817
|
- spec/dummy/public/422.html
|
729
818
|
- spec/dummy/public/500.html
|
730
819
|
- spec/dummy/public/favicon.ico
|
731
|
-
- spec/dummy/public/javascripts/application.js
|
732
|
-
- spec/dummy/public/javascripts/controls.js
|
733
|
-
- spec/dummy/public/javascripts/dragdrop.js
|
734
|
-
- spec/dummy/public/javascripts/effects.js
|
735
|
-
- spec/dummy/public/javascripts/prototype.js
|
736
|
-
- spec/dummy/public/javascripts/rails.js
|
737
|
-
- spec/dummy/public/stylesheets/.gitkeep
|
738
820
|
- spec/dummy/script/rails
|
739
821
|
- spec/factories/activity.rb
|
740
822
|
- spec/factories/actor.rb
|