social_stream 0.19.3 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
 
10
10
  <% if defined?(SocialStream::Presence) and SocialStream::Presence.enable %>
11
- <%= render :partial => 'chat/index' , :locals => {:flow => true} %>
11
+ <%= render :partial => 'chat/index' , :locals => {:flow => false} %>
12
12
  <% end %>
13
13
 
14
14
  <div class="block space_center">
@@ -9,3 +9,7 @@
9
9
 
10
10
  <div class="block space_center">
11
11
  </div>
12
+
13
+ <% if defined?(SocialStream::Presence) and SocialStream::Presence.enable %>
14
+ <%= render :partial => 'chat/index' , :locals => {:flow => true} %>
15
+ <% end %>
@@ -22,3 +22,7 @@
22
22
  <div class="block space_center">
23
23
  </div>
24
24
 
25
+ <% if defined?(SocialStream::Presence) and SocialStream::Presence.enable %>
26
+ <%= render :partial => 'chat/index' , :locals => {:flow => true} %>
27
+ <% end %>
28
+
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "0.14.3".freeze
3
+ VERSION = "0.15.0".freeze
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
  # Avatar attachments
31
31
  s.add_runtime_dependency('avatars_for_rails', '~> 0.2.2')
32
32
  # jQuery
33
- s.add_runtime_dependency('jquery-rails', '~> 1.0.9')
33
+ s.add_runtime_dependency('jquery-rails', '>= 1.0.9')
34
34
  # Authorization
35
35
  s.add_runtime_dependency('cancan', '~> 1.6.4')
36
36
  # Pagination
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "0.9.1".freeze
3
+ VERSION = "0.10.0".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.14.3')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.15.0')
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')
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Events
3
- VERSION = "0.6.2".freeze
3
+ VERSION = "0.7.0".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.14.3')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.15.0')
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.19.3".freeze
2
+ VERSION = "0.20.0".freeze
3
3
  end
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Linkser
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.5.0".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.14.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 0.15.0')
16
16
  s.add_runtime_dependency('linkser', '~> 0.0.10')
17
17
  # Development Gem dependencies
18
18
  s.add_development_dependency('sqlite3-ruby')
