social_stream 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/base/app/assets/javascripts/social_stream/contact.js +1 -3
  4. data/base/app/assets/stylesheets/social_stream-base.css.sass +9 -0
  5. data/base/app/assets/stylesheets/social_stream/base/adjust/_adjust.css.sass +1 -1
  6. data/base/app/assets/stylesheets/social_stream/base/contacts/layouts/_contacts.css.sass +11 -7
  7. data/base/app/assets/stylesheets/social_stream/base/contacts/responsive/_responsive-1200px-min.css.sass +1 -1
  8. data/base/app/assets/stylesheets/social_stream/base/explore/_explore-search.css.sass +2 -2
  9. data/base/app/assets/stylesheets/social_stream/base/explore/_explore-timeline.css.sass +1 -2
  10. data/base/app/assets/stylesheets/social_stream/base/frontpage_devise/_frontpage.css.sass +1 -1
  11. data/base/app/assets/stylesheets/social_stream/base/layouts/_layout.css.sass +1 -0
  12. data/base/app/assets/stylesheets/social_stream/base/mixins/_buttons.css.sass +38 -38
  13. data/base/app/assets/stylesheets/social_stream/base/modals/_modals.css.sass +17 -0
  14. data/base/app/assets/stylesheets/social_stream/base/modals/layout/_modals.css.sass +35 -0
  15. data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-1200px-min.css.sass +5 -0
  16. data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-767px-max.css.sass +10 -0
  17. data/base/app/assets/stylesheets/social_stream/base/modals/responsive/_responsive-768px-979px.css.sass +6 -0
  18. data/base/app/assets/stylesheets/social_stream/base/profile/_profile.css.sass +7 -5
  19. data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-1200px-min.css.sass +1 -11
  20. data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-767px-max.css.sass +2 -1
  21. data/base/app/assets/stylesheets/social_stream/base/responsive/_responsive-768px-979px.css.sass +1 -1
  22. data/base/app/assets/stylesheets/social_stream/base/search/_header.css.sass +3 -3
  23. data/base/app/assets/stylesheets/social_stream/base/select2/layout/_sselect2.css.sass +1 -1
  24. data/base/app/assets/stylesheets/social_stream/base/sidebar/_sidebar.css.sass +0 -1
  25. data/base/app/assets/stylesheets/social_stream/base/sidebar/layout/_sidebar.css.sass +2 -2
  26. data/base/app/assets/stylesheets/social_stream/base/sidebar/responsive/_responsive-1200px-min.css.sass +1 -1
  27. data/base/app/assets/stylesheets/social_stream/base/timeline/layout/_wrapper_activities.css.sass +2 -2
  28. data/base/app/assets/stylesheets/social_stream/base/toolbar/_toolbar.css.sass +2 -2
  29. data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_modal.scss +1 -1
  30. data/base/app/assets/stylesheets/social_stream/bootstrap-rewrite/_variables.scss +12 -0
  31. data/base/app/assets/stylesheets/social_stream/fonts/fonts.css +8 -9
  32. data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabOverlay.ttf → josefinSlab/JosefinSlabOverlay.ttf} +0 -0
  33. data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabRegular-Outline.ttf → josefinSlab/JosefinSlabRegular-Outline.ttf} +0 -0
  34. data/base/app/assets/stylesheets/social_stream/fonts/{JosefinSlabRegular.ttf → josefinSlab/JosefinSlabRegular.ttf} +0 -0
  35. data/base/app/assets/stylesheets/social_stream/fonts/{OpenSans-Light.ttf → opensans/OpenSans-Light.ttf} +0 -0
  36. data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular-webfont.eot → opensans/opensans-regular-webfont.eot} +0 -0
  37. data/base/app/assets/stylesheets/social_stream/fonts/opensans/opensans-regular-webfont.svg +587 -0
  38. data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular-webfont.woff → opensans/opensans-regular-webfont.woff} +0 -0
  39. data/base/app/assets/stylesheets/social_stream/fonts/{opensans-regular.ttf → opensans/opensans-regular.ttf} +0 -0
  40. data/base/app/views/groups/_form.html.erb +8 -5
  41. data/base/app/views/home/index.html.erb +1 -1
  42. data/base/app/views/profiles/_avatar.html.erb +6 -6
  43. data/base/app/views/repositories/show.html.erb +0 -3
  44. data/base/config/locales/en.yml +1 -1
  45. data/base/lib/generators/social_stream/base/templates/initializer.rb +27 -19
  46. data/base/lib/social_stream/base/version.rb +1 -1
  47. data/contacts/_contacts.css.sass +64 -0
  48. data/contacts/layouts/_contacts.css.sass +177 -0
  49. data/contacts/responsive/_responsive-1200px-min.css.sass +29 -0
  50. data/contacts/responsive/_responsive-767px-max.css.sass +88 -0
  51. data/contacts/responsive/_responsive-768px-979px.css.sass +14 -0
  52. data/documents/app/assets/stylesheets/social_stream/documents/create/layout/_new.css.sass +7 -35
  53. data/documents/app/assets/stylesheets/social_stream/documents/documents/_documents.css.sass +6 -7
  54. data/documents/app/assets/stylesheets/social_stream/documents/documents/layout/_documents.css.sass +17 -3
  55. data/documents/app/assets/stylesheets/social_stream/documents/explore/layout/_explore-documents.css.sass +2 -1
  56. data/documents/app/assets/stylesheets/social_stream/documents/timeline/_audios.css.sass +4 -3
  57. data/documents/app/overrides/repositories/_filter/add_new_document_button.html.erb.deface +4 -0
  58. data/documents/app/views/common_documents/_index.html.erb +21 -17
  59. data/documents/app/views/documents/index.html.erb +0 -1
  60. data/documents/app/views/documents/new.html.erb +5 -3
  61. data/documents/lib/social_stream/documents/version.rb +1 -1
  62. data/documents/social_stream-documents.gemspec +1 -1
  63. data/events/app/assets/stylesheets/social_stream/events/responsive/_responsive-1200px-min.css.sass +1 -3
  64. data/events/app/views/rooms/_index.html.erb +9 -2
  65. data/events/lib/social_stream/events/version.rb +1 -1
  66. data/events/social_stream-events.gemspec +1 -1
  67. data/lib/social_stream/version.rb +1 -1
  68. data/oauth2_server/app/views/site/clients/_form.html.erb +1 -1
  69. data/oauth2_server/app/views/site/clients/show.html.erb +47 -45
  70. data/oauth2_server/lib/social_stream/oauth2_server/version.rb +1 -1
  71. data/oauth2_server/social_stream-oauth2_server.gemspec +1 -1
  72. data/presence/ejabberd/ejabberd_scripts/authentication_script +9 -11
  73. data/presence/lib/social_stream/presence/version.rb +1 -1
  74. data/presence/social_stream-presence.gemspec +1 -1
  75. data/social_stream.gemspec +5 -5
  76. metadata +31 -20
  77. data/base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.svg +0 -244
@@ -0,0 +1,14 @@
1
+ //
2
+ // Responsive: Tablet to desktop
3
+ // --------------------------------------------------
4
+
5
+
6
+ @media (min-width: 768px) and (max-width: 979px)
7
+
8
+ #contacts
9
+ .contacts
10
+ .tab-content
11
+ .contact-list
12
+ clear: both
13
+ min-height: 700px
14
+ padding-bottom: 50px
@@ -1,35 +1,7 @@
1
- #new_document-modal
2
- .modal-body
3
- max-height: 520px
4
- padding: 0 15px 15px 15px
5
- .tags
6
- .select2-container
7
- width: 98.5%
8
- form.new_site_client
9
- margin-left: 0px
10
- width: 100%
11
- .name,
12
- .url
13
- margin-left: 0px
14
- width: 100%
15
- input
16
- &[type="file"]
17
- line-height: 0px
18
- #new_file
19
- label
20
- font-size: 22px
21
- font-weight: bold
22
- color: #CCC
23
- form.new_document
24
- section
25
- border-bottom: 1px dashed #CCC
26
- padding-top: 15px
27
- padding-bottom: 15px
28
- #document_file
29
- @include ellipsis
30
- .description
31
- textarea
32
- height: 100px
33
- input
34
- &[type="submit"]
35
- margin: 8px 0 0
1
+ #new_file
2
+ @include grid-core-span(7, $fluidGridColumnWidth, $fluidGridGutterWidth)
3
+ float: left
4
+ margin-left: 2.5%
5
+ h5
6
+ font-size: 28px
7
+ color: $red
@@ -1,7 +1,6 @@
1
- #repository
2
- .repository
3
- h1
4
- @include colorfont-big-size
5
- .btn
6
- @include btn-primary
7
-
1
+ .documents,
2
+ .repository
3
+ h1
4
+ @include colorfont-big-size
5
+ .btn
6
+ @include btn-primary
@@ -1,4 +1,5 @@
1
- div.repository
1
+ div.repository,
2
+ .documents
2
3
  @include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
3
4
  float: left
4
5
  margin-left: 2.5%
@@ -28,7 +29,7 @@ section.repository
28
29
  .tab-content
29
30
  @include grid-core-span(10, $fluidGridColumnWidth, $fluidGridGutterWidth)
30
31
  padding-bottom: 100px
31
-
32
+
32
33
  .repository-list
33
34
  .document,
34
35
  .picture,
@@ -52,7 +53,20 @@ section.repository
52
53
  margin-left: 44px
53
54
 
54
55
  .documents
55
- clear: both
56
+
57
+ input
58
+ &[type="text"]
59
+ width: 24% !important
60
+ display: inline
61
+ margin-top: 20px
62
+ float: left
63
+ margin-left: 20px
64
+ .btn
65
+ float: right
66
+ width: auto
67
+ display: inline-block
68
+ margin: 23px 16px 0 -14px
69
+
56
70
  #new_document-modal
57
71
  .modal-body
58
72
  input
@@ -1,6 +1,7 @@
1
1
  #search-results,
2
2
  .repository-list-net,
3
- .repository-list
3
+ .repository-list,
4
+ .documents
4
5
  .picture,
5
6
  .audio,
6
7
  .video,
@@ -4,10 +4,11 @@
4
4
  #jp_interface_audio_290
5
5
  border: none
6
6
 
7
- div.jp-progress
7
+ .jp-progress
8
8
  width: 98.5% !important
9
- border-bottom: 2px solid #ddd
10
- border-right: 2px solid #666
9
+ border-bottom: 2px solid #444 !important
10
+ border-right: 2px solid #666 !important
11
+ background-color: #333 !important
11
12
  div.jp-seek-bar
12
13
  background: none
13
14
  width: 100%
@@ -0,0 +1,4 @@
1
+ <!-- insert_after "code[erb-loud]:contains('text_field_tag')" -->
2
+
3
+ <%= render partial: 'common_documents/new_button',
4
+ locals: { owner: profile_or_current_subject } %>
@@ -3,27 +3,31 @@
3
3
  <% end %>
4
4
 
5
5
  <%= render partial: 'toolbar/profile', locals: { :subject => profile_or_current_subject } %>
6
+ <div class="documents">
7
+ <h1 class="colorfont">
8
+ <%= t 'document.title.other' %>
9
+ </h1>
6
10
 
7
- <%= render partial: 'common_documents/filter' %>
11
+ <%= render partial: 'common_documents/filter' %>
8
12
 
9
- <%= render partial: 'common_documents/new_button',
10
- locals: { owner: profile_or_current_subject } %>
13
+ <%= render partial: 'common_documents/new_button',
14
+ locals: { owner: profile_or_current_subject } %>
11
15
 
12
- <section class="documents">
13
- <%= render partial: 'common_documents/list',
14
- locals: { documents: collection } %>
15
- </section>
16
-
17
-
18
- <nav class="documents">
19
- <%= render partial: 'layouts/more',
20
- locals: {
21
- path: polymorphic_path([profile_subject, Document.new ]),
22
- per_page: Document.default_per_page,
23
- total: collection.total_count
24
- } %>
25
- </nav>
16
+ <section class="documents">
17
+ <%= render partial: 'common_documents/list',
18
+ locals: { documents: collection } %>
19
+ </section>
26
20
 
21
+
22
+ <nav class="documents">
23
+ <%= render partial: 'layouts/more',
24
+ locals: {
25
+ path: polymorphic_path([profile_subject, Document.new ]),
26
+ per_page: Document.default_per_page,
27
+ total: collection.total_count
28
+ } %>
29
+ </nav>
30
+ </div>
27
31
 
28
32
  <%= javascript_tag do %>
29
33
  $(function() {
@@ -1,5 +1,4 @@
1
1
  <section id="documents">
2
- <h1><%= t 'document.title.other' %></h1>
3
2
 
4
3
  <% if profile_or_current_subject.present? %>
5
4
  <%= render :partial => 'common_documents/index', :locals => { :documents => collection } %>
@@ -2,8 +2,10 @@
2
2
  <%= "#{ current_subject.name }: #{ t('document.new.title') }" %>
3
3
  <% end %>
4
4
 
5
- <%= render partial: 'toolbar/profile', locals: { subject: current_subject } %>
5
+ <section id="new_document">
6
+ <%= render partial: 'toolbar/profile', locals: { subject: current_subject } %>
6
7
 
7
- <h1><%= t 'document.new.title' %></h1>
8
+ <h1><%= t 'document.new.title' %></h1>
8
9
 
9
- <%= render partial: 'common_documents/form', locals: { document: @document } %>
10
+ <%= render partial: 'common_documents/form', locals: { document: @document } %>
11
+ </section>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "2.0.1".freeze
3
+ VERSION = "2.0.2".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', '~> 2.0.1')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
16
16
 
17
17
  s.add_runtime_dependency('paperclip','~> 3.3.0')
18
18
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.9.0')
@@ -22,9 +22,7 @@
22
22
  font-size: 15px
23
23
  line-height: 22px
24
24
 
25
- #suggestions,
26
- #pendings
27
- @include grid-core-span(12, $fluidGridColumnWidth, $fluidGridGutterWidth)
25
+
28
26
 
29
27
  #explore-content
30
28
  .timeline
@@ -1,6 +1,13 @@
1
1
  <div id="rooms">
2
2
  <% current_subject.rooms.each do |room| %>
3
3
  <%= room.name %>
4
- <%= link_to image_tag("btn/delete.png", :class => "menu_icon", :title => t('room.delete')), room, :class => "room_delete_link", :method => :delete, :confirm => t('room.confirm_delete'), :remote => true %>
4
+ <%= link_to room,
5
+ title: t('room.delete'),
6
+ class: "room_delete_link",
7
+ method: :delete,
8
+ confirm: t('room.confirm_delete'),
9
+ remote: true do %>
10
+ <i class="icon_tool16-trash"></i>
11
+ <% end %>
5
12
  <% end %>
6
- </div>
13
+ </div>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Events
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.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', '~> 2.0.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
16
16
  s.add_runtime_dependency('rails-scheduler', '~> 0.1.2')
17
17
 
18
18
  # Development Gem dependencies
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
@@ -1,4 +1,4 @@
1
- <article>
1
+ <article class="new_app">
2
2
  <%= form_for(@client || Site::Client.new) do |f| %>
3
3
 
4
4
  <% if f.object.errors.any? %>
@@ -1,50 +1,52 @@
1
- <%= render partial: 'toolbar/home' %>
1
+ <div class="oauth2_server">
2
+ <%= render partial: 'toolbar/home' %>
2
3
 
3
- <section id="oauth2_server">
4
- <h1>
5
- <%= @client.name %>
6
- </h1>
7
- <a class="pull-right" href="#">
8
- ir a tus demás aplicaciones
9
- </a>
10
- <hr class="soften">
11
- <div class="content">
12
- <a class="pull-left" href="#">
4
+ <section id="oauth2_server">
5
+ <h1>
6
+ <%= @client.name %>
7
+ </h1>
8
+ <a class="pull-right" href="#">
9
+ ir a tus demás aplicaciones
10
+ </a>
11
+ <hr class="soften">
12
+ <div class="content">
13
+ <a class="pull-left" href="#">
13
14
 
14
- <%= image_tag('logos/app-default.png', class: "media-object") %>
15
+ <%= image_tag('logos/app-default.png', class: "media-object") %>
15
16
 
16
17
 
17
-
18
- </a>
19
- <article class="media box">
20
- <div class="media-body">
21
- <h4>
22
- <%= Site::Client.human_attribute_name :url %>
23
- </h4>
24
- <div class="result">
25
- <%= link_to @client.url, @client.url%>
18
+
19
+ </a>
20
+ <article class="media box">
21
+ <div class="media-body">
22
+ <h4>
23
+ <%= Site::Client.human_attribute_name :url %>
24
+ </h4>
25
+ <div class="result">
26
+ <%= link_to @client.url, @client.url%>
27
+ </div>
28
+ <h4>
29
+ <%= Site::Client.human_attribute_name :callback_url %>
30
+ </h4>
31
+ <div class="result">
32
+ <%= @client.callback_url %>
33
+ </div>
34
+ <h4>
35
+ <%= Site::Client.human_attribute_name :id %>
36
+ </h4>
37
+ <div class="result">
38
+ <%= @client.id %>
39
+ </div>
40
+ <h4>
41
+ <%= Site::Client.human_attribute_name :secret %>
42
+ </h4>
43
+ <div class="result client_secret">
44
+ <p>
45
+ <%= @client.secret %>
46
+ </p>
47
+ </div>
26
48
  </div>
27
- <h4>
28
- <%= Site::Client.human_attribute_name :callback_url %>
29
- </h4>
30
- <div class="result">
31
- <%= @client.callback_url %>
32
- </div>
33
- <h4>
34
- <%= Site::Client.human_attribute_name :id %>
35
- </h4>
36
- <div class="result">
37
- <%= @client.id %>
38
- </div>
39
- <h4>
40
- <%= Site::Client.human_attribute_name :secret %>
41
- </h4>
42
- <div class="result client_secret">
43
- <p>
44
- <%= @client.secret %>
45
- </p>
46
- </div>
47
- </div>
48
- </article>
49
- </div>
50
- </section>
49
+ </article>
50
+ </div>
51
+ </section>
52
+ </div>
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Oauth2Server
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.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', '~> 2.0.0')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.2')
16
16
  s.add_runtime_dependency('rack-oauth2', '~> 1.0.0')
17
17
 
18
18
  s.add_development_dependency('rspec-rails', '~> 2.8.0')
@@ -56,22 +56,20 @@ def auth(username,domain,password)
56
56
  begin
57
57
  response = RestClient.post accessByPasswordUrl, :user => { :email => username , :password => password }
58
58
 
59
- if response.code == 201
60
- return true
61
- else
62
- return false
63
- end
64
-
59
+ return response.code == 201
60
+
65
61
  rescue => e
66
-
67
- unless e.class.name == "RestClient::Unauthorized" and e.message == "401 Unauthorized"
68
- $logger.error "#{Process.pid}: Exception in auth(username, password)"
69
- $logger.error "#{Process.pid}: #{e.class.name}: #{e.message}"
62
+ if e.class.name == "RestClient::Found" &&
63
+ e.http_code == 302 &&
64
+ e.http_body =~ /home/
65
+ return true
70
66
  end
71
67
 
68
+ $logger.error "#{Process.pid}: Exception in auth(username, password)"
69
+ $logger.error "#{Process.pid}: #{e.class.name}: #{e.message}"
70
+
72
71
  return false
73
72
  end
74
-
75
73
  end
76
74
 
77
75