exifr 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/README.rdoc +1 -1
- data/lib/exifr.rb +1 -1
- data/lib/exifr/jpeg.rb +1 -1
- data/lib/exifr/tiff.rb +8 -2
- data/tests/jpeg_test.rb +1 -1
- data/tests/test_helper.rb +1 -1
- data/tests/tiff_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf4c33c21139fd7d83d9e101819c2e82dea47766
|
4
|
+
data.tar.gz: a296b4cb86cedcdf4c03d86794c7be061fd85b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e55c2f8d1d5be3d3dd640281f727756bf96d0feeafae711638a69c42085454a3fd84d8ce2d257ee2925133308306e12d4cc2bb6cc9280dc05b19fbb9ca90f135
|
7
|
+
data.tar.gz: 289f412a4599fbcac93aa2d420e3602f5f256f7c95939d188830003e23f50970c569c72929a4cf4f296fd9283a58a62fbbe9110e48f9f32efcdcda5693deb827
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
data/lib/exifr.rb
CHANGED
data/lib/exifr/jpeg.rb
CHANGED
data/lib/exifr/tiff.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2007
|
1
|
+
# Copyright (c) 2007-2015 - R.W. van 't Veer
|
2
2
|
|
3
3
|
require 'exifr'
|
4
4
|
require 'rational'
|
@@ -337,7 +337,13 @@ module EXIFR
|
|
337
337
|
end
|
338
338
|
|
339
339
|
def self.rational(n, d)
|
340
|
-
|
340
|
+
if d == 0
|
341
|
+
n.to_f / d.to_f
|
342
|
+
elsif Rational.respond_to?(:reduce)
|
343
|
+
Rational.reduce(n, d)
|
344
|
+
else
|
345
|
+
n.quo(d)
|
346
|
+
end
|
341
347
|
end
|
342
348
|
|
343
349
|
def self.round(f, n)
|
data/tests/jpeg_test.rb
CHANGED
data/tests/test_helper.rb
CHANGED
data/tests/tiff_test.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exifr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R.W. van 't Veer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: EXIF Reader is a module to read EXIF from JPEG and TIFF images.
|
14
14
|
email: remco@remvee.net
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.
|
76
|
+
rubygems_version: 2.4.5
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Read EXIF from JPEG and TIFF images
|