social_stream-base 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/app/assets/stylesheets/header.css.scss +3 -1
  2. data/app/helpers/sidebar_helper.rb +10 -0
  3. data/app/views/avatars/index.html.erb +2 -3
  4. data/app/views/contacts/_suggestions.html.erb +1 -1
  5. data/app/views/contacts/index.html.erb +1 -3
  6. data/app/views/conversations/index.html.erb +1 -3
  7. data/app/views/conversations/show.html.erb +1 -3
  8. data/app/views/devise/registrations/edit.html.erb +3 -5
  9. data/app/views/groups/_show.html.erb +2 -3
  10. data/app/views/groups/{_sidebar_index.html.erb → _tag_cloud.html.erb} +0 -2
  11. data/app/views/groups/index.html.erb +2 -3
  12. data/app/views/groups/new.html.erb +1 -3
  13. data/app/views/home/index.html.erb +1 -3
  14. data/app/views/invitations/new.html.erb +1 -3
  15. data/app/views/layouts/_header_dropdown_menu_sessions.html.erb +1 -1
  16. data/app/views/messages/new.html.erb +2 -3
  17. data/app/views/notifications/index.html.erb +1 -3
  18. data/app/views/profiles/edit.html.erb +1 -3
  19. data/app/views/profiles/show.html.erb +2 -4
  20. data/app/views/search/index.html.erb +1 -3
  21. data/app/views/settings/index.html.erb +1 -3
  22. data/app/views/users/_show.html.erb +1 -3
  23. data/app/views/users/index.html.erb +1 -3
  24. data/lib/social_stream-base.rb +9 -47
  25. data/lib/social_stream/base/dependencies.rb +47 -0
  26. data/lib/social_stream/base/engine.rb +6 -0
  27. data/lib/social_stream/base/version.rb +1 -1
  28. data/lib/social_stream/controllers/helpers.rb +11 -0
  29. data/lib/social_stream/views/list.rb +17 -0
  30. data/lib/social_stream/views/settings/base.rb +1 -1
  31. data/lib/social_stream/views/sidebar/base.rb +27 -0
  32. data/lib/tasks/db/populate.rake +12 -10
  33. data/social_stream-base.gemspec +4 -2
  34. metadata +69 -68
  35. data/app/views/groups/_sidebar_show.html.erb +0 -3
  36. data/app/views/home/_sidebar.html.erb +0 -2
  37. data/app/views/users/_sidebar_index.html.erb +0 -1
  38. data/lib/social_stream/views/settings/item_list.rb +0 -13
@@ -29,6 +29,7 @@
29
29
  background: transparent url('btn/header_notifications.png') no-repeat center center;}
30
30
  #header_inbox_count a{ color: white; background-color: $header-notification-color; padding: 2px 7px 2px 7px;}
31
31
  #representation { display: inline; padding-left:3px; padding-right:3px;}
32
+ .switch_pending_count { color: white; background-color: $header-notification-color; padding: 2px 7px 2px 7px !important; margin-left: 5px !important; float: right; }
32
33
  .txt_config {color: $text-over-main; vertical-align: top; display: inline; padding-top: 2px;
33
34
  border-right: thin solid; padding-right: 3px;}
34
35
  .txt_config2 {color: $text-over-main; vertical-align: top; display: inline; padding-top: 2px; padding-right: 3px;}
@@ -48,8 +49,9 @@
48
49
  #header_dropdown_menu ul li a{padding: .40em 1em .70em 2.5em;}
49
50
  #header_dropdown_menu ul li a:hover{color:$main-color;}
50
51
  #header_dropdown_menu ul li ul li a{padding: .40em 1em .70em 1em;}
52
+ #header_dropdown_menu ul li ul li ul li {width: 160px;}
51
53
  #header_dropdown_menu ul li ul li ul li a{padding: .40em 1em .70em 2.5em;}
52
- #header_dropdown_menu ul li ul li ul{position: absolute; left: -120px;}
54
+ #header_dropdown_menu ul li ul li ul{position: absolute; left: -160px;}
53
55
  #header_dropdown_menu a.session_change{background: transparent url('btn/arrow_session_change.png') no-repeat 3px 6px;}
54
56
 
55
57
  #menu_home ul li.pipe,#menu_account ul li.pipe{padding:0; margin:0;font-size: 20px;font-weight: bold;}
@@ -0,0 +1,10 @@
1
+ module SidebarHelper
2
+ include SocialStream::Views::Sidebar
3
+
4
+ def sidebar type = nil
5
+ content_for :sidebar,
6
+ sidebar_items(type).inject(ActiveSupport::SafeBuffer.new){ |result, item|
7
+ result + item[:html]
8
+ }
9
+ end
10
+ end
@@ -3,9 +3,8 @@
3
3
  <% content_for :title do%>
