thorsson_carrierwave 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/carrierwave/core_ext/file.rb +11 -0
  2. metadata +3 -2
@@ -0,0 +1,11 @@
1
+ class File
2
+ def size
3
+ File.size(path)
4
+ end
5
+
6
+ def empty?
7
+ size == 0
8
+ rescue Errno::ENOENT
9
+ false
10
+ end
11
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 8
9
- version: 0.4.8
8
+ - 9
9
+ version: 0.4.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jonas Nicklas, Ivan Turkovic
@@ -328,6 +328,7 @@ files:
328
328
  - lib/carrierwave/compatibility/paperclip.rb
329
329
  - lib/carrierwave/core_ext/blank.rb
330
330
  - lib/carrierwave/core_ext/inheritable_attributes.rb
331
+ - lib/carrierwave/core_ext/file.rb
331
332
  - lib/carrierwave/core_ext/module_setup.rb
332
333
  - lib/carrierwave/mount.rb
333
334
  - lib/carrierwave/orm/activerecord.rb