carrierwave-video 0.5.5 → 0.5.6

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: 4efda64fe5fc3076a571a57adb8933dc58604931
4
- data.tar.gz: 420cd6253e94fbdbd971b0dc8b6e7644e64c66f7
3
+ metadata.gz: 95679b1b2e16fb661650f03586f126d8477be156
4
+ data.tar.gz: 81715a2918564e59d20910e33ddaa27f2d135def
5
5
  SHA512:
6
- metadata.gz: 419bbd778322c2e4f43f7b09e7c33783205e7b7813b77e59e401c875276f28c577d03a2a631ce4bf54c82355607fd8861983198061eed2cb5048dafc99ce84c3
7
- data.tar.gz: 7de98e004cd585e3c5c96918c8a46eee7acffff6000659faebb025e077e7b1f714f3b2ec6509274c20576e4a47bcd365fb298c3efd0659d3821799d2db1aafc4
6
+ metadata.gz: 9d470bc9348adbaeaff769cdee8f00af8d2df9f006eefb514b96c09667664f789f2c5883f89f25e415979859328cea7a73937aa829234dcc8053d8c39b3b74bb
7
+ data.tar.gz: d00292a59ad84837b73847619b685c67b9312857a3ba081dcc7fdafd087285930b32b6bd515ca98332b1a5326a60a0150a61ee3b1965325c424ba37b691dc5d1
@@ -38,6 +38,9 @@ Resolution passed to ffmpeg:
38
38
  resolution: "640x360"
39
39
 
40
40
  If you want to keep the same resolution:
41
+
42
+ Note: This only works with the edge version of streamio-ffmpeg (as of Feb 28, 2014) https://github.com/streamio/streamio-ffmpeg/issues/72
43
+
41
44
  resolution: :same
42
45
 
43
46
  If you want to keep the same video bitrate:
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Video
3
- VERSION = "0.5.5"
3
+ VERSION = "0.5.6"
4
4
  end
5
5
  end
@@ -42,6 +42,7 @@ module CarrierWave
42
42
  # output
43
43
  def format_params
44
44
  params = @format_options.dup
45
+ params.delete(:watermark)
45
46
  params[:custom] = [params[:custom], watermark_params].compact.join(' ')
46
47
  params
47
48
  end
@@ -207,6 +207,18 @@ describe CarrierWave::Video do
207
207
  path: 'path/to/file.png'
208
208
  })
209
209
  end
210
+
211
+ it "removes watermark options from common options" do
212
+ movie.should_receive(:transcode) do |path, opts, codec_opts|
213
+ opts.should_not have_key(:watermark)
214
+ end
215
+
216
+ converter.encode_video(format, watermark: {
217
+ path: 'path/to/file.png',
218
+ position: :bottom_left,
219
+ pixels_from_edge: 5
220
+ })
221
+ end
210
222
  end
211
223
 
212
224
  context "with resolution set to :same" do
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-video
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - rheaton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.10.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: streamio-ffmpeg
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: carrierwave
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Transcodes to html5-friendly videos.
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - .gitignore
77
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".travis.yml"
78
78
  - Gemfile
79
79
  - LICENSE
80
80
  - README.rdoc
@@ -97,12 +97,12 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements:
@@ -110,7 +110,7 @@ requirements:
110
110
  - ffmpeg, version 0.11.1 or greater with libx256, libfaac, libtheora, libvorbid, libvpx
111
111
  enabled
112
112
  rubyforge_project: carrierwave-video
113
- rubygems_version: 2.1.11
113
+ rubygems_version: 2.2.2
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Carrierwave extension that uses ffmpeg to transcode videos.
@@ -118,3 +118,4 @@ test_files:
118
118
  - spec/lib/carrierwave_video_spec.rb
119
119
  - spec/lib/ffmpeg_theora_spec.rb
120
120
  - spec/spec_helper.rb
121
+ has_rdoc: