carrierwave_backgrounder 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
+ ## 0.1.5
2
+
3
+ ### bug fixes
4
+ * [Revert #108] This is a breaking change and will be released in 0.2.0.
5
+
1
6
  ## 0.1.4
2
7
 
3
8
  ### bug fixes
4
9
  * [#109] Fix issue where setting Carrierwave.cache_dir to a full path would raise an exception [Sastopher].
5
- * [#108] Remove the need to set an order in the Gemfile when using sidekiq [matthewsmart].
6
10
 
7
11
  ## 0.1.3
8
12
 
@@ -1,5 +1,5 @@
1
1
  module CarrierWave
2
2
  module Backgrounder
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -3,6 +3,8 @@ module CarrierWave
3
3
  module Workers
4
4
 
5
5
  class ProcessAsset < Struct.new(:klass, :id, :column)
6
+ include ::Sidekiq::Worker if defined?(::Sidekiq)
7
+
6
8
  def self.perform(*args)
7
9
  new(*args).perform
8
10
  end
@@ -3,6 +3,7 @@ module CarrierWave
3
3
  module Workers
4
4
 
5
5
  class StoreAsset < Struct.new(:klass, :id, :column)
6
+ include ::Sidekiq::Worker if defined?(::Sidekiq)
6
7
  attr_reader :cache_path, :tmp_directory
7
8
 
8
9
  def self.perform(*args)
@@ -12,16 +12,6 @@ module CarrierWave
12
12
 
13
13
  def self.configure
14
14
  yield self
15
- if @backend == :sidekiq
16
- ::CarrierWave::Workers::ProcessAsset.class_eval do
17
- require 'sidekiq'
18
- include ::Sidekiq::Worker
19
- end
20
- ::CarrierWave::Workers::StoreAsset.class_eval do
21
- require 'sidekiq'
22
- include ::Sidekiq::Worker
23
- end
24
- end
25
15
  end
26
16
 
27
17
  end
@@ -89,7 +89,6 @@ describe CarrierWave::Workers::StoreAsset do
89
89
 
90
90
  describe '#store_directories' do
91
91
  let(:record) { mock('Record') }
92
- let(:root) { '/home/chris/dev/my-rails-project/public' }
93
92
 
94
93
  context 'cache_path' do
95
94
  it 'sets the cache_path correctly if a full path is set for the cache_dir' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave_backgrounder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
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-29 00:00:00.000000000 Z
12
+ date: 2013-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: 1765216748357494122
130
+ hash: 3846294144545899718
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 1765216748357494122
139
+ hash: 3846294144545899718
140
140
  requirements: []
141
141
  rubyforge_project:
142
142
  rubygems_version: 1.8.24