hydra-file_characterization 0.2.5 → 0.2.6

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: ac3f8bd5d49accc137edb199598480ee962e6e4a
4
- data.tar.gz: ef7acd758a81951fedb2f859fa1b63f3e333ca48
3
+ metadata.gz: f06158f27d8f23bf343080bfc2d180db0027fbf3
4
+ data.tar.gz: ba88fb9630837746d4a039e1d9ce62ad98d1311e
5
5
  SHA512:
6
- metadata.gz: 82f738df066f04e8e5c85781475f663ee9d64070b907c7305803efdc847fe137e01ddd64d640b8185738050efdec2343fb0d74033632f5f25c34f1320adb3a76
7
- data.tar.gz: bf4c51962ee5f7f34da4bd18e14331aafac3da2dad44eccd63b5b0baf8d0eecbebb134f79f06ef08a56b5d38a567de77acfcdcff9ae2e62484b336dff82ff35b
6
+ metadata.gz: c0753ac59e9409cb56fdbbcce950637f4f09ce976fcf25067c23d5f552b5fa9ae6d0565170e82aa8e085cd9ba29a7419a0e85dacab31d0525d3fb52c3b3e1141
7
+ data.tar.gz: 0199b35addc4f239b3f3c5f938ad8bdd24a58d2bf92cff33ef65a49e6803afbb4aa49fffd7d59d1c8b656e02a423dd601987896722e2f5bb2a0a457dbb9098d1
@@ -33,7 +33,12 @@ module Hydra::FileCharacterization
33
33
  protected
34
34
 
35
35
  def data=(value)
36
- @data = value.respond_to?(:read) ? value.read : value
36
+ if value.respond_to?(:read)
37
+ @data = value.read
38
+ value.rewind if value.respond_to?(:rewind)
39
+ else
40
+ @data = value
41
+ end
37
42
  end
38
43
  end
39
44
  end
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module FileCharacterization
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Treacy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-10-10 00:00:00.000000000 Z
14
+ date: 2013-10-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport