carrierwave-meta 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -244,7 +244,7 @@ The uploader:
244
244
 
245
245
  = A note about testing
246
246
 
247
- fschwahn added support for mini-magick. To run tests with mini-magick do:
247
+ @fschwahn added support for mini-magick. To run tests with mini-magick do:
248
248
 
249
249
  bundle exec rake spec PROCESSOR=mini_magick
250
250
 
@@ -43,8 +43,8 @@ module CarrierWave
43
43
 
44
44
  private
45
45
  def call_store_meta(file = nil)
46
- # Re-retrieve metadata for a file only if model is not present.
47
- store_meta if self.model.nil?
46
+ # Re-retrieve metadata for a file only if model is not present OR model is not saved.
47
+ store_meta if self.model.nil? || (self.model.respond_to?(:new_record?) && self.model.new_record?)
48
48
  end
49
49
 
50
50
  def get_dimensions
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Meta
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-meta
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Sokolov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-14 00:00:00 Z
18
+ date: 2011-11-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: carrierwave
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  requirements: []
192
192
 
193
193
  rubyforge_project: carrierwave-meta
194
- rubygems_version: 1.8.6
194
+ rubygems_version: 1.8.11
195
195
  signing_key:
196
196
  specification_version: 3
197
197
  summary: ""