carrierwave-video 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
data/README.rdoc CHANGED
@@ -1,7 +1,8 @@
1
1
  = CarrierWave Video Converter
2
2
 
3
+ {<img src="https://secure.travis-ci.org/rheaton/carrierwave-video.png?branch=master" alt="Build Status" />}[http://travis-ci.org/rheaton/carrierwave-video]
4
+
3
5
  This gem adds a video converter using ffmpeg and the streamio-ffmpeg rubygem.
4
- Note: for watermarking to work, there a fork of the streamio-ffmpeg gem that must be used.
5
6
 
6
7
  = Installation
7
8
 
@@ -16,7 +17,7 @@ Using bundler:
16
17
  class VideoUploader < CarrierWave::Uploader::Base
17
18
  include CarrierWave::VideoConverter
18
19
 
19
- process encode_video: [:mp4, after_transcode: :set_success ]
20
+ process encode_video: [:mp4, callbacks: { after_transcode: :set_success } ]
20
21
  end
21
22
 
22
23
  class Video
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ desc 'Default: run specs.'
5
+ task :default => :spec
6
+
7
+ desc "Run specs"
8
+ RSpec::Core::RakeTask.new do |t|
9
+ t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
10
+ # Put spec opts in a file named .rspec in root
11
+ end
@@ -20,8 +20,9 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # specify any dependencies here; for example:
22
22
  s.add_development_dependency "rspec"
23
+ s.add_development_dependency "rake"
23
24
 
24
- s.add_runtime_dependency 'streamio-ffmpeg'#, :git => 'git://github.com/stakach/streamio-ffmpeg.git'
25
+ s.add_runtime_dependency 'streamio-ffmpeg'
25
26
  s.add_runtime_dependency 'carrierwave'
26
27
  s.requirements << 'ruby, version 1.9 or greater'
27
28
  s.requirements << 'ffmpeg, version 0.10 or greater with libx256, libfaac, libtheora, libvorbid, libvpx enabled'
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Video
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -45,7 +45,7 @@ module CarrierWave
45
45
  end
46
46
  end
47
47
 
48
- raise CarrierWave::ProcessingError.new("Failed to transcode with FFmpeg. Check ffmpeg imstall and verify video is not corrupt or cut short. Original error: #{e}")
48
+ raise CarrierWave::ProcessingError.new("Failed to transcode with FFmpeg. Check ffmpeg install and verify video is not corrupt or cut short. Original error: #{e}")
49
49
  ensure
50
50
  reset_logger
51
51
  send_callback(callbacks[:ensure])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-12 00:00:00.000000000 Z
12
+ date: 2012-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70360829717480 !ruby/object:Gem::Requirement
16
+ requirement: &70099877315660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,21 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70360829717480
24
+ version_requirements: *70099877315660
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70099877314880 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70099877314880
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: streamio-ffmpeg
27
- requirement: &70360829716900 !ruby/object:Gem::Requirement
38
+ requirement: &70099877313960 !ruby/object:Gem::Requirement
28
39
  none: false
29
40
  requirements:
30
41
  - - ! '>='
@@ -32,10 +43,10 @@ dependencies:
32
43
  version: '0'
33
44
  type: :runtime
34
45
  prerelease: false
35
- version_requirements: *70360829716900
46
+ version_requirements: *70099877313960
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: carrierwave
38
- requirement: &70360829716180 !ruby/object:Gem::Requirement
49
+ requirement: &70099877312940 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,7 +54,7 @@ dependencies:
43
54
  version: '0'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *70360829716180
57
+ version_requirements: *70099877312940
47
58
  description: Transcodes to html5-friendly videos.
48
59
  email:
49
60
  - rachelmheaton@gmail.com
@@ -52,6 +63,7 @@ extensions: []
52
63
  extra_rdoc_files: []
53
64
  files:
54
65
  - .gitignore
66
+ - .travis.yml
55
67
  - Gemfile
56
68
  - README.rdoc
57
69
  - Rakefile