social_stream-presence 1.1.0 → 2.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/app/assets/images/chat-off.png +0 -0
  3. data/app/assets/images/chat-on.png +0 -0
  4. data/app/assets/javascripts/jquery.ui.chatbox.sstreampresence.js +3 -5
  5. data/app/assets/javascripts/presence_XmppClient.js.erb +6 -2
  6. data/app/assets/javascripts/presence_uiManager.js.erb +1 -1
  7. data/app/assets/javascripts/presence_windowManager.js +1 -1
  8. data/app/assets/stylesheets/social_stream/presence/_toolbar-chat.css.sass +65 -0
  9. data/app/assets/stylesheets/social_stream/presence/_wrapper-chatBox.css.sass +25 -0
  10. data/app/assets/stylesheets/social_stream/responsive/_responsive-1200px-min.css.sass +9 -0
  11. data/app/assets/stylesheets/social_stream/responsive/_responsive-767px-max.css.sass +16 -0
  12. data/app/assets/stylesheets/social_stream/responsive/_responsive-768px-979px.css.sass +9 -0
  13. data/app/assets/stylesheets/social_stream-presence.css.sass +9 -0
  14. data/app/overrides/settings/_index/add_chat.html.erb.deface +6 -0
  15. data/app/overrides/toolbar/_home/add_chat.html.erb.deface +3 -0
  16. data/app/overrides/toolbar/_profile/add_chat.html.erb.deface +4 -0
  17. data/app/views/chat/_contacts.html.erb +1 -1
  18. data/app/views/chat/_index.html.erb +126 -94
  19. data/app/views/settings/_chat.html.erb +23 -0
  20. data/config/locales/en.yml +5 -5
  21. data/config/locales/es.yml +5 -5
  22. data/lib/generators/social_stream/presence/install_generator.rb +2 -3
  23. data/lib/social_stream/presence/engine.rb +0 -11
  24. data/lib/social_stream/presence/version.rb +1 -1
  25. data/lib/social_stream-presence.rb +0 -10
  26. data/social_stream-presence.gemspec +2 -2
  27. data/spec/views/settings_spec.rb +41 -0
  28. metadata +32 -86
  29. data/app/assets/stylesheets/TresEnRaya.css +0 -57
  30. data/app/assets/stylesheets/chat.css.scss +0 -521
  31. data/app/assets/stylesheets/social_stream-presence.css +0 -5
  32. data/app/views/chat/_settings.html.erb +0 -34
  33. data/lib/social_stream/views/settings/presence.rb +0 -20
  34. data/lib/social_stream/views/toolbar/presence.rb +0 -28
  35. data/spec/demo/.gitignore +0 -5
  36. data/spec/demo/.rspec +0 -1
  37. data/spec/demo/README +0 -261
  38. data/spec/demo/Rakefile +0 -7
  39. data/spec/demo/app/assets/images/rails.png +0 -0
  40. data/spec/demo/app/assets/javascripts/application.js +0 -9
  41. data/spec/demo/app/assets/stylesheets/application.css +0 -7
  42. data/spec/demo/app/controllers/application_controller.rb +0 -3
  43. data/spec/demo/app/helpers/application_helper.rb +0 -2
  44. data/spec/demo/app/mailers/.gitkeep +0 -0
  45. data/spec/demo/app/models/.gitkeep +0 -0
  46. data/spec/demo/app/views/layouts/application.html.erb +0 -14
  47. data/spec/demo/autotest/discover.rb +0 -2
  48. data/spec/demo/config/application.rb +0 -41
  49. data/spec/demo/config/boot.rb +0 -6
  50. data/spec/demo/config/database.yml +0 -25
  51. data/spec/demo/config/environment.rb +0 -5
  52. data/spec/demo/config/environments/development.rb +0 -27
  53. data/spec/demo/config/environments/production.rb +0 -54
  54. data/spec/demo/config/environments/test.rb +0 -39
  55. data/spec/demo/config/initializers/backtrace_silencers.rb +0 -7
  56. data/spec/demo/config/initializers/inflections.rb +0 -10
  57. data/spec/demo/config/initializers/mime_types.rb +0 -5
  58. data/spec/demo/config/initializers/secret_token.rb +0 -7
  59. data/spec/demo/config/initializers/session_store.rb +0 -8
  60. data/spec/demo/config/initializers/wrap_parameters.rb +0 -12
  61. data/spec/demo/config/locales/en.yml +0 -5
  62. data/spec/demo/config/routes.rb +0 -58
  63. data/spec/demo/config.ru +0 -4
  64. data/spec/demo/db/seeds.rb +0 -7
  65. data/spec/demo/doc/README_FOR_APP +0 -2
  66. data/spec/demo/lib/tasks/.gitkeep +0 -0
  67. data/spec/demo/log/.gitkeep +0 -0
  68. data/spec/demo/public/404.html +0 -26
  69. data/spec/demo/public/422.html +0 -26
  70. data/spec/demo/public/500.html +0 -26
  71. data/spec/demo/public/favicon.ico +0 -0
  72. data/spec/demo/public/index.html +0 -241
  73. data/spec/demo/public/robots.txt +0 -5
  74. data/spec/demo/script/rails +0 -6
  75. data/spec/demo/spec/spec_helper.rb +0 -27
  76. data/spec/demo/test/fixtures/.gitkeep +0 -0
  77. data/spec/demo/test/functional/.gitkeep +0 -0
  78. data/spec/demo/test/integration/.gitkeep +0 -0
  79. data/spec/demo/test/performance/browsing_test.rb +0 -12
  80. data/spec/demo/test/test_helper.rb +0 -13
  81. data/spec/demo/test/unit/.gitkeep +0 -0
  82. data/spec/demo/vendor/assets/stylesheets/.gitkeep +0 -0
  83. data/spec/demo/vendor/plugins/.gitkeep +0 -0
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'settings/_index' do
4
+ let(:user) { stub_model(User, { name: "Test User",
5
+ email: "test-user@test.com",
6
+ language: 'en' } ) }
7
+
8
+ let(:group) { stub_model(Group, { name: "Test Group",
9
+ to_param: "test-group" } ) }
10
+
11
+ before do
12
+ SocialStream::Presence.stub(:enable) { true }
13
+
14
+ view.stub(:current_user).and_return(user)
15
+ end
16
+
17
+ describe "with user" do
18
+ before do
19
+ view.stub(:current_subject).and_return(user)
20
+ end
21
+
22
+ it "includes chat settings" do
23
+ render
24
+
25
+ rendered.should =~ /chat_settings/
26
+ end
27
+ end
28
+
29
+ describe "with group" do
30
+ before do
31
+ view.stub(:current_subject).and_return(group)
32
+ end
33
+
34
+ it "does not include chat settings" do
35
+ render
36
+
37
+ rendered.should_not =~ /chat_settings/
38
+ end
39
+ end
40
+
41
+ end
metadata CHANGED
@@ -1,94 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-presence
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 2.0.0.beta1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aldo Gordillo
8
+ - GING
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-14 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: social_stream-base
16
16
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
17
  requirements:
