image_size 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2ZmMGNhMjllMTRhOGVkMDc3MjA4OTM2NGFkZjQxN2MyN2QwNTUzNQ==
5
+ data.tar.gz: !binary |-
6
+ NGIwMDQ0ZGY0ZjY5MmIxNmExYjJkNzU2OTZjMjJiNWI2MjEyOWZhOQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MjQ1NDBhMzk0YjAzM2QwMzgyOWU3NTA2OGI5ZjNmZGQwZTllYzExN2E4MGFj
10
+ YmE5ZGM0ZDhkZmQ1MDA0Nzk2NjBlZDhhNTZlYWUzYWNlNzFkMWYxYTgzMjc5
11
+ ZDE1Njc1NmZmNWRmYmNlNzVkZjdiZmEyZDg3OTgxNTI0MTExNzE=
12
+ data.tar.gz: !binary |-
13
+ NGM0ZTM1ZjRkYzlkMjcyMmM0MTU4NjkxZTA3MGMzM2E4ZmUzN2I5ODExYWE5
14
+ NTUwYWM4NzhlNmE4ZDNkMWEwMTYxNjIzOGFiMmM5NGJlNzM1NTNmYzYzNzE3
15
+ MzA3YjFmZmVlM2I1YWFhYzdhYWU4ZDI1MWZiMzQ1MWRhY2UzZDk=
data/image_size.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_size'
5
- s.version = '1.1.2'
5
+ s.version = '1.1.3'
6
6
  s.summary = %q{Measure image size using pure Ruby}
7
7
  s.description = %q{Measure following file dimensions: bmp, gif, jpeg, pbm, pcx, pgm, png, ppm, psd, swf, tiff, xbm, xpm}
8
8
  s.homepage = "http://github.com/toy/#{s.name}"
data/lib/image_size.rb CHANGED
@@ -34,6 +34,9 @@ class ImageSize
34
34
  while offset + length > @read
35
35
  @read += CHUNK
36
36
  if data = @io.read(CHUNK)
37
+ if data.respond_to?(:encoding)
38
+ data.force_encoding(@data.encoding)
39
+ end
37
40
  @data << data
38
41
  end
39
42
  end
metadata CHANGED
@@ -1,48 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: image_size
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 2
10
- version: 1.1.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.3
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Keisuke Minami
14
8
  - Ivan Kuchin
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2013-02-24 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-07-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
33
21
  type: :development
34
- version_requirements: *id001
35
- description: "Measure following file dimensions: bmp, gif, jpeg, pbm, pcx, pgm, png, ppm, psd, swf, tiff, xbm, xpm"
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ description: ! 'Measure following file dimensions: bmp, gif, jpeg, pbm, pcx, pgm,
29
+ png, ppm, psd, swf, tiff, xbm, xpm'
36
30
  email:
37
31
  executables: []
38
-
39
32
  extensions: []
40
-
41
33
  extra_rdoc_files: []
42
-
43
- files:
34
+ files:
44
35
  - .gitignore
45
- - .tmignore
46
36
  - README.markdown
47
37
  - image_size.gemspec
48
38
  - lib/image_size.rb
@@ -60,39 +50,30 @@ files:
60
50
  - spec/test.xbm
61
51
  - spec/test.xpm
62
52
  homepage: http://github.com/toy/image_size
63
- licenses:
53
+ licenses:
64
54
  - MIT
55
+ metadata: {}
65
56
  post_install_message:
66
57
  rdoc_options: []
67
-
68
- require_paths:
58
+ require_paths:
69
59
  - lib
70
- required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 3
76
- segments:
77
- - 0
78
- version: "0"
79
- required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
88
70
  requirements: []
89
-
90
71
  rubyforge_project: image_size
91
- rubygems_version: 1.8.24
72
+ rubygems_version: 2.0.3
92
73
  signing_key:
93
- specification_version: 3
74
+ specification_version: 4
94
75
  summary: Measure image size using pure Ruby
95
- test_files:
76
+ test_files:
96
77
  - spec/image_size_spec.rb
97
78
  - spec/test.bmp
98
79
  - spec/test.gif
@@ -106,4 +87,3 @@ test_files:
106
87
  - spec/test.tif
107
88
  - spec/test.xbm
108
89
  - spec/test.xpm
109
- has_rdoc:
data/.tmignore DELETED
@@ -1 +0,0 @@
1
- /spec/test.*