4
4
  <%= current_subject.name %>
5
5
  <% end%>
6
- <% content_for :sidebar do %>
7
- <%= render :partial => 'home/sidebar' %>
8
- <% end %>
6
+
7
+ <% sidebar %>
9
8
 
10
9
  <%= location(
11
10
  link_to(t('menu.information'), [current_subject,:profile]),
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
  <div class="content">
10
10
  <div class="suggestions">
11
- <%= render sgs %>
11
+ <%= render :partial => "contacts/contact", :collection => sgs %>
12
12
  </div>
13
13
  </div>
14
14
  </div>
@@ -2,9 +2,7 @@
2
2
  <%= t('contact.other')%>
3
3
  <%end%>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <% toolbar :option => :contacts %>
10
8
 
@@ -2,9 +2,7 @@
2
2
  <%=t('message.other')%>
3
3
  <% end %>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <% content_for :javascript do %>
10
8
  $('.pagination a').attr('data-remote', 'true');
@@ -2,9 +2,7 @@
2
2
  <%=t('message.other')%>
3
3
  <% end %>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <% toolbar :option => :messages %>
10
8
 
@@ -1,7 +1,7 @@
1
1
  <% toolbar :profile => current_subject %>
2
- <% content_for :sidebar do %>
3
- <%= render :partial => 'home/sidebar' %>
4
- <% end %>
2
+
3
+ <% sidebar %>
4
+
5
5
  <%= location(t('account.one'),
6
6
  link_to(t('settings.main'), settings_path)
7
7
  ) %>
@@ -17,6 +17,4 @@
17
17
  <% if current_subject.respond_to? :authentication_token%>
18
18
  <%= render :partial => "settings/api_key" %>
19
19
  <% end %>
20
- <%= render :partial => "settings/contacts" %>
21
20
  <%= render :partial => "delete_account"%>
22
-
@@ -13,9 +13,8 @@
13
13
  <% content_for :keywords do %>
14
14
  <%= @group.profile.subject.tag_list%>
15
15
  <% end %>
16
- <% content_for :sidebar do %>
17
- <%= render :partial => 'sidebar_show' %>
18
- <% end %>
16
+
17
+ <% sidebar %>
19
18
 
20
19
  <%= location(link_to(t('group.one')+": "+truncate_name(sanitize @group.name)))%>
21
20
 
@@ -10,8 +10,6 @@
10
10
  <div id="wordcloud" class="content"></div>
11
11
  </div>
12
12
 
13
- <%= render :partial => 'contacts/suggestions_and_pendings' %>
14
-
15
13
  <% tags = ActivityObject.tag_counts %>
16
14
 
17
15
  <script type="text/javascript">
@@ -4,9 +4,8 @@
4
4
 
5
5
  <% toolbar if user_signed_in? %>
6
6
 
7
- <% content_for :sidebar do %>
8
- <%= render :partial => "groups/sidebar_index" %>
9
- <% end %>
7
+ <% sidebar :group_index %>
8
+
10
9
  <%= location(t('browse') +": "+
11
10
  link_to(t('user.by'), users_path) + ", "+
12
11
  content_tag(:b,content_tag(:span, t('group.all'), :id=>'name_group')))%>
@@ -4,8 +4,6 @@
4
4
 
5
5
  <% toolbar :option => 'groups' %>
6
6
 
7
- <% content_for :sidebar do %>
8
- <%= render :partial => "sidebar_index" %>
9
- <% end %>
7
+ <% sidebar :group_index %>
10
8
 
11
9
  <%= render :partial => 'new' %>
@@ -1,6 +1,4 @@
1
- <% content_for :sidebar do %>
2
- <% render :partial => 'sidebar' %>
3
- <% end %>
1
+ <% sidebar %>
4
2
 
5
3
  <%= location(link_to(t('home')+": "+ truncate_name(sanitize current_subject.name)))%>
6
4
 
@@ -1,8 +1,6 @@
1
1
  <% toolbar %>
2
2
 
3
- <% content_for :sidebar do %>
4
- <%= render :partial => "home/sidebar" %>
5
- <% end %>
3
+ <% sidebar %>
6
4
 
7
5
  <%= location(
8
6
  link_to(t('invitation.other'), new_invitation_path)
@@ -5,7 +5,7 @@
5
5
  <ul>
6
6
  <% representations.each do |representation| %>
7
7
  <li>
8
- <%= link_to truncate_name(representation.name, :length => 15), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
8
+ <%= link_to truncate_name(representation.name, :length => 15) + (content_tag(:span, representation.pending_contacts_count.to_s, :class => "switch_pending_count") if representation.pending_contacts_count > 0), { :s => representation.slug }, { :style => "background: transparent url('#{ image_path representation.logo.url(:representation)}') no-repeat left center;margin-left:2px;" } %>
9
9
  </li>
10
10
  <% end %>
11
11
  </ul>
@@ -1,9 +1,8 @@
1
1
  <% content_for :title do %>
2
2
  <%=t('message.other')%>
3
3
  <% end %>
4
- <% content_for :sidebar do %>
5
- <%= render :partial => 'home/sidebar' %>
6
- <% end %>
4
+
5
+ <% sidebar %>
7
6
 
8
7
  <% toolbar :option => :messages %>
9
8
 
@@ -2,9 +2,7 @@
2
2
  <%= current_subject.name %>
3
3
  <% end %>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <%= location(
10
8
  link_to(t('notification.other'), notifications_path,:remote => true) +' ('+@mailbox.notifications.not_trashed.unread.count.to_s+')'
@@ -1,8 +1,6 @@
1
1
  <% toolbar :profile => current_subject %>
2
2
 
3
- <% content_for :sidebar do %>
4
- <%= render :partial => "#{ current_subject.class.to_s.tableize }/sidebar_index" %>
5
- <% end %>
3
+ <% sidebar %>
6
4
 
7
5
  <%if params[:section].present?
8
6
  case params[:section]
@@ -11,9 +11,7 @@
11
11
  <%= @profile.subject.tag_list%>
12
12
  <% end %>
13
13
 
14
- <% content_for :sidebar do %>
15
- <%= render :partial => 'users/sidebar_index' %>
16
- <% end %>
14
+ <% sidebar %>
17
15
 
18
16
  <% toolbar :profile => @profile.subject %>
19
17
 
@@ -21,4 +19,4 @@
21
19
  <%= location(link_to(t('menu.information'), [@profile.subject, :profile])) %>
22
20
 
23
21
 
24
- <%= render :partial => "profile" %>
22
+ <%= render :partial => "profile" %>
@@ -2,9 +2,7 @@
2
2
  <%= t('search.name')%> <%= params[:search_query].present? ? ": #{params[:search_query]}" : ""%>
3
3
  <% end %>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <% toolbar if user_signed_in? %>
10
8
 
@@ -2,9 +2,7 @@
2
2
  <%=t('settings.one')%>
3
3
  <% end %>
4
4
 
5
- <% content_for :sidebar do %>
6
- <%= render :partial => 'home/sidebar' %>
7
- <% end %>
5
+ <% sidebar %>
8
6
 
9
7
  <% toolbar :profile => current_subject %>
10
8
 
@@ -15,9 +15,7 @@
15
15
  <%= @user.profile.subject.tag_list%>
16
16
  <% end %>
17
17
 
18
- <% content_for :sidebar do %>
19
- <%= render :partial => 'sidebar_index' %>
20
- <% end %>
18
+ <% sidebar %>
21
19
 
22
20
  <%= location(link_to(t('profile.one')+": "+truncate_name(sanitize @user.name)))%>
23
21
 
@@ -4,9 +4,7 @@
4
4
 
5
5
  <% toolbar if user_signed_in? %>
6
6
 
7
- <% content_for :sidebar do %>
8
- <%= render :partial => "users/sidebar_index" %>
9
- <% end %>
7
+ <% sidebar %>
10
8
 
11
9
  <%= location(t('browse') +": "+
12
10
  content_tag(:b ,content_tag(:span, t('user.other'), :id=>'name_group')) + ", "+
@@ -1,48 +1,5 @@
1
- # Database foreign keys
2
- require 'foreigner'
3
- # jQuery
4
- require 'jquery-rails'
5
- # Permalinks:
6
- require 'stringex'
7
- # Hierarchical relationships in Activity and Relation:
8
- require 'ancestry'
9
- # Messages
10
- require 'mailboxer'
11
- # User authentication
12
- require 'devise'
13
- # Authorization
14
- require 'cancan'
15
- # REST controllers
16
- require 'inherited_resources'
17
- # Scopes in controllers
18
- require 'has_scope'
19
- # Logo attachments
20
- require 'paperclip'
21
- require 'paperclip/social_stream'
22
- require 'avatars_for_rails'
23
- # Pagination
24
- require 'kaminari'
25
- # Oauth
26
- require 'omniauth/oauth'
27
- #Tags
28
- require 'acts-as-taggable-on'
29
- require 'acts_as_taggable_on/social_stream'
30
- # HTML forms
31
- require 'formtastic'
32
- #Background tasks
33
- require 'resque/server'
34
- #Simple Navigation for menu
35
- require 'simple-navigation'
36
- # Modernizr.js library
37
- require 'modernizr-rails'
38
- # Sphinx search engine
39
- require 'thinking-sphinx'
40
- # Syntactically Awesome Stylesheets
41
- require 'sass-rails'
42
- # Autolink text blocks
43
- require 'rails_autolink'
44
- # SocialCheesecake
45
- require 'social_cheesecake'
1
+ # Gem's dependencies
2
+ require 'social_stream/base/dependencies'
46
3
 
47
4
  # Provides your Rails application with social network and activity stream support
48
5
  module SocialStream
@@ -65,9 +22,14 @@ module SocialStream
65
22
  end
66
23
 
67
24
  module Views
25
+ autoload :List, 'social_stream/views/list'
26
+
68
27
  module Settings
69
- autoload :Base, 'social_stream/views/settings/base'
70
- autoload :ItemList, 'social_stream/views/settings/item_list'
28
+ autoload :Base, 'social_stream/views/settings/base'
29
+ end
30
+
31
+ module Sidebar
32
+ autoload :Base, 'social_stream/views/sidebar/base'
71
33
  end
72
34
  end
73
35
 
@@ -0,0 +1,47 @@
1
+ # Database foreign keys
2
+ require 'foreigner'
3
+ # jQuery
4
+ require 'jquery-rails'
5
+ # Permalinks:
6
+ require 'stringex'
7
+ # Hierarchical relationships in Activity and Relation:
8
+ require 'ancestry'
9
+ # Messages
10
+ require 'mailboxer'
11
+ # User authentication
12
+ require 'devise'
13
+ # Authorization
14
+ require 'cancan'
15
+ # REST controllers
16
+ require 'inherited_resources'
17
+ # Scopes in controllers
18
+ require 'has_scope'
19
+ # Logo attachments
20
+ require 'paperclip'
21
+ require 'paperclip/social_stream'
22
+ require 'avatars_for_rails'
23
+ # Pagination
24
+ require 'kaminari'
25
+ # Oauth
26
+ require 'omniauth/oauth'
27
+ #Tags
28
+ require 'acts-as-taggable-on'
29
+ require 'acts_as_taggable_on/social_stream'
30
+ # HTML forms
31
+ require 'formtastic'
32
+ #Background tasks
33
+ require 'resque/server'
34
+ #Simple Navigation for menu
35
+ require 'simple-navigation'
36
+ # Modernizr.js library
37
+ require 'modernizr-rails'
38
+ # Sphinx search engine
39
+ require 'thinking-sphinx'
40
+ # Syntactically Awesome Stylesheets
41
+ require 'sass-rails'
42
+ # Autolink text blocks
43
+ require 'rails_autolink'
44
+ # SocialCheesecake
45
+ require 'social_cheesecake'
46
+
47
+
@@ -37,6 +37,12 @@ module SocialStream
37
37
  end
38
38
  end
39
39
 
40
+ initializer "social_stream-base.views.sidebar" do
41
+ SocialStream::Views::Sidebar.module_eval do
42
+ include SocialStream::Views::Sidebar::Base
43
+ end
44
+ end
45
+
40
46
  initializer "social_stream-base.avatars_for_rails" do
41
47
  AvatarsForRails.setup do |config|
42
48
  config.avatarable_model = :actor
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.11.0".freeze
3
+ VERSION = "0.11.1".freeze
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ module SocialStream
7
7
  included do
8
8
  helper_method :current_subject,
9
9
  :profile_subject,
10
+ :profile_or_current_subject,
10
11
  :profile_subject_is_current?
11
12
  end
12
13
 
@@ -80,6 +81,16 @@ module SocialStream
80
81
  @profile_subject ||= association_chain[-1] || warden.authenticate!
81
82
  end
82
83
 
84
+ # Profile subject is suitable for paths like:
85
+ # /users/demo/posts
86
+ #
87
+ # This method tries {#profile_subject} first and then {#current_subject}
88
+ def profile_or_current_subject
89
+ profile_subject || current_subject
90
+ rescue
91
+ current_subject
92
+ end
93
+
83
94
  # A {User} must be logged in and is equal to {#profile_subject}
84
95
  def profile_subject_is_current?
85
96
  user_signed_in? && profile_subject == current_subject
@@ -0,0 +1,17 @@
1
+ module SocialStream
2
+ module Views
3
+ class List < Array
4
+ def insert_before key, obj
5
+ position = index{ |i| i[:key] == key }
6
+
7
+ insert position, obj
8
+ end
9
+
10
+ def insert_after key, obj
11
+ position = index{ |i| i[:key] == key } + 1
12
+
13
+ insert position, obj
14
+ end
15
+ end
16
+ end
17
+ end
@@ -3,7 +3,7 @@ module SocialStream
3
3
  module Settings
4
4
  module Base
5
5
  def settings_items
6
- SocialStream::Views::Settings::ItemList.new.tap do |items|
6
+ SocialStream::Views::List.new.tap do |items|
7
7
  if current_subject == current_user
8
8
  items << {
9
9
  :key => 'user.edit',
@@ -0,0 +1,27 @@
1
+ module SocialStream
2
+ module Views
3
+ module Sidebar
4
+ module Base
5
+ def sidebar_items type
6
+ SocialStream::Views::List.new.tap do |items|
7
+ if type == :group_index
8
+ items << {
9
+ :key => 'group.cloud',
10
+ :html => render(:partial => 'groups/tag_cloud')
11
+ }
12
+
13
+ end
14
+
15
+ if user_signed_in?
16
+ items << {
17
+ :key => 'suggestions_and_pendings',
18
+ :html => render(:partial => 'contacts/suggestions_and_pendings')
19
+ }
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+
@@ -13,15 +13,15 @@ namespace :db do
13
13
  LOGOS_PATH = File.join(Rails.root, 'lib', 'logos')
14
14
  USERS = (ENV["USERS"] || 9).to_i
15
15
  GROUPS = (ENV["GROUPS"] || 10).to_i
16
- CHEESECAKE_TESTING = (ENV["CHEESECAKE_TESTING"].present? || false)
17
- if CHEESECAKE_TESTING
16
+ CHEESECAKE = (ENV["CHEESECAKE"].present? || false)
17
+ if CHEESECAKE
18
18
  puts "Cheesecake Testing mode: ON"
19
19
  end
20
20
  if ENV["HARDCORE"].present?
21
21
  USERS = 999
22
22
  GROUPS = 1000
23
23
  puts "Hardcore mode: ON (May the Force be with you brave Padawan)"
24
- if CHEESECAKE_TESTING
24
+ if CHEESECAKE
25
25
  puts "WARNING: Hardcore and Cheesecake Modes activated. This situation is really slow. Please, avoid it."
26
26
  end
27
27
  end
@@ -121,13 +121,15 @@ namespace :db do
121
121
  relations = a.relation_customs + Array.wrap(a.relation_reject)
122
122
  break if actors.size==0
123
123
  Forgery::Basic.number(:at_most => actors.size).times do
124
- actor = actors.delete_at((rand * actors.size).to_i)
125
- a.contact_to!(actor).relation_ids = Array(Forgery::Extensions::Array.new(relations).random.id)
124
+ actor = actors.delete_at((rand * actors.size).to_i)
125
+ a.contact_to!(actor).relation_ids = Array(Forgery::Extensions::Array.new(relations).random.id) unless a==actor
126
126
  end
127
- if CHEESECAKE_TESTING
127
+ if CHEESECAKE
128
128
  actor = Actor.first
129
- puts a.name + " connecting with " + actor.name
130
- a.contact_to!(actor).relation_ids = Array(Forgery::Extensions::Array.new(relations).random.id)
129
+ unless a==actor
130
+ puts a.name + " connecting with " + actor.name
131
+ a.contact_to!(actor).relation_ids = Array(Forgery::Extensions::Array.new(relations).random.id)
132
+ end
131
133
  end
132
134
  end
133
135
 
@@ -136,7 +138,7 @@ namespace :db do
136
138
 
137
139
  # = Posts
138
140
  puts 'Post population'
139
- unless CHEESECAKE_TESTING
141
+ unless CHEESECAKE
140
142
  posts_start = Time.now
141
143
 
142
144
  SocialStream::Populate.power_law(Tie.all) do |t|
@@ -167,7 +169,7 @@ namespace :db do
167
169
 
168
170
  # = Mailboxer
169
171
  puts 'Mailboxer population'
170
- unless CHEESECAKE_TESTING
172
+ unless CHEESECAKE
171
173
  mailboxer_start = Time.now
172
174
  available_actors = Actor.all
173
175
 
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
13
13
 
14
14
  # Runtime gem dependencies
15
15
  #
16
+ # Do not forget to require the file at lib/social_stream/base/dependencies !
17
+ #
16
18
  # Rails
17
19
  s.add_runtime_dependency('rails', '>= 3.1.0')
18
20
  # Activity and Relation hierarchies
@@ -26,7 +28,7 @@ Gem::Specification.new do |s|
26
28
  # Slug generation
27
29
  s.add_runtime_dependency('stringex', '~> 1.3.0')
28
30
  # Avatar attachments
29
- s.add_runtime_dependency('avatars_for_rails', '~> 0.2.0')
31
+ s.add_runtime_dependency('avatars_for_rails', '~> 0.2.2')
30
32
  # jQuery
31
33
  s.add_runtime_dependency('jquery-rails', '~> 1.0.9')
32
34
  # Authorization
@@ -54,7 +56,7 @@ Gem::Specification.new do |s|
54
56
  # Autolink text blocks
55
57
  s.add_runtime_dependency('rails_autolink', '~> 1.0.4')
56
58
  # SocialCheesecake
57
- s.add_runtime_dependency('social_cheesecake','~> 0.0.4')
59
+ s.add_runtime_dependency('social_cheesecake','~> 0.1.0')
58
60
 
59
61
  # Development gem dependencies
60
62
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-21 00:00:00.000000000Z
13
+ date: 2011-12-22 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &73136640 !ruby/object:Gem::Requirement
17
+ requirement: &76108970 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *73136640
25
+ version_requirements: *76108970
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: ancestry
28
- requirement: &73136200 !ruby/object:Gem::Requirement
28
+ requirement: &76108600 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.2.3
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *73136200
36
+ version_requirements: *76108600
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: foreigner
39
- requirement: &73135840 !ruby/object:Gem::Requirement
39
+ requirement: &76108340 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.1.1
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *73135840
47
+ version_requirements: *76108340
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: devise
50
- requirement: &72916670 !ruby/object:Gem::Requirement
50
+ requirement: &76108100 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.4.5
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *72916670
58
+ version_requirements: *76108100
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: inherited_resources
61
- requirement: &72916170 !ruby/object:Gem::Requirement
61
+ requirement: &76107850 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.3.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *72916170
69
+ version_requirements: *76107850
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: stringex
72
- requirement: &72915610 !ruby/object:Gem::Requirement
72
+ requirement: &76107520 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,21 +77,21 @@ dependencies:
77
77
  version: 1.3.0
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *72915610
80
+ version_requirements: *76107520
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: avatars_for_rails
83
- requirement: &72915190 !ruby/object:Gem::Requirement
83
+ requirement: &76107220 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
87
87
  - !ruby/object:Gem::Version
88
- version: 0.2.0
88
+ version: 0.2.2
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *72915190
91
+ version_requirements: *76107220
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: jquery-rails
94
- requirement: &72914810 !ruby/object:Gem::Requirement
94
+ requirement: &76106840 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 1.0.9
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *72914810
102
+ version_requirements: *76106840
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: cancan
105
- requirement: &72914410 !ruby/object:Gem::Requirement
105
+ requirement: &76106560 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 1.6.4
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *72914410
113
+ version_requirements: *76106560
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: kaminari
116
- requirement: &72914050 !ruby/object:Gem::Requirement
116
+ requirement: &76106310 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 0.12.4
122
122
  type: :runtime
123
123
  prerelease: false
124
- version_requirements: *72914050
124
+ version_requirements: *76106310
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: omniauth
127
- requirement: &72913690 !ruby/object:Gem::Requirement
127
+ requirement: &76105880 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.2.6
133
133
  type: :runtime
134
134
  prerelease: false
135
- version_requirements: *72913690
135
+ version_requirements: *76105880
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: mailboxer
138
- requirement: &72913320 !ruby/object:Gem::Requirement
138
+ requirement: &76105460 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: 0.5.4
144
144
  type: :runtime
145
145
  prerelease: false
146
- version_requirements: *72913320
146
+ version_requirements: *76105460
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: acts-as-taggable-on
149
- requirement: &72913000 !ruby/object:Gem::Requirement
149
+ requirement: &76104760 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ~>
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: 2.0.6
155
155
  type: :runtime
156
156
  prerelease: false
157
- version_requirements: *72913000
157
+ version_requirements: *76104760
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: formtastic
160
- requirement: &72912630 !ruby/object:Gem::Requirement
160
+ requirement: &76104440 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ~>
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: 1.2.3
166
166
  type: :runtime
167
167
  prerelease: false
168
- version_requirements: *72912630
168
+ version_requirements: *76104440
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: simple-navigation
171
- requirement: &72912350 !ruby/object:Gem::Requirement
171
+ requirement: &76104210 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ~>
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: 3.5.1
177
177
  type: :runtime
178
178
  prerelease: false
179
- version_requirements: *72912350
179
+ version_requirements: *76104210
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: resque
182
- requirement: &72911980 !ruby/object:Gem::Requirement
182
+ requirement: &76103830 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ~>
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: 1.19.0
188
188
  type: :runtime
189
189
  prerelease: false
190
- version_requirements: *72911980
190
+ version_requirements: *76103830
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: modernizr-rails
193
- requirement: &72911620 !ruby/object:Gem::Requirement
193
+ requirement: &76103500 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ~>
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: 2.0.6
199
199
  type: :runtime
200
200
  prerelease: false
201
- version_requirements: *72911620
201
+ version_requirements: *76103500
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: thinking-sphinx
204
- requirement: &72911260 !ruby/object:Gem::Requirement
204
+ requirement: &76103200 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ~>
@@ -209,10 +209,10 @@ dependencies:
209
209
  version: 2.0.8
210
210
  type: :runtime
211
211
  prerelease: false
212
- version_requirements: *72911260
212
+ version_requirements: *76103200
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: sass-rails
215
- requirement: &72910810 !ruby/object:Gem::Requirement
215
+ requirement: &76090370 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
218
  - - ~>
@@ -220,10 +220,10 @@ dependencies:
220
220
  version: 3.1.0
221
221
  type: :runtime
222
222
  prerelease: false
223
- version_requirements: *72910810
223
+ version_requirements: *76090370
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: rails_autolink
226
- requirement: &72910060 !ruby/object:Gem::Requirement
226
+ requirement: &76090020 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
229
229
  - - ~>
@@ -231,21 +231,21 @@ dependencies:
231
231
  version: 1.0.4
232
232
  type: :runtime
233
233
  prerelease: false
234
- version_requirements: *72910060
234
+ version_requirements: *76090020
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: social_cheesecake
237
- requirement: &72909740 !ruby/object:Gem::Requirement
237
+ requirement: &76089730 !ruby/object:Gem::Requirement
238
238
  none: false
239
239
  requirements:
240
240
  - - ~>
241
241
  - !ruby/object:Gem::Version
242
- version: 0.0.4
242
+ version: 0.1.0
243
243
  type: :runtime
244
244
  prerelease: false
245
- version_requirements: *72909740
245
+ version_requirements: *76089730
246
246
  - !ruby/object:Gem::Dependency
247
247
  name: capybara
248
- requirement: &72909420 !ruby/object:Gem::Requirement
248
+ requirement: &76089330 !ruby/object:Gem::Requirement
249
249
  none: false
250
250
  requirements:
251
251
  - - ~>
@@ -253,10 +253,10 @@ dependencies:
253
253
  version: 0.3.9
254
254
  type: :development
255
255
  prerelease: false
256
- version_requirements: *72909420
256
+ version_requirements: *76089330
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: sqlite3-ruby
259
- requirement: &72909110 !ruby/object:Gem::Requirement
259
+ requirement: &76088960 !ruby/object:Gem::Requirement
260
260
  none: false
261
261
  requirements:
262
262
  - - ! '>='
@@ -264,10 +264,10 @@ dependencies:
264
264
  version: '0'
265
265
  type: :development
266
266
  prerelease: false
267
- version_requirements: *72909110
267
+ version_requirements: *76088960
268
268
  - !ruby/object:Gem::Dependency
269
269
  name: ruby-debug19
270
- requirement: &72908770 !ruby/object:Gem::Requirement
270
+ requirement: &76088570 !ruby/object:Gem::Requirement
271
271
  none: false
272
272
  requirements:
273
273
  - - ! '>='
@@ -275,10 +275,10 @@ dependencies:
275
275
  version: '0'
276
276
  type: :development
277
277
  prerelease: false
278
- version_requirements: *72908770
278
+ version_requirements: *76088570
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: rspec-rails
281
- requirement: &72812420 !ruby/object:Gem::Requirement
281
+ requirement: &76088190 !ruby/object:Gem::Requirement
282
282
  none: false
283
283
  requirements:
284
284
  - - ~>
@@ -286,10 +286,10 @@ dependencies:
286
286
  version: 2.6.1
287
287
  type: :development
288
288
  prerelease: false
289
- version_requirements: *72812420
289
+ version_requirements: *76088190
290
290
  - !ruby/object:Gem::Dependency
291
291
  name: factory_girl
292
- requirement: &72812040 !ruby/object:Gem::Requirement
292
+ requirement: &76087790 !ruby/object:Gem::Requirement
293
293
  none: false
294
294
  requirements:
295
295
  - - ~>
@@ -297,10 +297,10 @@ dependencies:
297
297
  version: 1.3.2
298
298
  type: :development
299
299
  prerelease: false
300
- version_requirements: *72812040
300
+ version_requirements: *76087790
301
301
  - !ruby/object:Gem::Dependency
302
302
  name: forgery
303
- requirement: &72811730 !ruby/object:Gem::Requirement
303
+ requirement: &76087520 !ruby/object:Gem::Requirement
304
304
  none: false
305
305
  requirements:
306
306
  - - ~>
@@ -308,10 +308,10 @@ dependencies:
308
308
  version: 0.4.2
309
309
  type: :development
310
310
  prerelease: false
311
- version_requirements: *72811730
311
+ version_requirements: *76087520
312
312
  - !ruby/object:Gem::Dependency
313
313
  name: ci_reporter
314
- requirement: &72811420 !ruby/object:Gem::Requirement
314
+ requirement: &76087290 !ruby/object:Gem::Requirement
315
315
  none: false
316
316
  requirements:
317
317
  - - ~>
@@ -319,10 +319,10 @@ dependencies:
319
319
  version: 1.6.4
320
320
  type: :development
321
321
  prerelease: false
322
- version_requirements: *72811420
322
+ version_requirements: *76087290
323
323
  - !ruby/object:Gem::Dependency
324
324
  name: nifty-generators
325
- requirement: &72811150 !ruby/object:Gem::Requirement
325
+ requirement: &76087050 !ruby/object:Gem::Requirement
326
326
  none: false
327
327
  requirements:
328
328
  - - ~>
@@ -330,7 +330,7 @@ dependencies:
330
330
  version: 0.4.5
331
331
  type: :development
332
332
  prerelease: false
333
- version_requirements: *72811150
333
+ version_requirements: *76087050
334
334
  description: ! 'Social Stream is a Ruby on Rails engine providing your application
335
335
  with social networking features and activity streams.
336
336
 
@@ -593,6 +593,7 @@ files:
593
593
  - app/helpers/profiles_helper.rb
594
594
  - app/helpers/search_helper.rb
595
595
  - app/helpers/settings_helper.rb
596
+ - app/helpers/sidebar_helper.rb
596
597
  - app/helpers/subjects_helper.rb
597
598
  - app/helpers/toolbar_helper.rb
598
599
  - app/helpers/users_helper.rb
@@ -686,15 +687,13 @@ files:
686
687
  - app/views/groups/_index.html.erb
687
688
  - app/views/groups/_new.html.erb
688
689
  - app/views/groups/_show.html.erb
689
- - app/views/groups/_sidebar_index.html.erb
690
- - app/views/groups/_sidebar_show.html.erb
690
+ - app/views/groups/_tag_cloud.html.erb
691
691
  - app/views/groups/index.html.erb
692
692
  - app/views/groups/index.js.erb
693
693
  - app/views/groups/new.html.erb
694
694
  - app/views/groups/show.html.erb
695
695
  - app/views/groups/show.js.erb
696
696
  - app/views/home/_groups.html.erb
697
- - app/views/home/_sidebar.html.erb
698
697
  - app/views/home/index.html.erb
699
698
  - app/views/home/index.js.erb
700
699
  - app/views/invitation_mailer/send_invitation.html.erb
@@ -797,7 +796,6 @@ files:
797
796
  - app/views/users/_groups.html.erb
798
797
  - app/views/users/_index.html.erb
799
798
  - app/views/users/_show.html.erb
800
- - app/views/users/_sidebar_index.html.erb
801
799
  - app/views/users/_user.html.erb
802
800
  - app/views/users/_user_focus_search.html.erb
803
801
  - app/views/users/_user_global_search.html.erb
@@ -829,6 +827,7 @@ files:
829
827
  - lib/social_stream-base.rb
830
828
  - lib/social_stream/ability.rb
831
829
  - lib/social_stream/ability/base.rb
830
+ - lib/social_stream/base/dependencies.rb
832
831
  - lib/social_stream/base/engine.rb
833
832
  - lib/social_stream/base/version.rb
834
833
  - lib/social_stream/controllers/cancan_devise_integration.rb
@@ -844,8 +843,9 @@ files:
844
843
  - lib/social_stream/test_helpers.rb
845
844
  - lib/social_stream/test_helpers/controllers.rb
846
845
  - lib/social_stream/toolbar_config/base.rb
846
+ - lib/social_stream/views/list.rb
847
847
  - lib/social_stream/views/settings/base.rb
848
- - lib/social_stream/views/settings/item_list.rb
848
+ - lib/social_stream/views/sidebar/base.rb
849
849
  - lib/tasks/db/populate.rake
850
850
  - lib/tasks/workers.rake
851
851
  - social_stream-base.gemspec
@@ -989,8 +989,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
989
989
  version: '0'
990
990
  requirements: []
991
991
  rubyforge_project:
992
- rubygems_version: 1.8.10
992
+ rubygems_version: 1.8.12
993
993
  signing_key:
994
994
  specification_version: 3
995
995
  summary: Basic features for Social Stream, the core for building social network websites
996
996
  test_files: []
997
+ has_rdoc:
@@ -1,3 +0,0 @@
1
- <div class="space_center"></div>
2
-
3
- <%= render :partial => 'contacts/suggestions_and_pendings' %>
@@ -1,2 +0,0 @@
1
- <%= render :partial => 'contacts/suggestions_and_pendings' %>
2
-
@@ -1 +0,0 @@
1
- <%= render :partial => 'contacts/suggestions_and_pendings' %>
@@ -1,13 +0,0 @@
1
- module SocialStream
2
- module Views
3
- module Settings
4
- class ItemList < Array
5
- def insert_before key, obj
6
- position = index{ |i| i[:key] == 'notifications' } + 1
7
-
8
- insert position, obj
9
- end
10
- end
11
- end
12
- end
13
- end