@@ -178,7 +178,7 @@ function updateChatWindow(){
178
178
  var stropheConnectedAndOnlineStatus = ((isStropheConnected()) && (userStatus!="offline") && (!disconnectionFlag));
179
179
  $.post("/chatWindow", { userConnected: stropheConnectedAndOnlineStatus }, function(data){
180
180
  $(".tooltip").hide() //Prevent tooltips
181
- $("#chat_partial").html(data);
181
+ $("#chat_partial").html(modifyChatPartialIfMainBox(data));
182
182
  if (isStropheConnected()) {
183
183
  setStatusWidgetTitle(userStatus);
184
184
  $(".user_presence a[title]").tooltip();
@@ -4,7 +4,6 @@
4
4
 
5
5
 
6
6
  function storeChatData(){
7
- return
8
7
 
9
8
  //Check for Session Storage support
10
9
  if (! window.sessionStorage){
@@ -8,6 +8,7 @@ var chatBoxWidth = 230;
8
8
  var chatBoxHeight = 170;
9
9
  var videoBoxHeight = 150;
10
10
  var visibleChatBoxes = new Array();
11
+ var offsetForFlowBox = 0;
11
12
  var chatBoxSeparation = chatBoxWidth+12;
12
13
 
13
14
 
@@ -98,6 +99,11 @@ function getBoxParams(){
98
99
  } else {
99
100
  nBox++;
100
101
  boxParams[0] = (nBox-1)*(chatBoxSeparation);
102
+
103
+ if((nBox!=1)&&(mainChatBox!=null)){
104
+ boxParams[0] = boxParams[0] - offsetForFlowBox;
105
+ }
106
+
101
107
  boxParams[1] = nBox;
102
108
  }
103
109
 
@@ -218,7 +224,7 @@ function createMainChatBox(){
218
224
 
219
225
  //Delete closeTick and video Tick
220
226
  $(mainChatBox.parent().parent()).find(".ui-chatbox-titlebar").find(".ui-icon-closethick").remove();
221
- $(mainChatBox.parent().parent()).find(".ui-videobox-icon").remove()
227
+ $(mainChatBox.parent().parent()).find(".ui-videobox-icon").remove();
222
228
  //Delete nofitications div
223
229
  $(mainChatBox.parent()).find(".ui-chatbox-notify").remove();
224
230
  //Delete video div
@@ -227,16 +233,40 @@ function createMainChatBox(){
227
233
  $(mainChatBox.parent()).find(".ui-chatbox-input").remove();
228
234
 
229
235
  //Set height
230
- //window[getChatVariableFromSlug(chatSlugId)].css( "width", "160" )
236
+ window[getChatVariableFromSlug(chatSlugId)].css( "height", "180" );
231
237
 
232
238
  //Set width
239
+ var windowWidth=150;
240
+ window[getChatVariableFromSlug(chatSlugId)].parent().parent().css( "width", windowWidth );
241
+ $(mainChatBox.parent().parent()).find(".ui-chatbox-titlebar").css( "width", windowWidth-6 );
242
+ $(mainChatBox).css( "width", windowWidth-6 );
243
+
233
244
 
234
- //Adjust
245
+ //Adjust window offset
246
+ offsetForFlowBox = 235-windowWidth;
247
+
248
+ //CSS Adjusts
249
+ $("#chat_partial").css("margin-top",-3)
250
+ $("#chat_partial").css("margin-left",-3)
251
+ $(".dropdown dd ul").css("min-width",147)
235
252
 
236
253
  }
237
254
  }
238
255
  }
239
256
 
257
+
240
258
  function addContentToMainChatBox(content){
241
259
  $(mainChatBox.parent()).find("#" + chatSlugId).html(content);
242
260
  }
261
+
262
+
263
+ function modifyChatPartialIfMainBox(chatPartial){
264
+ if (mainChatBox != null) {
265
+ p = $(chatPartial)
266
+ $(p).find(".header").remove();
267
+ $(p).find(".dropdown dd ul").css("min-width",147);
268
+ return $(p);
269
+ }
270
+
271
+ return chatPartial;
272
+ }
@@ -11,7 +11,7 @@
11
11
  <div id="status" class="dropdown">
12
12
  <dt><a href=""><span><%=t('chat.status.choose')%></span></a></dt>
13
13
  <dd>
14
- <ul>
14
+ <ul id="statusList">
15
15
  <li><a id="available" href="#" class="option"><img class="flag" src="assets/status/available.png" alt=""/> <%=t('chat.status.available')%> <span class="value">available</span></a></li>
16
16
  <li><a id="away" href="#" class="option"><img class="flag" src="assets/status/away.png" alt=""/> <%=t('chat.status.away')%> <span class="value">away</span></a></li>
17
17
  <li><a id="dnd" href="#" class="option"><img class="flag" src="assets/status/dnd.png" alt=""/> <%=t('chat.status.dnd')%> <span class="value">dnd</span></a></li>
@@ -1,6 +1,3 @@
1
- <% flow = false %>
2
-
3
-
4
1
  <% if current_user and current_user.chat_enabled and current_subject.subject_type=="User" %>
5
2
 
6
3
  <div id="chat_wrapper">
@@ -45,7 +42,7 @@
45
42
  <script type="text/javascript">
46
43
  $(document).ready(function () {
47
44
  createMainChatBox();
48
- addContentToMainChatBox($("#chat_partial"));
45
+ addContentToMainChatBox(modifyChatPartialIfMainBox($("#chat_partial")));
49
46
  $("#chat_wrapper").find("#chat_partial").remove();
50
47
  });
51
48
  </script>
@@ -1,5 +1,5 @@
1
1
  module Socialstream
2
2
  module Presence
3
- VERSION = "0.5.2"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  # Gem dependencies
22
- s.add_runtime_dependency('social_stream-base', '~> 0.14.0')
22
+ s.add_runtime_dependency('social_stream-base', '~> 0.15.0')
23
23
 
24
24
  s.add_runtime_dependency "xmpp4r"
25
25
 
@@ -11,11 +11,11 @@ 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.14.3')
15
- s.add_runtime_dependency('social_stream-documents', '~> 0.9.1')
16
- s.add_runtime_dependency('social_stream-events', '~> 0.6.2')
17
- s.add_runtime_dependency('social_stream-linkser', '~> 0.4.0')
18
- s.add_runtime_dependency('social_stream-presence', '~> 0.5.2')
14
+ s.add_runtime_dependency('social_stream-base', '~> 0.15.0')
15
+ s.add_runtime_dependency('social_stream-documents', '~> 0.10.0')
16
+ s.add_runtime_dependency('social_stream-events', '~> 0.7.0')
17
+ s.add_runtime_dependency('social_stream-linkser', '~> 0.5.0')
18
+ s.add_runtime_dependency('social_stream-presence', '~> 0.6.0')
19
19
 
20
20
  # Development Gem dependencies
21
21
  #
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.19.3
4
+ version: 0.20.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,66 +10,66 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-03 00:00:00.000000000Z
13
+ date: 2012-02-06 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: social_stream-base
17
- requirement: &87805300 !ruby/object:Gem::Requirement
17
+ requirement: &82031270 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.3
22
+ version: 0.15.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *87805300
25
+ version_requirements: *82031270
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: social_stream-documents
28
- requirement: &87805030 !ruby/object:Gem::Requirement
28
+ requirement: &82031010 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.1
33
+ version: 0.10.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *87805030
36
+ version_requirements: *82031010
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: social_stream-events
39
- requirement: &87804790 !ruby/object:Gem::Requirement
39
+ requirement: &82030760 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 0.6.2
44
+ version: 0.7.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *87804790
47
+ version_requirements: *82030760
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: social_stream-linkser
50
- requirement: &87804550 !ruby/object:Gem::Requirement
50
+ requirement: &82030470 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 0.4.0
55
+ version: 0.5.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *87804550
58
+ version_requirements: *82030470
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: social_stream-presence
61
- requirement: &87804320 !ruby/object:Gem::Requirement
61
+ requirement: &82030180 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: 0.5.2
66
+ version: 0.6.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *87804320
69
+ version_requirements: *82030180
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: capybara
72
- requirement: &87804090 !ruby/object:Gem::Requirement
72
+ requirement: &82029820 !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: *87804090
80
+ version_requirements: *82029820
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: sqlite3
83
- requirement: &87803880 !ruby/object:Gem::Requirement
83
+ requirement: &82017900 !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: *87803880
91
+ version_requirements: *82017900
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: ruby-debug19
94
- requirement: &87803630 !ruby/object:Gem::Requirement
94
+ requirement: &82017650 !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: *87803630
102
+ version_requirements: *82017650
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec-rails
105
- requirement: &87803380 !ruby/object:Gem::Requirement
105
+ requirement: &82017400 !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: *87803380
113
+ version_requirements: *82017400
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: factory_girl
116
- requirement: &87785500 !ruby/object:Gem::Requirement
116
+ requirement: &82017150 !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: *87785500
124
+ version_requirements: *82017150
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: forgery
127
- requirement: &87785270 !ruby/object:Gem::Requirement
127
+ requirement: &82016920 !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: *87785270
135
+ version_requirements: *82016920
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: ci_reporter
138
- requirement: &87785040 !ruby/object:Gem::Requirement
138
+ requirement: &82016690 !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: *87785040
146
+ version_requirements: *82016690
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: