exifr 0.9 → 0.9.1
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.
- data/CHANGELOG +6 -0
- data/lib/tiff_header.rb +8 -2
- metadata +5 -3
data/CHANGELOG
ADDED
data/lib/tiff_header.rb
CHANGED
@@ -62,7 +62,13 @@ module EXIFR
|
|
62
62
|
d.unpack(data.long + '*').each_with_index do |v,i|
|
63
63
|
i % 2 == 0 ? r << [v] : r.last << v
|
64
64
|
end
|
65
|
-
|
65
|
+
r.map do |f|
|
66
|
+
if f[1] == 0 # allow NaN and Infinity
|
67
|
+
f[0].to_f.quo(f[1])
|
68
|
+
else
|
69
|
+
Rational.reduce(*f)
|
70
|
+
end
|
71
|
+
end
|
66
72
|
end
|
67
73
|
end
|
68
74
|
|
@@ -72,4 +78,4 @@ module EXIFR
|
|
72
78
|
end
|
73
79
|
end
|
74
80
|
end
|
75
|
-
end
|
81
|
+
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: exifr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2006-
|
6
|
+
version: 0.9.1
|
7
|
+
date: 2006-05-03 00:00:00 +02:00
|
8
8
|
summary: EXIF Reader is a module to read EXIF from JPEG images.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -28,17 +28,19 @@ cert_chain:
|
|
28
28
|
authors:
|
29
29
|
- R.W. van 't Veer
|
30
30
|
files:
|
31
|
-
- lib/exif.rb
|
32
31
|
- lib/exifr.rb
|
33
32
|
- lib/jpeg.rb
|
33
|
+
- lib/exif.rb
|
34
34
|
- lib/tiff_header.rb
|
35
35
|
- README
|
36
|
+
- CHANGELOG
|
36
37
|
test_files: []
|
37
38
|
|
38
39
|
rdoc_options: []
|
39
40
|
|
40
41
|
extra_rdoc_files:
|
41
42
|
- README
|
43
|
+
- CHANGELOG
|
42
44
|
executables: []
|
43
45
|
|
44
46
|
extensions: []
|