social_stream-documents 2.0.0 → 2.0.1

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: b1a53ffa1e0ea37cce1726339fedd5e2e2abf677
4
- data.tar.gz: 5025c29a11fe94dc00a25c8a981c7b0deb692f31
3
+ metadata.gz: 4721c320868c20d50481d4ec29c77e0883f79cb4
4
+ data.tar.gz: b52c938dfa9dca7a158484ee02d440713b2bf75d
5
5
  SHA512:
6
- metadata.gz: 5336c983b406acbb60a58d3422937c2255b76f2534fe9298be2eb4063baacb7a7066b6cc2dcd4bc97721fec4491611cf737356c74a141fe08cefe4fea51cb796
7
- data.tar.gz: c7734e2b80e7650e00a17306fed506d8e6554c93101fd252090ef47a03770d359710baab33d3b9be658b32d339e73d597a9df3fc629f14f82c52236b74ea28d6
6
+ metadata.gz: 4da14f1c1275f76e17ac6b0d8bb1be7ef5474680ac1eb8206b45139e7d1b4a86e5fc7d18adc26e787730f9981b35294a5c5465de9cda40e7f6cf54d3d347c5ca
7
+ data.tar.gz: 7b06f026a1e5e04c039818400329ead79a9237ef7376a3d1b18ded238bb66e84b08b824e15228ffd2ec4c80b326c9181851bf436d5cff01b335eda0154c5b03d
data/README.rdoc CHANGED
@@ -1,6 +1,22 @@
1
1
  = Social Stream Documents
2
2
 
3
- Social Stream Documents provides with files support to
4
- {Social Stream}[http://social-stream.dit.upm.es/], the core for building social
5
- network websites. This gem allows actor to upload files as other activity type.
3
+ Social Stream Documents provides with files management support to
4
+ {Social Stream}[http://social-stream.dit.upm.es/], the framework for building
5
+ distributed social network websites.
6
6
 
7
+ This gem allows actor to upload files as other activity object. Besides, it handles
8
+ some file types in an special way; it creates thumbnails for images, and converts
9
+ audio and videos to HTML5 formats. The HTML5 player {jPlayer}[http://www.jplayer.org/]
10
+ is used to show them
11
+
12
+ == Install
13
+
14
+ You need to add `social_stream-documents` to your `Gemfile`
15
+
16
+ Besides, you need a {Redis server}[http://redis.io/] for proccessing queues. Audios and
17
+ videos are converted to HTML5 compatible formats, but this is done outside the upload
18
+ request, so users are not waiting until the job is finished.
19
+
20
+ There is a wiki page on {How to setup Resque/Redis for background processing}[https://github.com/ging/social_stream/wiki/How-to-setup-Resque-Redis-for-background-processing]
21
+
22
+ A wave form is generated for the audio player if you install the `paperclip_waveform` gem.
@@ -15,6 +15,8 @@ SocialStream::Documents.setup do |config|
15
15
  # format: 'webm',
16
16
  # processors: [ :ffmpeg ]
17
17
  # },
18
+ # # You need to add the `paperclip_waveform` gem to your Gemfile
19
+ # # to get pngs with the audio wave form
18
20
  # waveform: {
19
21
  # format: :png,
20
22
  # convert_options: {
@@ -22,8 +22,13 @@ module SocialStream
22
22
  webma: {
23
23
  format: 'webm',
24
24
  processors: [ :ffmpeg ]
25
- },
26
- waveform: {
25
+ }
26
+ }
27
+
28
+ # Install the paperclip_waveform gem to create pngs with
29
+ # the audio wave form
30
+ if defined? PaperclipWaveform
31
+ @@audio_styles[:waveform] = {
27
32
  format: :png,
28
33
  convert_options: {
29
34
  color: :transparent,
@@ -33,7 +38,7 @@ module SocialStream
33
38
  },
34
39
  processors: [ :waveform ]
35
40
  }
36
- }
41
+ end
37
42
 
38
43
  mattr_accessor :video_styles
39
44
  @@video_styles = {
@@ -1,6 +1,5 @@
1
1
  require 'social_stream-base'
2
2
  require 'paperclip'
3
3
  require 'paperclip-ffmpeg'
4
- require 'paperclip_waveform'
5
4
  require 'delayed_paperclip'
6
5
  require 'delayed_paperclip/social_stream-documents'
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Documents
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.1".freeze
4
4
  end
5
5
  end
@@ -12,20 +12,9 @@ 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.1')
16
+
16
17
  s.add_runtime_dependency('paperclip','~> 3.3.0')
17
18
  s.add_runtime_dependency('paperclip-ffmpeg', '~> 0.9.0')
18
19
  s.add_runtime_dependency('delayed_paperclip','>= 2.4.5.2')
19
- s.add_runtime_dependency('paperclip_waveform')
20
-
21
-
22
- # Development Gem dependencies
23
- s.add_development_dependency('sqlite3-ruby')
24
- if RUBY_VERSION < '1.9'
25
- s.add_development_dependency('ruby-debug', '~> 0.10.3')
26
- end
27
- s.add_development_dependency('rspec-rails', '~> 2.6.0')
28
- s.add_development_dependency('factory_girl', '~> 1.3.2')
29
- s.add_development_dependency('forgery', '~> 0.4.2')
30
- s.add_development_dependency('capybara', '~> 0.3.9')
31
20
  end
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.1
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-05-17 00:00:00.000000000 Z
12
+ date: 2013-05-21 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.1
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.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: paperclip
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -67,90 +67,6 @@ dependencies:
67
67
  - - '>='
68
68
  - !ruby/object:Gem::Version
69
69
  version: 2.4.5.2
70
- - !ruby/object:Gem::Dependency
71
- name: paperclip_waveform
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - '>='
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: sqlite3-ruby
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - '>='
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - '>='
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: rspec-rails
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ~>
103
- - !ruby/object:Gem::Version
104
- version: 2.6.0
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- version: 2.6.0
112
- - !ruby/object:Gem::Dependency
113
- name: factory_girl
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ~>
117
- - !ruby/object:Gem::Version
118
- version: 1.3.2
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: 1.3.2
126
- - !ruby/object:Gem::Dependency
127
- name: forgery
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ~>
131
- - !ruby/object:Gem::Version
132
- version: 0.4.2
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ~>
138
- - !ruby/object:Gem::Version
139
- version: 0.4.2
140
- - !ruby/object:Gem::Dependency
141
- name: capybara
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - ~>
145
- - !ruby/object:Gem::Version
146
- version: 0.3.9
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ~>
152
- - !ruby/object:Gem::Version
153
- version: 0.3.9
154
70
  description: |-
155
71
  Social Stream is a Ruby on Rails engine providing your application with social networking features and activity streams.
156
72