viki_utils 0.0.5 → 0.0.6

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.
@@ -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: