social_stream 0.23.1 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ //= require social_stream.objects
2
+
3
+ SocialStream.Activity = (function(SS, $, undefined){
4
+ var scrollToActivity = function(){
5
+ var activity_hash = window.location.hash.match(/^.*activity_(\d+).*$/);
6
+ if (activity_hash && activity_hash > 0){
7
+ $.scrollTo('#activity_' + activity_hash[1] ,1500,{axis:'y'});
8
+ }
9
+
10
+ }
11
+
12
+ SS.Objects.addInitCallback(scrollToActivity);
13
+
14
+ return {
15
+ }
16
+ })(SocialStream, jQuery);
@@ -20,7 +20,7 @@
20
20
  #wrapper_activities_header { padding-top: 5px; padding-bottom: 5px; background-color: $secondary-color;}
21
21
  #activities_title { vertical-align: top; margin-left: 10px; font-weight: bold;}
22
22
  #activities_header { width: 100%; margin-bottom: 5px; text-align: center; padding-top: 5px;min-height: 35px;}
23
- #activities_header input[type="text"] { color: $main-color; padding: 5px 5px 5px 5px; width:95%;
23
+ #activities_header input[type="text"], #activities_header textarea { color: $main-color; padding: 5px; width:95%;
24
24
  border:1px solid $input-border-color;}
25
25
  #activities_share_btn { text-align: right; padding: 5px 16px 0px 10px; vertical-align: middle;}
26
26
  #securities{ display:inline-block; text-align:left; float: left; padding-left:5px;}
@@ -1,7 +1,5 @@
1
1
  <% toolbar :profile => object.owner_subject %>
2
2
 
3
- <%= render object.post_activity %>
4
-
5
3
  <%= javascript_tag do %>
6
4
  $(function() {
7
5
  SocialStream.Objects.init();
@@ -1,10 +1,4 @@
1
- <% content_for :javascript do %>
2
- var message_hash = window.location.hash.match(/^.*activity_(\d+).*$/);
3
- if (message_hash && message_hash > 0){
4
- $.scrollTo('#activity_' + message_hash[1] ,1500,{axis:'y'});
5
- }
6
- <% end %>
7
-
8
1
  <%= render :partial => 'objects/show',
9
2
  :locals => { :object => @post } %>
10
3
 
4
+ <%= render @post.post_activity %>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.17.0".freeze
3
+ VERSION = "0.17.1".freeze
4
4
  end
5
5
  end
@@ -1,6 +1,8 @@
1
1
  //= require jquery.jplayer
2
2
  //= require jquery.ae.image.resize
3
3
  //
4
+ //= require social_stream-base
5
+ //
4
6
  //= require_self
5
7
  //= require_tree .
6
8
 
@@ -1,3 +1,6 @@
1
+ <%= render :partial => 'objects/show',
2
+ :locals => { :object => document } %>
3
+
1
4
  <% profile_subject ||= document.owner_subject %>
2
5
 
3
6
  <% content_for :title do %>
@@ -17,8 +20,6 @@
17
20
  ) %>
18
21
  <%end%>
19
22
 
20
- <% toolbar :profile => profile_subject %>
21
-
22
23
  <br class="clearfloat" />
23
24
  <div class="space_center"></div>
24
25
  <h2><%= document.title.nil? ? document.file_file_name : document.title %></h2>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "0.11.3".freeze
3
+ VERSION = "0.11.4".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.17.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.17.1')
16
16
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.7.0')
17
17
  s.add_runtime_dependency('paperclip','= 2.4.5')
18
18
  s.add_runtime_dependency('delayed_paperclip','2.4.5.1')
@@ -130,6 +130,18 @@ div.event_date {
130
130
  padding: 3px 0;
131
131
  }
132
132
 
133
+ #new_event label {
134
+ float: left;
135
+ min-width: 60px;
136
+ text-align: right;
137
+ padding-right: 10px;
138
+ }
139
+
140
+ #new_event textarea {
141
+ height: 30px;
142
+ width: 200px;
143
+ }
144
+
133
145
  #scheduler-options {
134
146
  padding: 2px 10px;
135
147
  }
@@ -21,6 +21,12 @@
21
21
  <%= f.text_field :title %>
22
22
  </div>
23
23
 
24
+ <div class="form_row">
25
+ <%= f.label :description %>
26
+ <%= f.text_area :description %>
27
+ </div>
28
+
29
+
24
30
  <% if profile_subject.rooms.any? %>
25
31
  <div class="form_row">
26
32
  <%= f.label :room %>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Events
3
- VERSION = "0.9.0".freeze
3
+ VERSION = "0.9.1".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.17.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.17.1')
16
16
  s.add_runtime_dependency('rails-scheduler', '~> 0.0.6')
17
17
  s.add_runtime_dependency('coffee-rails', '>= 3.1.0')
18
18
 
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.23.1".freeze
2
+ VERSION = "0.23.2".freeze
3
3
  end
@@ -1,25 +1,30 @@
1
- var SocialStream = SocialStream || {};
2
- SocialStream.Linkser = SocialStream.Linkser || {};
3
- SocialStream.Linkser.initiate = function() {
4
- $.preloadImages("<%= asset_path('loading.gif') %>");
1
+ //= require social_stream.wall
2
+
3
+ SocialStream.Linkser.Wall = (function(SS, $) {
4
+ var regexp = /^(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&;:\/~+#-]*[\w@?^=%&;\/~+#-])?$/
5
+
5
6
  var urlDetect = function() {
6
7
  this.currentValue = $("#input_activities").val();
8
+
7
9
  if(this.lastValue == null)
8
10
  this.lastValue = "";
9
11
 
10
- var regexp = /^(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&;:\/~+#-]*[\w@?^=%&;\/~+#-])?$/
11
12
  if(regexp.test($("#input_activities").val())) {
12
13
  $("#link_url").val($("#input_activities").val());
13
14
  $("#link_loaded").val(false);
14
15
  $("#new_post").attr("action", "/links");
16
+
15
17
  if(this.currentValue != this.lastValue) {
16
18
  $("#link_preview").html($('<img>').attr('src', '<%= asset_path('loading.gif') %>').addClass('loading'));
19
+
17
20
  this.lastValue = this.currentValue;
18
21
  var url = this.currentValue;
19
22
  var urlDetect = this;
23
+
20
24
  $.ajax({
21
25
  type : "GET",
22
26
  url : "/linkser_parse?url=" + url,
27
+ dataType: 'html',
23
28
  success : function(html) {
24
29
  if($("#input_activities").val() == url) {//Only show if input value is still the same
25
30
  $("#link_preview").html(html);
@@ -33,6 +38,7 @@ SocialStream.Linkser.initiate = function() {
33
38
  }
34
39
  });
35
40
  }
41
+
36
42
  $("#link_preview").show();
37
43
  } else {
38
44
  $("#new_post").attr("action", "/posts");
@@ -41,23 +47,36 @@ SocialStream.Linkser.initiate = function() {
41
47
  $("#link_url").val("");
42
48
  }
43
49
  }
44
- if($("#new_post").length) {
45
- $("#input_activities").change(urlDetect).keyup(urlDetect);
46
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[owner_id]').attr('id', 'link_owner_id').val($("#post_owner_id").val()));
47
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[url]').attr('id', 'link_url'));
48
- $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[loaded]').attr('id', 'link_loaded').val(false));
49
- $("#new_post").append($('<div>').attr('id', 'link_preview').css('display', 'none'));
50
+
51
+ var init = function(){
52
+ $.preloadImages("<%= asset_path('loading.gif') %>");
53
+
54
+ if($("#new_post").length) {
55
+ $("#input_activities").change(urlDetect).keyup(urlDetect);
56
+
57
+ $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[owner_id]').attr('id', 'link_owner_id').val($("#post_owner_id").val()));
58
+ $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[url]').attr('id', 'link_url'));
59
+ $("#new_post").append($('<input>').attr('type', 'hidden').attr('name', 'link[loaded]').attr('id', 'link_loaded').val(false));
60
+ $("#new_post").append($('<div>').attr('id', 'link_preview').css('display', 'none'));
61
+ }
50
62
  }
51
- }
52
63
 
53
- SocialStream.Linkser.openCallback = function(id,url,w,h){
64
+ var openCallback = function(id,url,w,h){
54
65
  var height='353';
66
+
55
67
  if(w>0 && h>0) {
56
68
  height=470*h/w;
57
69
  }
70
+
58
71
  $("#" + id).html($('<iframe>').attr('src',url).attr('width','470').attr('height',height));
59
- }
72
+ }
73
+
74
+ SocialStream.Wall.addInitCallback(init);
75
+
76
+ return {
77
+ openCallback: openCallback
78
+ }
79
+
80
+ })(SocialStream, jQuery);
81
+
60
82
 
61
- $(function(){
62
- SocialStream.Linkser.initiate();
63
- });
@@ -1,2 +1,6 @@
1
+ //= require social_stream-base
2
+ //
3
+ //= require_self
1
4
  //= require_tree .
2
5
 
6
+ SocialStream.Linkser = SocialStream.Linkser || {};
@@ -47,7 +47,7 @@
47
47
  }
48
48
  .link .info{
49
49
  float: left;
50
- width: 360px;
50
+ width: 350px;
51
51
  text-align: left;
52
52
  }
53
53
  .activity_objects .link .info{
@@ -61,7 +61,8 @@
61
61
  text-decoration: underline;
62
62
  margin-bottom: 5px;
63
63
  }
64
- .link .info .description{
64
+ .link .info .description textarea {
65
+ height: 60px;
65
66
  }
66
67
  .link iframe{
67
68
  border: 0;
@@ -7,7 +7,7 @@
7
7
  <%= javascript_tag do %>
8
8
  $("#link_<%= link.id.to_s %> img").each(function(){
9
9
  $(this).click(function(){
10
- SocialStream.Linkser.openCallback("link_<%= link.id.to_s %>", "<%= link.callback_url %>", "<%= link.width %>", "<%= link.height %>");
10
+ SocialStream.Linkser.Wall.openCallback("link_<%= link.id.to_s %>", "<%= link.callback_url %>", "<%= link.width %>", "<%= link.height %>");
11
11
  });
12
12
  });
13
13
 
@@ -6,21 +6,14 @@
6
6
  </div>
7
7
  <% end %>
8
8
  <div class="info">
9
- <% if link.title %>
10
- <div class="title">
11
- <%= link.title %>
12
- <%= hidden_field_tag "link[title]", link.title %>
13
- </div>
14
- <% end %>
15
- <div class="url">
16
- <%= auto_link(link.url) %>
9
+ <div class="title">
10
+ <%= text_field_tag "link[title]", link.title %>
17
11
  </div>
18
- <% if link.description %>
19
- <div class="description">
20
- <%= auto_link(link.description) %>
21
- <%= hidden_field_tag "link[description]", link.description %>
22
- </div>
23
- <% end %>
12
+
13
+ <div class="description">
14
+ <%= text_area_tag "link[description]", link.description %>
15
+ </div>
16
+
24
17
  <% if link.callback_url %>
25
18
  <%= hidden_field_tag "link[callback_url]", link.callback_url %>
26
19
  <% end %>
@@ -1,10 +1,4 @@
1
- <% content_for :javascript do %>
2
- var message_hash = window.location.hash.match(/^.*activity_(\d+).*$/);
3
- if (message_hash && message_hash > 0){
4
- $.scrollTo('#activity_' + message_hash[1] ,1500,{axis:'y'});
5
- }
6
- <% end %>
7
-
8
1
  <%= render :partial => 'objects/show',
9
2
  :locals => { :object => @link } %>
10
3
 
4
+ <%= render @link.post_activity %>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Linkser
3
- VERSION = "0.7.0".freeze
3
+ VERSION = "0.7.1".freeze
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.files = `git ls-files`.split("\n")
13
13
 
14
14
  # Gem dependencies
15
- s.add_runtime_dependency('social_stream-base', '~> 0.17.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.17.1')
16
16
  s.add_runtime_dependency('linkser', '~> 0.0.10')
17
17
  # Development Gem dependencies
18
18
  s.add_development_dependency('sqlite3-ruby')
@@ -11,10 +11,10 @@ Gem::Specification.new do |s|
11
11
  s.files = `git ls-files`.split("\n")
12
12
 
13
13
  # Gem dependencies
14
- s.add_runtime_dependency('social_stream-base', '~> 0.17.0')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.11.3')
16
- s.add_runtime_dependency('social_stream-events', '~> 0.9.0')
17
- s.add_runtime_dependency('social_stream-linkser', '~> 0.7.0')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.17.1')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.11.4')
16
+ s.add_runtime_dependency('social_stream-events', '~> 0.9.1')
17
+ s.add_runtime_dependency('social_stream-linkser', '~> 0.7.1')
18
18
  s.add_runtime_dependency('social_stream-presence', '~> 0.10.0')
19
19
 
20
20
  # Development Gem dependencies
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.23.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,51 +14,51 @@ date: 2012-03-07 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &72068930 !ruby/object:Gem::Requirement
17
+ requirement: &82119550 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.17.0
22
+ version: 0.17.1
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *72068930
25
+ version_requirements: *82119550
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: social_stream-documents
28
- requirement: &72068670 !ruby/object:Gem::Requirement
28
+ requirement: &82118350 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.11.3
33
+ version: 0.11.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *72068670
36
+ version_requirements: *82118350
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: social_stream-events
39
- requirement: &72068430 !ruby/object:Gem::Requirement
39
+ requirement: &82117630 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 0.9.0
44
+ version: 0.9.1
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *72068430
47
+ version_requirements: *82117630
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: social_stream-linkser
50
- requirement: &72068200 !ruby/object:Gem::Requirement
50
+ requirement: &82117320 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 0.7.0
55
+ version: 0.7.1
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *72068200
58
+ version_requirements: *82117320
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: social_stream-presence
61
- requirement: &72067970 !ruby/object:Gem::Requirement
61
+ requirement: &82115680 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 0.10.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *72067970
69
+ version_requirements: *82115680
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: capybara
72
- requirement: &72067730 !ruby/object:Gem::Requirement
72
+ requirement: &82112980 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.3.9
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *72067730
80
+ version_requirements: *82112980
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3
83
- requirement: &72067440 !ruby/object:Gem::Requirement
83
+ requirement: &82111380 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *72067440
91
+ version_requirements: *82111380
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: ruby-debug19
94
- requirement: &72067070 !ruby/object:Gem::Requirement
94
+ requirement: &82108850 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *72067070
102
+ version_requirements: *82108850
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec-rails
105
- requirement: &72066590 !ruby/object:Gem::Requirement
105
+ requirement: &82105950 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 2.8.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *72066590
113
+ version_requirements: *82105950
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: factory_girl
116
- requirement: &72066220 !ruby/object:Gem::Requirement
116
+ requirement: &82104260 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.3.2
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *72066220
124
+ version_requirements: *82104260
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: forgery
127
- requirement: &72065320 !ruby/object:Gem::Requirement
127
+ requirement: &82094400 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.4.2
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *72065320
135
+ version_requirements: *82094400
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ci_reporter
138
- requirement: &72064900 !ruby/object:Gem::Requirement
138
+ requirement: &82092900 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 1.6.4
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *72064900
146
+ version_requirements: *82092900
147
147
  description: Social Stream is a Ruby on Rails engine for building social network websites.
148
148
  It supports contacts, posts, file uploads, private messages and many more.
149
149
  email:
@@ -339,6 +339,7 @@ files:
339
339
  - base/app/assets/javascripts/search.js.erb
340
340
  - base/app/assets/javascripts/settings.js
341
341
  - base/app/assets/javascripts/social_stream-base.js
342
+ - base/app/assets/javascripts/social_stream.activity.js
342
343
  - base/app/assets/javascripts/social_stream.comments.js
343
344
  - base/app/assets/javascripts/social_stream.objects.js
344
345
  - base/app/assets/javascripts/social_stream.search.js.erb