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 +4 -4
- data/app/assets/javascripts/social_stream/documents.wall.js +1 -3
- data/app/controllers/documents_controller.rb +1 -1
- data/app/helpers/documents_helper.rb +1 -5
- data/app/views/audios/_audio_processed.html.erb +4 -0
- data/app/views/documents/search.html.erb +1 -3
- data/lib/social_stream/documents/version.rb +1 -1
- data/social_stream-documents.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a53ffa1e0ea37cce1726339fedd5e2e2abf677
|
4
|
+
data.tar.gz: 5025c29a11fe94dc00a25c8a981c7b0deb692f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
@@ -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.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
|
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-
|
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
|
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
|
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:
|
325
|
+
version: '0'
|
326
326
|
requirements: []
|
327
327
|
rubyforge_project:
|
328
328
|
rubygems_version: 2.0.0
|