exifr 0.10.1 → 0.10.2
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 +4 -0
- data/Rakefile +1 -1
- data/lib/tiff.rb +1 -1
- data/tests/data/apple-aperture-1.5.exif +0 -0
- data/tests/test_tiff.rb +8 -3
- metadata +3 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
data/lib/tiff.rb
CHANGED
Binary file
|
data/tests/test_tiff.rb
CHANGED
@@ -60,12 +60,17 @@ class TestTIFF < Test::Unit::TestCase
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def test_orientation
|
63
|
+
tested = 0 # count tests because not all exif samples have an orientation field
|
63
64
|
all_test_exifs.each do |fname|
|
64
65
|
orientation = TIFF.new(fname).orientation
|
65
|
-
|
66
|
-
|
67
|
-
|
66
|
+
if orientation
|
67
|
+
assert_kind_of Module, orientation
|
68
|
+
assert orientation.respond_to?(:to_i)
|
69
|
+
assert orientation.respond_to?(:transform_rmagick)
|
70
|
+
tested += 1
|
71
|
+
end
|
68
72
|
end
|
73
|
+
assert tested > 0
|
69
74
|
end
|
70
75
|
|
71
76
|
def test_gps
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: exifr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.10.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.10.2
|
7
|
+
date: 2007-05-01 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
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- tests/test_jpeg.rb
|
40
40
|
- tests/test_tiff.rb
|
41
41
|
- tests/data/1x1.jpg
|
42
|
+
- tests/data/apple-aperture-1.5.exif
|
42
43
|
- tests/data/canon-g3.exif
|
43
44
|
- tests/data/Canon_PowerShot_A85.exif
|
44
45
|
- tests/data/Casio-EX-S20.exif
|