social_stream-documents 2.0.0.beta3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d5568e8e6ea8c27fd4ada9de391bb4bba57d11f
4
- data.tar.gz: d323a653e464ee0e26c2f4a9f5fd0481103c03fc
3
+ metadata.gz: b1a53ffa1e0ea37cce1726339fedd5e2e2abf677
4
+ data.tar.gz: 5025c29a11fe94dc00a25c8a981c7b0deb692f31
5
5
  SHA512:
6
- metadata.gz: 5b201fa9ad4d719b187bfa6ecc8fed00d10ed1d68277b646169a3b0c90d6f228dda14e692d4e5f596a5c671a8a7cae23263b06ec5fe7eab6e4979d352b97ad84
7
- data.tar.gz: 6c5ab3e7087fca90c99b850e05b40643ffb9affedbd4a876c834a603b14b0e47141e5ed66b91d2fc745fa670df96a091b1a22636d38ca2dcdb1ef262f15e6f8b
6
+ metadata.gz: 5336c983b406acbb60a58d3422937c2255b76f2534fe9298be2eb4063baacb7a7066b6cc2dcd4bc97721fec4491611cf737356c74a141fe08cefe4fea51cb796
7
+ data.tar.gz: c7734e2b80e7650e00a17306fed506d8e6554c93101fd252090ef47a03770d359710baab33d3b9be658b32d339e73d597a9df3fc629f14f82c52236b74ea28d6
@@ -37,9 +37,7 @@ SocialStream.Documents.Wall = (function(SS, $, undefined) {
37
37
  $('#new_document_description').show().val($('#post_text').val());
38
38
 
39
39
  SocialStream.Wall.changeAction($(this).attr('data-path'));
40
-
41
- SocialStream.Wall.changeOwner('document');
42
- SocialStream.Wall.changeRelationSelect('document');
40
+ SocialStream.Wall.changeParams('document');
43
41
 
44
42
  $('.wall_input input[type=file]').trigger('click');
45
43
  });
@@ -45,8 +45,8 @@ class DocumentsController < ApplicationController
45
45
 
46
46
  def show
47
47
  respond_to do |format|
48
- format.json {render :json => resource }
49
48
  format.html {render :action => :show}
49
+ format.json {render :json => resource }
50
50
  format.any {
51
51
  path = resource.file.path(params[:style] || params[:format])
52
52
 
@@ -9,11 +9,7 @@ module DocumentsHelper
9
9
 
10
10
  format = style.respond_to?('[]') && style[:format] || document.format
11
11
 
12
- if style
13
- polymorphic_path document, format: format, style: size
14
- else
15
- icon document, size
16
- end
12
+ polymorphic_path(document, format: format, style: size)
17
13
  end
18
14
 
19
15
  # Return the right icon based on {#document}'s mime type
@@ -1,4 +1,8 @@
1
1
  <%= div_for audio do %>
2
+ <h5>
3
+ <%= link_to truncate(audio.title, :length => 15), audio %>
4
+ </h5>
5
+
2
6
  <%= render partial: 'audios/player',
3
7
  object: audio,
4
8
  as: :audio %>
@@ -1,3 +1 @@
1
- <% params[:no_layout] = true %>
2
- <%= render :partial => 'common_documents/index',
3
- :locals => { :documents => @documents } %>
1
+
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "2.0.0.beta3".freeze
3
+ VERSION = "2.0.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', '~> 2.0.0.beta3')
15
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.0')
16
16
  s.add_runtime_dependency('paperclip','~> 3.3.0')
17
17
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.9.0')
18
18
  s.add_runtime_dependency('delayed_paperclip','>= 2.4.5.2')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream-documents
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta3
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Víctor Sánchez Belmar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: social_stream-base
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: 2.0.0.beta3
20
+ version: 2.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: 2.0.0.beta3
27
+ version: 2.0.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: paperclip
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -320,9 +320,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
320
320
  version: '0'
321
321
  required_rubygems_version: !ruby/object:Gem::Requirement
322
322
  requirements:
323
- - - '>'
323
+ - - '>='
324
324
  - !ruby/object:Gem::Version
325
- version: 1.3.1
325
+ version: '0'
326
326
  requirements: []
327
327
  rubyforge_project:
328
328
  rubygems_version: 2.0.0