carrierwave-video-thumbnailer 0.1.2 → 0.1.4

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.
@@ -1,12 +1,17 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.0.0
3
4
  - 1.9.3
4
5
  - rbx-19mode
6
+ - rbx-20mode
5
7
  - jruby-19mode
8
+ - jruby-20mode
6
9
  - ruby-head
7
10
 
8
11
 
9
12
  branches:
10
13
  only:
14
+ - /^feature\/.*$/
15
+ - develop
11
16
  - master
12
17
  - stable
@@ -2,3 +2,6 @@
2
2
 
3
3
  * Initial release. Mostly harmless.
4
4
 
5
+ ### 0.1.4 / 2013-10-17
6
+
7
+ * Docs and tests improvements
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
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
@@ -2,7 +2,7 @@ module CarrierWave
2
2
  module Video
3
3
  module Thumbnailer
4
4
  # carrierwave-video-thumbnailer version
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
8
8
  end
@@ -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) { mock(: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) { mock }
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) { mock }
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.should_receive(:error).any_number_of_times # backtrace
124
+ logger.stub(:error)
125
125
 
126
126
  lambda do
127
127
  uploader.thumbnail(logger: logger)
@@ -4,4 +4,6 @@ require 'carrierwave/video/thumbnailer'
4
4
 
5
5
  RSpec.configure do |config|
6
6
  config.mock_with :rspec
7
+ config.formatter = 'progress'
8
+ config.color_enabled = true
7
9
  end
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.2
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-01-11 00:00:00.000000000 Z
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