hydra-file_characterization 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81aa30a5af29b1bb419e67d30f0273faa4f7cd1a
4
- data.tar.gz: 998e940542884ba96698b9bb4e03e8c06e9cabbc
3
+ metadata.gz: 4def79bda517cce6ad3c1ffcaca7a88f9fd1aa7c
4
+ data.tar.gz: 82986c4ea7f73f62ac7726457086ccbc89000c3e
5
5
  SHA512:
6
- metadata.gz: df13ebfc40df2ac4a9c6a8fac0319f1049459fbb65e47309738e6dbf0abf99a6e3641b31b5d6801cb55f33e14ae96f962d9bcd3f9d90f24719dcf0a5d6914246
7
- data.tar.gz: e7466aa4a460b3e7ac62a06b21864ab7e4487fb23b46e99b4a11f34fc1dbf38d820e2745ba9656deb449f329378b6ab2e05ffff0eb17bd6ccc6e4ce04e65d04b
6
+ metadata.gz: 769bef1cd85ca67cf31898c2db6716eeac010d9d8ba9b18b164e642171324e872b91a85d646cbaacb87a834c5442eb363f8a3908ad0c3caae1dbc65f5b159f78
7
+ data.tar.gz: 0b4b47e4198067bcf264c25d452a3c5190fd781d3ea2a9726760946d2e480b9a8797d3b1604d1c7a8517a313e1fb8e12b03e60f6f18989488c1609c910ba3f2d
@@ -17,7 +17,8 @@ module Hydra::FileCharacterization
17
17
  end
18
18
 
19
19
  def call
20
- return if data.empty?
20
+ return if data.nil?
21
+ data = data.read if data.respond_to?(:read)
21
22
  f = Tempfile.new([File.basename(filename),File.extname(filename)])
22
23
  begin
23
24
  f.binmode
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module FileCharacterization
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-file_characterization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Treacy