19
18
  - - ~>
20
19
  - !ruby/object:Gem::Version
21
- version: 1.1.0
20
+ version: 2.0.0.beta1
22
21
  type: :runtime
23
22
  prerelease: false
24
23
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ~>
28
26
  - !ruby/object:Gem::Version
29
- version: 1.1.0
27
+ version: 2.0.0.beta1
30
28
  - !ruby/object:Gem::Dependency
31
29
  name: xmpp4r
32
30
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
31
  requirements:
35
- - - ! '>='
32
+ - - '>='
36
33
  - !ruby/object:Gem::Version
37
34
  version: '0'
38
35
  type: :runtime
39
36
  prerelease: false
40
37
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
- - - ! '>='
39
+ - - '>='
44
40
  - !ruby/object:Gem::Version
45
41
  version: '0'
46
42
  - !ruby/object:Gem::Dependency
47
43
  name: net-ssh
48
44
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
45
  requirements:
51
- - - ! '>='
46
+ - - '>='
52
47
  - !ruby/object:Gem::Version
53
48
  version: '0'
54
49
  type: :runtime
55
50
  prerelease: false
56
51
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - '>='
60
54
  - !ruby/object:Gem::Version
61
55
  version: '0'
62
56
  - !ruby/object:Gem::Dependency
63
57
  name: net-sftp
64
58
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
- - - ! '>='
60
+ - - '>='
68
61
  - !ruby/object:Gem::Version
69
62
  version: '0'
70
63
  type: :runtime
71
64
  prerelease: false
72
65
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
- - - ! '>='
67
+ - - '>='
76
68
  - !ruby/object:Gem::Version
77
69
  version: '0'
78
70
  - !ruby/object:Gem::Dependency
79
71
  name: debugger
80
72
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
73
  requirements:
83
- - - ! '>='
74
+ - - '>='
84
75
  - !ruby/object:Gem::Version
85
76
  version: '0'
86
77
  type: :development
87
78
  prerelease: false
88
79
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
80
  requirements:
91
- - - ! '>='
81
+ - - '>='
92
82
  - !ruby/object:Gem::Version
93
83
  version: '0'
94
84
  description: Social Stream Presence provides everything you need for including presence,
@@ -109,6 +99,8 @@ files:
109
99
  - app/assets/images/black_arrow7.png
110
100
  - app/assets/images/black_arrow8.png
111
101
  - app/assets/images/black_arrow9.png
102
+ - app/assets/images/chat-off.png
103
+ - app/assets/images/chat-on.png
112
104
  - app/assets/images/emoticons/beer.png
113
105
  - app/assets/images/emoticons/clock.png
114
106
  - app/assets/images/emoticons/face-raspberry.png
@@ -176,16 +168,22 @@ files:
176
168
  - app/assets/javascripts/presence_videochat.js.erb
177
169
  - app/assets/javascripts/presence_windowManager.js
178
170
  - app/assets/javascripts/social_stream-presence.js
179
- - app/assets/stylesheets/TresEnRaya.css
180
- - app/assets/stylesheets/chat.css.scss
181
- - app/assets/stylesheets/social_stream-presence.css
171
+ - app/assets/stylesheets/social_stream-presence.css.sass
172
+ - app/assets/stylesheets/social_stream/presence/_toolbar-chat.css.sass
173
+ - app/assets/stylesheets/social_stream/presence/_wrapper-chatBox.css.sass
174
+ - app/assets/stylesheets/social_stream/responsive/_responsive-1200px-min.css.sass
175
+ - app/assets/stylesheets/social_stream/responsive/_responsive-767px-max.css.sass
176
+ - app/assets/stylesheets/social_stream/responsive/_responsive-768px-979px.css.sass
182
177
  - app/controllers/xmpp_controller.rb
183
178
  - app/decorators/social_stream/base/models/group_decorator.rb
184
179
  - app/decorators/social_stream/base/models/tie_decorator.rb
185
180
  - app/helpers/xmpp_helper.rb
181
+ - app/overrides/settings/_index/add_chat.html.erb.deface
182
+ - app/overrides/toolbar/_home/add_chat.html.erb.deface
183
+ - app/overrides/toolbar/_profile/add_chat.html.erb.deface
186
184
  - app/views/chat/_contacts.html.erb
187
185
  - app/views/chat/_index.html.erb
188
- - app/views/chat/_settings.html.erb
186
+ - app/views/settings/_chat.html.erb
189
187
  - app/views/xmpp/active_users.html.erb
190
188
  - app/views/xmpp/getOpenTokSessionIDAndToken.xml.builder
191
189
  - config/locales/en.yml
@@ -229,63 +227,13 @@ files:
229
227
  - lib/social_stream/presence/version.rb
230
228
  - lib/social_stream/presence/xmpp_server_order.rb
231
229
  - lib/social_stream/presence/xmpp_ssclient.rb
232
- - lib/social_stream/views/settings/presence.rb
233
- - lib/social_stream/views/toolbar/presence.rb
234
230
  - lib/tasks/presence/installer.rake
235
231
  - lib/tasks/presence/multidomain.rake
236
232
  - lib/tasks/presence/synchronize.rake
237
233
  - social_stream-presence.gemspec
