social_stream-base 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. data/app/assets/stylesheets/activities.css +5 -0
  2. data/app/assets/stylesheets/contacts.css +1 -1
  3. data/app/assets/stylesheets/conversations.css +3 -0
  4. data/app/assets/stylesheets/groups.css +5 -0
  5. data/app/assets/stylesheets/invitations.css +3 -0
  6. data/app/assets/stylesheets/messages.css +4 -0
  7. data/app/assets/stylesheets/profiles.css +4 -0
  8. data/app/assets/stylesheets/relation_customs.css +2 -2
  9. data/app/assets/stylesheets/social_stream-base.css +3 -0
  10. data/app/assets/stylesheets/toolbar.css +3 -0
  11. data/app/assets/stylesheets/users.css +4 -0
  12. data/app/views/activities/_index.html.erb +0 -5
  13. data/app/views/comments/destroy.js.erb +1 -2
  14. data/app/views/contacts/_form.html.erb +0 -4
  15. data/app/views/conversations/index.html.erb +0 -4
  16. data/app/views/conversations/index.js.erb +0 -3
  17. data/app/views/conversations/show.html.erb +0 -4
  18. data/app/views/conversations/show.js.erb +0 -2
  19. data/app/views/groups/_new.html.erb +0 -4
  20. data/app/views/groups/_sidebar_index.html.erb +0 -2
  21. data/app/views/groups/index.html.erb +0 -3
  22. data/app/views/groups/new.html.erb +0 -3
  23. data/app/views/invitations/new.html.erb +0 -4
  24. data/app/views/layouts/application.html.erb +3 -3
  25. data/app/views/layouts/frontpage.html.erb +1 -2
  26. data/app/views/messages/new.html.erb +0 -5
  27. data/app/views/messages/new.js.erb +0 -3
  28. data/app/views/notification_mailer/new_notification_email.html.erb +2 -2
  29. data/app/views/notification_mailer/new_notification_email.text.erb +2 -5
  30. data/app/views/notifications/_notification.html.erb +6 -6
  31. data/app/views/notifications/index.html.erb +1 -5
  32. data/app/views/notifications/index.js.erb +0 -3
  33. data/app/views/objects/_destroy.js.erb +2 -0
  34. data/app/views/posts/destroy.js.erb +1 -2
  35. data/app/views/profiles/edit.html.erb +0 -8
  36. data/app/views/relation/customs/index.html.erb +0 -4
  37. data/app/views/settings/index.html.erb +0 -4
  38. data/app/views/settings/index.js.erb +0 -1
  39. data/app/views/toolbar/_home.html.erb +0 -4
  40. data/app/views/toolbar/_profile.html.erb +0 -4
  41. data/app/views/users/_groups.html.erb +0 -1
  42. data/lib/generators/social_stream/base/install_generator.rb +9 -6
  43. data/lib/social_stream/base/version.rb +1 -1
  44. data/social_stream-base.gemspec +1 -1
  45. data/spec/dummy/db/schema.rb +6 -1
  46. data/spec/support/db.rb +13 -9
  47. data/spec/support/migrations.rb +1 -5
  48. data/{app → vendor}/assets/stylesheets/carousel.css +0 -0
  49. data/{app → vendor}/assets/stylesheets/fcbkComplete.css +0 -0
  50. data/{app → vendor}/assets/stylesheets/jqcloud.css +0 -0
  51. data/{app → vendor}/assets/stylesheets/jquery-ui.css +0 -0
  52. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  53. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  54. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  55. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  56. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  57. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  58. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  59. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  60. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-icons_222222_256x240.png +0 -0
  61. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  62. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-icons_454545_256x240.png +0 -0
  63. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-icons_888888_256x240.png +0 -0
  64. data/{app → vendor}/assets/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  65. data/{app → vendor}/assets/stylesheets/smoothness/jquery-ui-1.7.3.custom.css +0 -0
  66. data/{app → vendor}/assets/stylesheets/smoothness/jquery-ui-1.8.4.custom.css +0 -0
  67. metadata +35 -30
  68. data/app/assets/stylesheets/jquery.ui.slider.css +0 -24
  69. data/app/assets/stylesheets/jquery.ui.slidertheme.css +0 -32
  70. data/app/views/layouts/test.html +0 -61
@@ -1,3 +1,8 @@
1
+ /*
2
+ *= require jquery-ui
3
+ */
4
+
5
+
1
6
  /****************** WALL - ACTIVITIES *********************/
2
7
  #wrapper_activities {}
3
8
  #wall{ text-align:center;}
@@ -54,7 +54,7 @@ span.ui-helper-hidden {
54
54
  display: none;
55
55
  }
56
56
 
57
- label {
57
+ #contact-form label {
58
58
  display: block;
59
59
  font-family: sans-serif;
60
60
  padding: 2px;
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require messages
3
+ */
@@ -0,0 +1,5 @@
1
+ /*
2
+ *= require jqcloud
3
+ *= require fcbkComplete
4
+ *= require smoothness/jquery-ui-1.8.4.custom
5
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require jquery-ui
3
+ */
@@ -1,3 +1,7 @@
1
+ /*
2
+ *= require fcbkComplete
3
+ */
4
+
1
5
  /******************** Common ***********************/
2
6
 
3
7
  .pagination {
@@ -0,0 +1,4 @@
1
+ /*
2
+ *= require jquery-ui
3
+ *= require fcbkComplete
4
+ */
@@ -15,14 +15,14 @@ span.ui-helper-hidden {
15
15
  display: none;
16
16
  }
17
17
 
18
- label {
18
+ #relation_customs label, #permissions label {
19
19
  display: block;
20
20
  font-family: sans-serif;
21
21
  padding: 2px;
22
22
  margin-left: 20px;
23
23
  }
24
24
 
25
- label.ui-checkbox {
25
+ #relation_customs label.ui-checkbox, #permissions label.ui-checkbox {
26
26
  cursor: pointer;
27
27
  }
28
28
 
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require_tree .
3
+ */
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require menu
3
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ * carousel breaks the page
3
+ * require carousel
4
+ */
@@ -1,8 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "activities", :media => "screen, projection" %>
3
- <%= stylesheet_link_tag "jquery-ui", :media => "screen, projection" %>
4
- <% end %>
5
-
6
1
  <div id="wrapper_activities">
7
2
  <div id="wrapper_activities_header">
8
3
  <div id="activities_title" class="content_size">
@@ -1,2 +1 @@
1
- //delete comments
2
- $("#<%= dom_id(@post_activity) %>").hide();
1
+ <%=render(:partial => 'objects/destroy') %>
@@ -1,7 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "contacts.css", :media => "screen, projection" %>
3
- <% end %>
4
-
5
1
  <div id="contact-form">
6
2
  <%= form_for @contact do |f| %>
7
3
  <%= hidden_field_tag "contact[relation_ids][]", "gotcha" %>
@@ -6,10 +6,6 @@
6
6
  <%= render :partial => 'home/sidebar' %>
7
7
  <% end %>
8
8
 
9
- <% content_for :headers do %>
10
- <%= stylesheet_link_tag "messages.css", :media => "screen, projection" %>
11
- <% end %>
12
-
13
9
  <% content_for :javascript do %>
14
10
  $('.pagination a').attr('data-remote', 'true');
15
11
  <% end %>
@@ -3,7 +3,4 @@ $("#content").html("<%=escape_javascript(render :partial => 'index') %>");
3
3
 
4
4
  $('.pagination a').attr('data-remote', 'true');
5
5
 
6
-
7
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "messages.css", :media => "screen, projection") %>"));
8
-
9
6
  <%= toolbar :option => :messages %>
@@ -8,10 +8,6 @@
8
8
 
9
9
  <% toolbar :option => :messages %>
10
10
 
11
- <% content_for :headers do %>
12
- <%= stylesheet_link_tag "messages.css", :media => "screen, projection" %>
13
- <% end %>
14
-
15
11
  <% content_for :javascript do %>
16
12
  $('.cont_conversation').validate();
17
13
  <% unless @box.eql?'trash' %>
@@ -1,7 +1,5 @@
1
1
  $("#content").html("<%= escape_javascript(render :partial => 'show') %>");
2
2
 
3
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "messages.css", :media => "screen, projection") %>"));
4
-
5
3
  <%= toolbar :option => :messages %>
6
4
 
7
5
  $('.cont_conversation').validate();
@@ -1,7 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
3
- <% end %>
4
-
5
1
  <% content_for :javascript do %>
6
2
  $(function() {
7
3
  $(".new_group").validate();
@@ -1,5 +1,3 @@
1
- <% content_for :headers, stylesheet_link_tag("jqcloud") %>
2
-
3
1
  <div class="space_center"></div>
4
2
 
5
3
  <div class="block">
@@ -1,9 +1,6 @@
1
1
  <% content_for :title do%>
2
2
  <%= t('group.other') %>
3
3
  <%end%>
4
- <% content_for :headers do -%>
5
- <%= stylesheet_link_tag 'smoothness/jquery-ui-1.8.4.custom' %>
6
- <% end -%>
7
4
 
8
5
  <% toolbar if user_signed_in? %>
9
6
 
@@ -1,9 +1,6 @@
1
1
  <% content_for :title do%>
2
2
  <%= t('group.new.action')%>
3
3
  <%end%>
4
- <% content_for :headers do %>
5
- <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
6
- <% end %>
7
4
 
8
5
  <% toolbar :option => 'groups' %>
9
6
 
@@ -4,10 +4,6 @@
4
4
  <%= render :partial => "home/sidebar" %>
5
5
  <% end %>
6
6
 
7
- <% content_for :headers do %>
8
- <%= stylesheet_link_tag "jquery-ui", :media => "screen, projection" %>
9
- <% end %>
10
-
11
7
  <%= location(
12
8
  link_to(image_tag("btn/btn_invitation.png", :class => "menu_icon")+t('invitation.other'), new_invitation_path)
13
9
  ) %>
@@ -6,9 +6,9 @@
6
6
  <title><%= yield(:title).empty? ? t('socialstream') : yield(:title)%></title>
7
7
  <meta name="keywords" content="<%= t('profile.tags.default') %><%= yield(:keywords) %>" >
8
8
  <meta name="description" content= "<%= yield(:description).empty? ? t('frontpage.main_title') : yield(:description) %>" >
9
- <%= stylesheet_link_tag "base", "header","home","footer",
10
- :media => "screen, projection" %>
11
- <%= javascript_include_tag 'application' %>
9
+
10
+ <%= stylesheet_link_tag "application" %>
11
+ <%= javascript_include_tag "application" %>
12
12
 
13
13
  <%= yield :headers %>
14
14
 
@@ -6,8 +6,7 @@
6
6
  <title><%= yield(:title).empty? ? t('socialstream') : yield(:title)%></title>
7
7
  <meta name="keywords" content="<%= yield(:keywords).empty? ? t('profile.tags.default') : yield(:keywords) %>" >
8
8
  <meta name="description" content= "<%= yield(:description).empty? ? "Home" : yield(:description) %>" >
9
- <%= stylesheet_link_tag "header","frontpage", "base", "footer",
10
- :media => "screen, projection" %>
9
+ <%= stylesheet_link_tag "application" %>
11
10
  <%= favicon_link_tag "icons/favicon.ico" %>
12
11
 
13
12
  <% if protect_against_forgery? %>
@@ -7,11 +7,6 @@
7
7
 
8
8
  <% toolbar :option => :messages %>
9
9
 
10
- <% content_for :headers do %>
11
- <%= stylesheet_link_tag "messages.css", :media => "screen, projection" %>
12
- <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
13
- <% end %>
14
-
15
10
  <% content_for :javascript do %>
16
11
 
17
12
  var recipients = $("#_recipients").fcbkcomplete({
@@ -1,8 +1,5 @@
1
1
  $("#content").html("<%= escape_javascript(render :partial => 'new') %>");
2
2
 
3
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "messages.css", :media => "screen, projection") %>"));
4
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection") %>"));
5
-
6
3
  <%= toolbar :option => :messages %>
7
4
 
8
5
 
@@ -5,10 +5,10 @@
5
5
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
6
6
  </head>
7
7
  <body>
8
- <h1><%= raw decode_notification @notification.subject,@notification.object %></h1>
8
+ <h1><%= strip_tags decode_notification @notification.subject,@notification.notified_object %></h1>
9
9
  <blockquote>
10
10
  <p>
11
- <%= raw decode_notification @notification.body,@notification.object %>
11
+ <%= raw decode_notification @notification.body,@notification.notified_object %>
12
12
  </p>
13
13
  </blockquote>
14
14
  <p>
@@ -1,9 +1,6 @@
1
1
  <% self.class.send :include, NotificationsHelper %>
2
- <%= strip_tags decode_notification @notification.subject,@notification.object %>
2
+ <%= strip_tags decode_notification @notification.subject,@notification.notified_object %>
3
3
  ===============================================
4
-
5
- -----------------------------------------------
6
- <%= strip_tags decode_notification @notification.body,@notification.object %>
7
- -----------------------------------------------
4
+ <%= strip_tags decode_notification @notification.body,@notification.notified_object %>
8
5
 
9
6
  Visit <%= link_to notifications_url,notifications_url %> and check all your notifications.
@@ -2,12 +2,12 @@
2
2
 
3
3
  <div class="notification"></div>
4
4
  <div class="sender_photo">
5
- <%if notification.object.nil? %>
5
+ <%if notification.notified_object.nil? %>
6
6
  <%= image_tag('logos/actor/user.png',:title => "unknown", :alt => "unknown")%>
7
7
  <%else%>
8
- <%= link_to image_tag(notification.object.sender.logo.url(:actor),
9
- :title => notification.object.sender.name, :alt => notification.object.sender.name),
10
- notification.object.sender.subject %>
8
+ <%= link_to image_tag(notification.notified_object.sender.logo.url(:actor),
9
+ :title => notification.notified_object.sender.name, :alt => notification.notified_object.sender.name),
10
+ notification.notified_object.sender.subject %>
11
11
  <%end%>
12
12
  </div>
13
13
  <div class="content_left">
@@ -17,10 +17,10 @@
17
17
  </div>
18
18
  <div class="content_right">
19
19
  <div class="subject">
20
- <%= raw decode_notification notification.subject,notification.object %>
20
+ <%= raw decode_notification notification.subject,notification.notified_object %>
21
21
  </div>
22
22
  <div class="briefing">
23
- <%= raw decode_notification notification.body, notification.object %>
23
+ <%= raw decode_notification notification.body, notification.notified_object %>
24
24
  </div>
25
25
  <div class="clearfloat">
26
26
  </div>
@@ -2,10 +2,6 @@
2
2
  <%= current_subject.name %>
3
3
  <% end %>
4
4
 
5
- <% content_for :headers do %>
6
- <%= stylesheet_link_tag "messages.css", :media => "screen, projection" %>
7
- <% end %>
8
-
9
5
  <% content_for :sidebar do %>
10
6
  <%= render :partial => 'home/sidebar' %>
11
7
  <% end %>
@@ -16,4 +12,4 @@
16
12
 
17
13
  <% toolbar %>
18
14
 
19
- <%= render :partial => 'index' %>
15
+ <%= render :partial => 'index' %>
@@ -3,6 +3,3 @@ $("#content").html("<%=escape_javascript(render :partial => 'index') %>");
3
3
  <%= location(link_to(image_tag("btn/btn_notification.png", :class => "menu_icon")+t('notification.other'), notifications_path,:remote => true)) %>
4
4
 
5
5
  $('.pagination a').attr('data-remote', 'true');
6
-
7
-
8
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "messages.css", :media => "screen, projection") %>"));
@@ -0,0 +1,2 @@
1
+ $("#<%= dom_id(@post_activity) %>").hide();
2
+
@@ -1,2 +1 @@
1
- $("#<%= dom_id(@post_activity) %>").hide();
2
-
1
+ <%=render(:partial => 'objects/destroy') %>
@@ -4,10 +4,6 @@
4
4
  <%= render :partial => "#{ current_subject.class.to_s.tableize }/sidebar_index" %>
