social_stream 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2246d48d29fac1f883ffe085fbd511940017487d
4
- data.tar.gz: 4953ad1337cf0b17723949b6dbf5f3d541c05c15
3
+ metadata.gz: fe0301e354dc45ff970977c0c864b38e428286e3
4
+ data.tar.gz: 57e99fba32b044c6063738699c325b28c9ebec3b
5
5
  SHA512:
6
- metadata.gz: 6286aeb288d1db1923655aa108c282a56610b58c411a4eae6e8f99c24cf39905f21b17144209fbce812b0f5324421f3dcf88790e67d3ad95347360df5b0a916b
7
- data.tar.gz: 9c71b52447fef9d83bf66c71512cd9007c7c16f8d09990e4b4e512d6c3b1b53b8644e4c126b1376e97726794a580511baf7a0d10947934ddae5b460bfffef2f1
6
+ metadata.gz: 48b432d1b37f0154a9d60c03f9e43f5678087c00fffba40f217de25fff3d6b4432df324370245a0ce9467982b21cf912cae7ee694160d76d8bcdad26e404c68d
7
+ data.tar.gz: dcee3968c5338da7916adcb127405f6ba1951c8f8ba400d333ce170e34c0719ceded278fd4834081dcd6e36df0bcf058d1cc4bcf3cfc7527100c7ca9ce17ea1c
data/Gemfile CHANGED
@@ -8,9 +8,11 @@ source "http://rubygems.org"
8
8
  # gem 'avatars_for_rails', :path => '../avatars_for_rails'
9
9
  # gem 'rails-scheduler', path: '../rails-scheduler'
10
10
  # gem 'omniauth-socialstream', path: '../omniauth-socialstream'
11
- # gem 'paperclip_waveform', path: '../paperclip_waveform'
12
11
  # gem 'flashy', path: '../flashy'
13
12
 
13
+ # Needs the libsndfile package
14
+ gem 'paperclip_waveform'
15
+
14
16
  # social_stream gems
15
17
  %w(base documents events linkser presence).each do |g|
16
18
  gem "social_stream-#{ g }", :path => g
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Base
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.0.1".freeze
4
4
  end
5
5
  end
@@ -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
@@ -28,7 +28,7 @@ module SocialStream
28
28
 
29
29
  def new_number
30
30
  @new_number ||= old_number.sub(NUMBER_PATTERN) do
31
- respond_to?(target) ? send(target, $1, $2, $3) : target
31
+ respond_to?(target, true) ? send(target, $1, $2, $3) : target
32
32
  end
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.0.1".freeze
3
3
  end
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
10
10
  s.files = `git ls-files`.split("\n")
11
11
 
12
12
  # Gem dependencies
13
- s.add_runtime_dependency('social_stream-base', '~> 2.0.0')
14
- s.add_runtime_dependency('social_stream-documents', '~> 2.0.0')
13
+ s.add_runtime_dependency('social_stream-base', '~> 2.0.1')
14
+ s.add_runtime_dependency('social_stream-documents', '~> 2.0.1')
15
15
  s.add_runtime_dependency('social_stream-events', '~> 2.0.0')
16
16
  s.add_runtime_dependency('social_stream-linkser', '~> 2.0.0')
17
17
  s.add_runtime_dependency('social_stream-presence', '~> 2.0.0')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_stream
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
  - GING - DIT - UPM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-17 00:00:00.000000000 Z
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: social_stream-base
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0
19
+ version: 2.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.0
26
+ version: 2.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: social_stream-documents
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.0
33
+ version: 2.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.0
40
+ version: 2.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: social_stream-events
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -451,8 +451,6 @@ files:
451
451
  - base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.svg
452
452
  - base/app/assets/stylesheets/social_stream/fonts/opensans-regular-webfont.woff
453
453
  - base/app/assets/stylesheets/social_stream/fonts/opensans-regular.ttf
454
- - base/app/assets/stylesheets/social_stream/fonts/social-stream:fonts:colorfont.css.sass
455
- - base/app/assets/stylesheets/social_stream/fonts/social-stream:fonts:fonts.css.sass
456
454
  - base/app/controllers/activities_controller.rb
457
455
  - base/app/controllers/activity_actions_controller.rb
458
456
  - base/app/controllers/api_controller.rb
@@ -1,5 +0,0 @@
1
- @import "social_stream/base/mixins/colorfont"
2
-
3
- @import "social_stream/fonts/fonts"
4
-
5
- @import "social_stream/fonts/colorfont"
@@ -1,5 +0,0 @@
1
- @import "social_stream/base/mixins/colorfont"
2
-
3
- @import "social_stream/fonts/fonts"
4
-
5
- @import "social_stream/fonts/colorfont"