viki_utils 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,8 @@ module Viki
46
46
  end
47
47
 
48
48
  def is_file?(value)
49
- value.is_a?(IO) || (value.respond_to?(:tempfile) && value.tempfile.is_a?(IO))
49
+ # Checking the :read is a weak, but it's the shared behaviour between File, Tempfile and ActionDispatch::Http::UploadedFile
50
+ value.is_a?(IO) || value.respond_to?(:read)
50
51
  end
51
52
  end
52
53
  end
@@ -1,3 +1,3 @@
1
1
  module VikiUtils
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viki_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: