carrierwave-video-thumbnailer 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +5 -0
- data/ChangeLog.md +3 -0
- data/Gemfile +1 -1
- data/README.md +8 -0
- data/lib/carrierwave/video/thumbnailer/version.rb +1 -1
- data/spec/lib/ffmpegthumbnailer_spec.rb +1 -1
- data/spec/lib/thumbnailer_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -0
- metadata +2 -3
- data/.rspec +0 -1
data/.travis.yml
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -75,6 +75,14 @@ gem 'carrierwave-video-thumbnailer'
|
|
75
75
|
```
|
76
76
|
in your Gemfile.
|
77
77
|
|
78
|
+
## Contributions
|
79
|
+
|
80
|
+
If you'like to contribute to the code please note that we are now using [A
|
81
|
+
Successful Git Branching Model](http://nvie.com/posts/a-successful-git-branching-model/).
|
82
|
+
So, please commit your changes to `feature/*` branches and make Pull Requests
|
83
|
+
to the `development` branch. BTW you can install and use `git flow` Git plugin, too.
|
84
|
+
Thanks in advance!
|
85
|
+
|
78
86
|
## Acknowledgements
|
79
87
|
|
80
88
|
Huge Thanks to **Rachel Heaton** (<https://github.com/rheaton>) whose
|
@@ -48,7 +48,7 @@ describe CarrierWave::Video::Thumbnailer::FFMpegThumbnailer do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
context "given a logger" do
|
51
|
-
let(:logger) {
|
51
|
+
let(:logger) { double(:logger) }
|
52
52
|
|
53
53
|
it "should run and log results" do
|
54
54
|
@options = CarrierWave::Video::Thumbnailer::FFMpegThumbnailerOptions.new({logger: logger})
|
@@ -34,7 +34,7 @@ describe CarrierWave::Video::Thumbnailer do
|
|
34
34
|
|
35
35
|
describe "#thumbnail" do
|
36
36
|
let(:format) { 'jpg' }
|
37
|
-
let(:thumbnailer) {
|
37
|
+
let(:thumbnailer) { double }
|
38
38
|
|
39
39
|
before do
|
40
40
|
uploader.stub(:current_path).and_return('video/path/file.jpg')
|
@@ -98,7 +98,7 @@ describe CarrierWave::Video::Thumbnailer do
|
|
98
98
|
end
|
99
99
|
|
100
100
|
context "with logger set" do
|
101
|
-
let(:logger) {
|
101
|
+
let(:logger) { double }
|
102
102
|
before do
|
103
103
|
uploader.model.stub(:logger).and_return(logger)
|
104
104
|
thumbnailer.should_receive(:run)
|
@@ -121,7 +121,7 @@ describe CarrierWave::Video::Thumbnailer do
|
|
121
121
|
|
122
122
|
it "logs exception" do
|
123
123
|
logger.should_receive(:error).with("#{e.class}: #{e.message}")
|
124
|
-
logger.
|
124
|
+
logger.stub(:error)
|
125
125
|
|
126
126
|
lambda do
|
127
127
|
uploader.thumbnail(logger: logger)
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-video-thumbnailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: carrierwave
|
@@ -150,7 +150,6 @@ extra_rdoc_files:
|
|
150
150
|
files:
|
151
151
|
- .document
|
152
152
|
- .gitignore
|
153
|
-
- .rspec
|
154
153
|
- .rvmrc.sample
|
155
154
|
- .travis.yml
|
156
155
|
- .yardopts
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour --format documentation
|