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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f06158f27d8f23bf343080bfc2d180db0027fbf3
|
4
|
+
data.tar.gz: ba88fb9630837746d4a039e1d9ce62ad98d1311e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
14
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|