5
5
  <% end %>
6
6
 
7
- <% content_for :headers do %>
8
- <%= stylesheet_link_tag "jquery-ui", :media => "screen, projection" %>
9
- <% end %>
10
-
11
7
  <%if params[:section].present?
12
8
  case params[:section]
13
9
  when "about_me"
@@ -39,10 +35,6 @@ end %>
39
35
  <div class="block" id="profile_form">
40
36
 
41
37
  <% if !params[:section].present? or params[:section].eql?("tags") %>
42
- <% content_for :headers do %>
43
- <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
44
- <% end %>
45
-
46
38
  <% content_for :javascript do %>
47
39
  $(function() {
48
40
  $(".new_group").validate();
@@ -1,7 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "relation_customs.css", :media => "screen, projection" %>
3
- <% end %>
4
-
5
1
  <% toolbar :profile => current_subject, :option => 'contacts' %>
6
2
 
7
3
  <div id="wrapper_section">
@@ -8,10 +8,6 @@
8
8
 
9
9
  <% toolbar %>
10
10
 
11
- <% content_for :headers do %>
12
- <%= stylesheet_link_tag "settings.css", :media => "screen, projection" %>
13
- <% end %>
14
-
15
11
  <% content_for :javascript do %>
16
12
 
17
13
  <% end %>
@@ -2,7 +2,6 @@
2
2
  $('#api_token').html('<%= current_subject.authentication_token.blank? ? t('settings.api_key.empty') : current_subject.authentication_token %>')
3
3
  <% else %>
4
4
  $("#content").html("<%= escape_javascript(render :partial => 'index') %>");
5
- $("head").append($("<%= escape_javascript(stylesheet_link_tag "settings.css", :media => "screen, projection") %>"));
6
5
  <%= toolbar %>
7
6
  <% end %>
8
7
 
@@ -1,7 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "menu", :media => "screen, projection" %>
3
- <% end %>
4
-
5
1
  <%= render :partial => 'toolbar/logo', :locals => {:subject => current_subject} %>
6
2
 
7
3
  <div class="block space_center">
@@ -1,7 +1,3 @@
1
- <% content_for :headers do %>
2
- <%= stylesheet_link_tag "menu", :media => "screen, projection" %>
3
- <% end %>
4
-
5
1
  <%= render :partial => 'toolbar/logo', :locals => { :subject => subject } %>
6
2
 
7
3
  <div class="block space_center">
@@ -4,7 +4,6 @@
4
4
  </div>
5
5
  <div id="groups_list" class="content_size">
6
6
  <% if (user.recent_groups.count) > 10 %>
7
- <% content_for :headers, stylesheet_link_tag("carousel") %>
8
7
  <div id='carousel_container'>
9
8
  <div id='left_scroll'><%=image_tag("btn/group_left.png")%></div>
10
9
  <div id='carousel_inner'>
@@ -33,23 +33,26 @@ class SocialStream::Base::InstallGenerator < Rails::Generators::Base #:nodoc:
33
33
  remove_file 'public/index.html'
34
34
  end
35
35
 
36
- def create_application_layout
37
- copy_file File.join(File.dirname(__FILE__),
38
- '..', '..', '..', '..',
39
- 'app/views/layouts/application.html.erb'),
40
- 'app/views/layouts/application.html.erb'
36
+ def remove_application_layout
37
+ remove_file 'app/views/layouts/application.html.erb'
41
38
  end
42
39
 
43
40
  def create_navigation_config
44
41
  copy_file 'navigation.rb', 'config/navigation.rb'
45
42
  end
46
43
 
47
- def add_javascripts
44
+ def require_javascripts
48
45
  inject_into_file 'app/assets/javascripts/application.js',
49
46
  "//= require social_stream-base\n",
50
47
  :before => '//= require_tree .'
51
48
  end
52
49
 
50
+ def require_stylesheets
51
+ inject_into_file 'app/assets/stylesheets/application.css',
52
+ " *= require social_stream-base\n",
53
+ :before => ' *= require_tree .'
54
+ end
55
+
53
56
  def create_migration_file
54
57
  require 'rake'
55
58
  Rails.application.load_tasks
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.7.0".freeze
3
+ VERSION = "0.7.1".freeze
4
4
  end
5
5
  end
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  # OAuth provider
36
36
  s.add_runtime_dependency('oauth-plugin','~> 0.4.0.pre1')
37
37
  # Messages
38
- s.add_runtime_dependency('mailboxer','~> 0.3.3')
38
+ s.add_runtime_dependency('mailboxer','~> 0.4.0')
39
39
  # Avatar manipulation
40
40
  s.add_runtime_dependency('rmagick','~> 2.13.1')
41
41
  # Tagging
@@ -1,7 +1,12 @@
1
1
  require File.join(File.dirname(__FILE__), '..', '..', 'support', 'migrations')
2
2
 
3
3
  ActiveRecord::Schema.define(:version => 0) do
4
- CreateMailboxer.up
4
+ # Mailboxer
5
+ mailboxer_path = Gem::GemPathSearcher.new.find('mailboxer').full_gem_path
6
+ mailboxer_migration = File.join([mailboxer_path,'db', 'migrate'])
7
+ ActiveRecord::Migrator.migrate mailboxer_migration
8
+ #SocialStream
5
9
  CreateSocialStream.up
10
+ #ActAsTaggable
6
11
  ActsAsTaggableOnMigration.up
7
12
  end
data/spec/support/db.rb CHANGED
@@ -1,28 +1,32 @@
1
1
  require File.join(File.dirname(__FILE__), 'migrations')
2
2
 
3
+
3
4
  begin
4
5
  ActsAsTaggableOnMigration.down
5
6
  rescue
6
- puts "WARNING: ActsAsTaggableOnMigration failed to rollback"
7
+ puts "WARNING: ActsAsTaggableOnMigration failed to rollback"
7
8
  end
8
9
 
9
- %w(Mailboxer).each do |m|
10
- begin
11
- "Create#{ m }".constantize.down
12
- rescue
13
- puts "WARNING: #{ m } migration failed to rollback"
14
- end
10
+ mailboxer_path = Gem::GemPathSearcher.new.find('mailboxer').full_gem_path
11
+ mailboxer_migration = File.join([mailboxer_path,'db', 'migrate'])
12
+
13
+ begin
14
+ ActiveRecord::Migrator.migrate mailboxer_migration, 0
15
+ rescue
16
+ puts "WARNING: Mailboxer migration failed to rollback"
15
17
  end
16
18
 
17
19
  begin
18
20
  ActiveRecord::Migrator.migrate File.expand_path("../../dummy/db/migrate/", __FILE__), 0
19
21
  rescue
20
- puts "WARNING: Social Stream Base failed to rollback"
22
+ puts "WARNING: Social Stream Base failed to rollback"
21
23
  end
22
24
 
23
- CreateMailboxer.up
25
+
24
26
  ActsAsTaggableOnMigration.up
25
27
 
28
+ ActiveRecord::Migrator.migrate mailboxer_migration
29
+
26
30
  # Run any available migration
27
31
  ActiveRecord::Migrator.migrate File.expand_path("../../dummy/db/migrate/", __FILE__)
28
32
 
@@ -2,9 +2,5 @@ require 'social_stream/migration_finder'
2
2
 
3
3
  # acts-as-taggable-on
4
4
  SocialStream::MigrationFinder.new 'acts-as-taggable-on',
5
- ["generators", "acts_as_taggable_on", "migration", "templates", "active_record", "migration"]
6
-
7
- # Mailboxer
8
- SocialStream::MigrationFinder.new 'mailboxer',
9
- ['generators', 'mailboxer', 'templates', 'migration']
5
+ ["generators", "acts_as_taggable_on", "migration", "templates", "active_record", "migration"]
10
6
 
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-base
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 0
10
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
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-07-19 00:00:00 +02:00
19
+ date: 2011-07-20 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -205,12 +205,12 @@ dependencies:
205
205
  requirements:
206
206
  - - ~>
207
207
  - !ruby/object:Gem::Version
208
- hash: 21
208
+ hash: 15
209
209
  segments:
210
210
  - 0
211
- - 3
212
- - 3
213
- version: 0.3.3
211
+ - 4
212
+ - 0
213
+ version: 0.4.0
214
214
  type: :runtime
215
215
  version_requirements: *id012
216
216
  - !ruby/object:Gem::Dependency
@@ -619,11 +619,11 @@ files:
619
619
  - app/assets/javascripts/users.js
620
620
  - app/assets/stylesheets/activities.css
621
621
  - app/assets/stylesheets/base.css
622
- - app/assets/stylesheets/carousel.css
623
622
  - app/assets/stylesheets/contacts.css
624
- - app/assets/stylesheets/fcbkComplete.css
623
+ - app/assets/stylesheets/conversations.css
625
624
  - app/assets/stylesheets/footer.css
626
625
  - app/assets/stylesheets/frontpage.css
626
+ - app/assets/stylesheets/groups.css
627
627
  - app/assets/stylesheets/header.css
628
628
  - app/assets/stylesheets/home.css
629
629
  - app/assets/stylesheets/images/add-policy.png
@@ -642,29 +642,15 @@ files:
642
642
  - app/assets/stylesheets/images/ui-icons_454545_256x240.png
643
643
  - app/assets/stylesheets/images/ui-icons_888888_256x240.png
644
644
  - app/assets/stylesheets/images/ui-icons_cd0a0a_256x240.png
645
- - app/assets/stylesheets/jqcloud.css
646
- - app/assets/stylesheets/jquery-ui.css
647
- - app/assets/stylesheets/jquery.ui.slider.css
648
- - app/assets/stylesheets/jquery.ui.slidertheme.css
645
+ - app/assets/stylesheets/invitations.css
649
646
  - app/assets/stylesheets/menu.css
650
647
  - app/assets/stylesheets/messages.css
648
+ - app/assets/stylesheets/profiles.css
651
649
  - app/assets/stylesheets/relation_customs.css
652
650
  - app/assets/stylesheets/settings.css
653
- - app/assets/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
654
- - app/assets/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
655
- - app/assets/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
656
- - app/assets/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
657
- - app/assets/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
658
- - app/assets/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
659
- - app/assets/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
660
- - app/assets/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
661
- - app/assets/stylesheets/smoothness/images/ui-icons_222222_256x240.png
662
- - app/assets/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
663
- - app/assets/stylesheets/smoothness/images/ui-icons_454545_256x240.png
664
- - app/assets/stylesheets/smoothness/images/ui-icons_888888_256x240.png
665
- - app/assets/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
666
- - app/assets/stylesheets/smoothness/jquery-ui-1.7.3.custom.css
667
- - app/assets/stylesheets/smoothness/jquery-ui-1.8.4.custom.css
651
+ - app/assets/stylesheets/social_stream-base.css
652
+ - app/assets/stylesheets/toolbar.css
653
+ - app/assets/stylesheets/users.css
668
654
  - app/controllers/activities_controller.rb
669
655
  - app/controllers/api_controller.rb
670
656
  - app/controllers/authentications_controller.rb
@@ -795,7 +781,6 @@ files:
795
781
  - app/views/layouts/_settings.html.erb
796
782
  - app/views/layouts/application.html.erb
797
783
  - app/views/layouts/frontpage.html.erb
798
- - app/views/layouts/test.html
799
784
  - app/views/likes/create.js.erb
800
785
  - app/views/likes/destroy.js.erb
801
786
  - app/views/location/_location.html.erb
@@ -824,6 +809,7 @@ files:
824
809
  - app/views/notifications/activities/_update_subject.html.erb
825
810
  - app/views/notifications/index.html.erb
826
811
  - app/views/notifications/index.js.erb
812
+ - app/views/objects/_destroy.js.erb
827
813
  - app/views/objects/_new.html.erb
828
814
  - app/views/permissions/_index.html.erb
829
815
  - app/views/permissions/index.js.erb
@@ -1199,6 +1185,25 @@ files:
1199
1185
  - vendor/assets/javascripts/menu.js
1200
1186
  - vendor/assets/javascripts/superfish.js
1201
1187
  - vendor/assets/javascripts/ui.checkbox.js
1188
+ - vendor/assets/stylesheets/carousel.css
1189
+ - vendor/assets/stylesheets/fcbkComplete.css
1190
+ - vendor/assets/stylesheets/jqcloud.css
1191
+ - vendor/assets/stylesheets/jquery-ui.css
1192
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
1193
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
1194
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
1195
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
1196
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_glass_75_dadada_1x400.png
1197
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
1198
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
1199
+ - vendor/assets/stylesheets/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
1200
+ - vendor/assets/stylesheets/smoothness/images/ui-icons_222222_256x240.png
1201
+ - vendor/assets/stylesheets/smoothness/images/ui-icons_2e83ff_256x240.png
1202
+ - vendor/assets/stylesheets/smoothness/images/ui-icons_454545_256x240.png
1203
+ - vendor/assets/stylesheets/smoothness/images/ui-icons_888888_256x240.png
1204
+ - vendor/assets/stylesheets/smoothness/images/ui-icons_cd0a0a_256x240.png
1205
+ - vendor/assets/stylesheets/smoothness/jquery-ui-1.7.3.custom.css
1206
+ - vendor/assets/stylesheets/smoothness/jquery-ui-1.8.4.custom.css
1202
1207
  has_rdoc: true
1203
1208
  homepage: http://social-stream.dit.upm.es/
1204
1209
  licenses: []
@@ -1,24 +0,0 @@
1
- /*
2
- * jQuery UI Slider @VERSION
3
- *
4
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- * http://jquery.org/license
7
- *
8
- * http://docs.jquery.com/UI/Slider#theming
9
- */
10
- .ui-slider { position: relative; text-align: left; }
11
- .ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
12
- .ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
13
-
14
- .ui-slider-horizontal { height: .8em; }
15
- .ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
16
- .ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
17
- .ui-slider-horizontal .ui-slider-range-min { left: 0; }
18
- .ui-slider-horizontal .ui-slider-range-max { right: 0; }
19
-
20
- .ui-slider-vertical { width: .8em; height: 100px; }
21
- .ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
22
- .ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
23
- .ui-slider-vertical .ui-slider-range-min { bottom: 0; }
24
- .ui-slider-vertical .ui-slider-range-max { top: 0; }
@@ -1,32 +0,0 @@
1
- /*
2
- * jQuery UI CSS Framework @VERSION
3
- *
4
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
- * Dual licensed under the MIT or GPL Version 2 licenses.
6
- * http://jquery.org/license
7
- *
8
- * http://docs.jquery.com/UI/Theming/API
9
- *
10
- * To view and modify this theme, visit http://jqueryui.com/themeroller/
11
- */
12
-
13
-
14
- /* Component containers
15
- ----------------------------------*/
16
- .ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; }
17
- .ui-widget .ui-widget { font-size: 1em; }
18
- .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; }
19
- .ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #dfecf1/*{bgColorContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; }
20
- .ui-widget-content a { color: #222222/*{fcContent}*/; }
21
- .ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #dfecf1/*{bgColorHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; }
22
- .ui-widget-header a { color: #222222/*{fcHeader}*/; }
23
-
24
- /* Interaction states
25
- ----------------------------------*/
26
- .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #dfecf1/*{bgColorDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; }
27
- .ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; }
28
- .ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #dfecf1/*{fcHover}*/; }
29
- .ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; }
30
- .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; }
31
- .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; }
32
- .ui-widget :active { outline: none; }
@@ -1,61 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-EN">
3
- <head>
4
- <script src="jquery-1.2.1.min.js" type="text/javascript"></script>
5
- <script src="menu.js" type="text/javascript"></script>
6
- <link rel="stylesheet" type="text/css" href="style.css" />
7
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8
- <title>Simple JQuery Accordion menu</title>
9
- <!--[if lt IE 8]>
10
- <style type="text/css">
11
- li a {display:inline-block;}
12
- li a {display:block;}
13
- </style>
14
- <![endif]-->
15
- </head>
16
- <body>
17
-
18
- <ul id="menu">
19
- <li>
20
- <a href="#">Weblog Tools</a>
21
- <ul>
22
- <li><a href="http://www.pivotx.net/">PivotX</a></li>
23
- <li><a href="http://www.wordpress.org/">WordPress</a></li>
24
- <li><a href="http://www.textpattern.com/">Textpattern</a></li>
25
- <li><a href="http://typosphere.org/">Typo</a></li>
26
- </ul>
27
- </li>
28
- <li>
29
- <a href="#">Programming Languages</a>
30
- <ul>
31
- <li><a href="http://www.php.net/">PHP</a></li>
32
- <li><a href="http://www.ruby-lang.org/en/">Ruby</a></li>
33
- <li><a href="http://www.python.org/">Python</a></li>
34
- <li><a href="http://www.perl.org/">PERL</a></li>
35
- <li><a href="http://java.sun.com/">Java</a></li>
36
- <li><a href="http://en.wikipedia.org/wiki/C_Sharp">C#</a></li>
37
- </ul>
38
- </li>
39
- <li><a href="http://www.i-marco.nl/weblog/">Marco's blog (no submenu)</a></li>
40
- <li>
41
- <a href="#">Cool Stuff</a>
42
- <ul>
43
- <li><a href="http://www.apple.com/">Apple</a></li>
44
- <li><a href="http://www.nikon.com/">Nikon</a></li>
45
- <li><a href="http://www.xbox.com/en-US/">XBOX360</a></li>
46
- <li><a href="http://www.nintendo.com/">Nintendo</a></li>
47
- </ul>
48
- </li>
49
- <li>
50
- <a href="#">Search Engines</a>
51
- <ul>
52
- <li><a href="http://search.yahoo.com/">Yahoo!</a></li>
53
- <li><a href="http://www.google.com/">Google</a></li>
54
- <li><a href="http://www.ask.com/">Ask.com</a></li>
55
- <li><a href="http://www.live.com/?searchonly=true">Live Search</a></li>
56
- </ul>
57
- </li>
58
- </ul>
59
-
60
- </body>
61
- </html>