238
- - spec/demo/.gitignore
239
- - spec/demo/.rspec
240
- - spec/demo/README
241
- - spec/demo/Rakefile
242
- - spec/demo/app/assets/images/rails.png
243
- - spec/demo/app/assets/javascripts/application.js
244
- - spec/demo/app/assets/stylesheets/application.css
245
- - spec/demo/app/controllers/application_controller.rb
246
- - spec/demo/app/helpers/application_helper.rb
247
- - spec/demo/app/mailers/.gitkeep
248
- - spec/demo/app/models/.gitkeep
249
- - spec/demo/app/views/layouts/application.html.erb
250
- - spec/demo/autotest/discover.rb
251
- - spec/demo/config.ru
252
- - spec/demo/config/application.rb
253
- - spec/demo/config/boot.rb
254
- - spec/demo/config/database.yml
255
- - spec/demo/config/environment.rb
256
- - spec/demo/config/environments/development.rb
257
- - spec/demo/config/environments/production.rb
258
- - spec/demo/config/environments/test.rb
259
- - spec/demo/config/initializers/backtrace_silencers.rb
260
- - spec/demo/config/initializers/inflections.rb
261
- - spec/demo/config/initializers/mime_types.rb
262
- - spec/demo/config/initializers/secret_token.rb
263
- - spec/demo/config/initializers/session_store.rb
264
- - spec/demo/config/initializers/wrap_parameters.rb
265
- - spec/demo/config/locales/en.yml
266
- - spec/demo/config/routes.rb
267
- - spec/demo/db/seeds.rb
268
- - spec/demo/doc/README_FOR_APP
269
- - spec/demo/lib/tasks/.gitkeep
270
- - spec/demo/log/.gitkeep
271
- - spec/demo/public/404.html
272
- - spec/demo/public/422.html
273
- - spec/demo/public/500.html
274
- - spec/demo/public/favicon.ico
275
- - spec/demo/public/index.html
276
- - spec/demo/public/robots.txt
277
- - spec/demo/script/rails
278
- - spec/demo/spec/spec_helper.rb
279
- - spec/demo/test/fixtures/.gitkeep
280
- - spec/demo/test/functional/.gitkeep
281
- - spec/demo/test/integration/.gitkeep
282
- - spec/demo/test/performance/browsing_test.rb
283
- - spec/demo/test/test_helper.rb
284
- - spec/demo/test/unit/.gitkeep
285
- - spec/demo/vendor/assets/stylesheets/.gitkeep
286
- - spec/demo/vendor/plugins/.gitkeep
287
234
  - spec/discover.rb
288
235
  - spec/spec_helper.rb
236
+ - spec/views/settings_spec.rb
289
237
  - vendor/assets/javascripts/TB.min.js
290
238
  - vendor/assets/javascripts/jquery.gamequery-0.5.1.js
291
239
  - vendor/assets/javascripts/jquery.tools.tooltip.js
@@ -296,28 +244,26 @@ files:
296
244
  - vendor/assets/stylesheets/jquery.ui.chatbox.css
297
245
  homepage: https://github.com/ging/social_stream/wiki/Getting-Started-With-Social-Stream-Presence
298
246
  licenses: []
247
+ metadata: {}
299
248
  post_install_message:
300
249
  rdoc_options: []
301
250
  require_paths:
302
251
  - lib
303
252
  required_ruby_version: !ruby/object:Gem::Requirement
304
- none: false
305
253
  requirements:
306
- - - ! '>='
254
+ - - '>='
307
255
  - !ruby/object:Gem::Version
308
256
  version: '0'
309
257
  required_rubygems_version: !ruby/object:Gem::Requirement
310
- none: false
311
258
  requirements:
312
- - - ! '>='
259
+ - - '>'
313
260
  - !ruby/object:Gem::Version
314
- version: '0'
261
+ version: 1.3.1
315
262
  requirements: []
316
263
  rubyforge_project: social_stream-presence
317
- rubygems_version: 1.8.24
264
+ rubygems_version: 2.0.0
318
265
  signing_key:
319
- specification_version: 3
266
+ specification_version: 4
320
267
  summary: Presence capabilities for Social Stream, the core for building social network
321
268
  websites.
322
269
  test_files: []
323
- has_rdoc:
@@ -1,57 +0,0 @@
1
- .tresEnRayaContainerDivClass {
2
- border: none;
3
- width: 100%;
4
- height: 100%;
5
- }
6
-
7
- .tresEnRayaMessageDivClass {
8
-
9
- }
10
-
11
- .tresEnRayaContainerThemeClassic{
12
- border: none;
13
- background-image: url('games/ter/classic_board.png');
14
- background-size: 100%;
15
- }
16
-
17
- .tresEnRayaContainerThemeModern{
18
- border: none;
19
- background-image: url('games/ter/modern_board.png');
20
- background-size: 100%;
21
- }
22
-
23
- .tresEnRayaMessageThemeClassic {
24
-
25
- }
26
-
27
- .tresEnRayaMessageThemeModern {
28
- background-color: black;
29
- }
30
-
31
- p.tresEnRayaMessagePThemeClassic {
32
- text-align: center;
33
- font-size: 80%;
34
- }
35
-
36
- p.tresEnRayaMessagePThemeModern {
37
- text-align: center;
38
- font-size: 80%;
39
- color: white;
40
- }
41
-
42
- img.tresEnRayaImgThemeClassic{
43
- border: none;
44
- position: absolute;
45
- }
46
-
47
- img.tresEnRayaImgThemeModern{
48
- border: none;
49
- position: absolute;
50
- }
51
-
52
- #myGame{
53
- width: 200px;
54
- height: 200px;
55
- margin-left: 200px;
56
- margin-top: 300px;
57
- }