exifr 1.0.1 → 1.0.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.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/tiff.rb +9 -4
  3. metadata +9 -4
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ EXIF Reader 1.0.2
2
+ * bug fix; "[GH#9/12] no block given"; thanks to Ian Leitch
3
+
1
4
  EXIF Reader 1.0.1
2
5
  * bug fix; "[GH#7] Unable to properly display exposure_bias_value"; thanks to John Krueger
3
6
 
@@ -1,6 +1,7 @@
1
1
  # Copyright (c) 2007, 2008, 2009, 2010 - R.W. van 't Veer
2
2
 
3
3
  require 'rational'
4
+ require 'enumerator'
4
5
 
5
6
  module EXIFR
6
7
  # = TIFF decoder
@@ -483,15 +484,19 @@ module EXIFR
483
484
  end
484
485
  when 5 # unsigned rational
485
486
  len, pack = count * 8, proc do |d|
486
- d.unpack(data.long + '*').each_slice(2).map do |f|
487
- rational(*f)
487
+ rationals = []
488
+ d.unpack(data.long + '*').each_slice(2) do |f|
489
+ rationals << rational(*f)
488
490
  end
491
+ rationals
489
492
  end
490
493
  when 10 # signed rational
491
494
  len, pack = count * 8, proc do |d|
492
- d.unpack(data.long + '*').map{|n| sign_long(n)}.each_slice(2).map do |f|
493
- rational(*f)
495
+ rationals = []
496
+ d.unpack(data.long + '*').map{|n| sign_long(n)}.each_slice(2) do |f|
497
+ rationals << rational(*f)
494
498
  end
499
+ rationals
495
500
  end
496
501
  end
497
502
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exifr
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 19
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
- - 1
9
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - R.W. van 't Veer
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-26 00:00:00 +02:00
18
+ date: 2010-08-04 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -70,23 +71,27 @@ rdoc_options:
70
71
  require_paths:
71
72
  - lib
72
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
+ none: false
73
75
  requirements:
74
76
  - - ">="
75
77
  - !ruby/object:Gem::Version
78
+ hash: 3
76
79
  segments:
77
80
  - 0
78
81
  version: "0"
79
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
+ none: false
80
84
  requirements:
81
85
  - - ">="
82
86
  - !ruby/object:Gem::Version
87
+ hash: 3
83
88
  segments:
84
89
  - 0
85
90
  version: "0"
86
91
  requirements: []
87
92
 
88
93
  rubyforge_project:
89
- rubygems_version: 1.3.6
94
+ rubygems_version: 1.3.7
90
95
  signing_key:
91
96
  specification_version: 3
92
97
  summary: EXIF Reader is a module to read EXIF from JPEG images.