chunky_png 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chunky_png (0.10.0)
4
+ chunky_png (0.10.1)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
 
4
4
  # Do not change the version and date fields by hand. This will be done
5
5
  # automatically by the gem release script.
6
- s.version = "0.10.0"
6
+ s.version = "0.10.1"
7
7
  s.date = "2010-10-04"
8
8
 
9
9
  s.summary = "Pure ruby library for read/write, chunk-level access to PNG files"
@@ -27,7 +27,7 @@ module ChunkyPNG
27
27
 
28
28
  # The current version of ChunkyPNG. This value will be updated automatically
29
29
  # by them gem:release rake task.
30
- VERSION = "0.10.0"
30
+ VERSION = "0.10.1"
31
31
 
32
32
  ###################################################
33
33
  # PNG international standard defined constants
@@ -104,7 +104,7 @@ module ChunkyPNG
104
104
  # @param color_mode (see ChunkyPNG::Canvas::PNGDecoding#decode_png_pixelstream)
105
105
  # @return (see ChunkyPNG::Canvas::PNGDecoding#decode_png_pixelstream)
106
106
  def decode_png_without_interlacing(stream, width, height, color_mode)
107
- decode_png_image_pass(stream, width, height, color_mode)
107
+ decode_png_image_pass(stream, width, height, color_mode, 0)
108
108
  end
109
109
 
110
110
  # Decodes a canvas from a Adam 7 interlaced PNG encoded pixelstream, using a
@@ -139,7 +139,7 @@ module ChunkyPNG
139
139
  # @param color_mode (see ChunkyPNG::Canvas::PNGDecoding#decode_png_pixelstream)
140
140
  # @param [Integer] start_pos The position in the pixel stream to start reading.
141
141
  # @return (see ChunkyPNG::Canvas::PNGDecoding#decode_png_pixelstream)
142
- def decode_png_image_pass(stream, width, height, color_mode, start_pos = 0)
142
+ def decode_png_image_pass(stream, width, height, color_mode, start_pos)
143
143
  stream << ChunkyPNG::EXTRA_BYTE if color_mode == ChunkyPNG::COLOR_TRUECOLOR
144
144
  pixel_size = Color.bytesize(color_mode)
145
145
  pixel_decoder = case color_mode
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chunky_png
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 10
9
- - 0
10
- version: 0.10.0
8
+ - 1
9
+ version: 0.10.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Willem van Bergen
@@ -19,48 +18,45 @@ date: 2010-10-04 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ name: rake
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- hash: 3
28
27
  segments:
29
28
  - 0
30
29
  version: "0"
31
- requirement: *id001
32
- name: rake
33
- prerelease: false
34
30
  type: :development
31
+ prerelease: false
32
+ version_requirements: *id001
35
33
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
34
+ name: rspec
35
+ requirement: &id002 !ruby/object:Gem::Requirement
37
36
  none: false
38
37
  requirements:
39
38
  - - ">="
40
39
  - !ruby/object:Gem::Version
41
- hash: 9
42
40
  segments:
43
41
  - 1
44
42
  - 3
45
43
  version: "1.3"
46
- requirement: *id002
47
- name: rspec
48
- prerelease: false
49
44
  type: :development
45
+ prerelease: false
46
+ version_requirements: *id002
50
47
  - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
48
+ name: git
49
+ requirement: &id003 !ruby/object:Gem::Requirement
52
50
  none: false
53
51
  requirements:
54
52
  - - ">="
55
53
  - !ruby/object:Gem::Version
56
- hash: 3
57
54
  segments:
58
55
  - 0
59
56
  version: "0"
60
- requirement: *id003
61
- name: git
62
- prerelease: false
63
57
  type: :development
58
+ prerelease: false
59
+ version_requirements: *id003
64
60
  description: " This pure Ruby library can read and write PNG images without depending on an external \n image library, like RMagick. It tries to be memory efficient and reasonably fast.\n \n It supports reading and writing all PNG variants that are defined in the specification, \n with one limitation: only 8-bit color depth is supported. It supports all transparency, \n interlacing and filtering options the PNG specifications allows. It can also read and \n write textual metadata from PNG files. Low-level read/write access to PNG chunks is\n also possible.\n \n This library supports simple drawing on the image canvas and simple operations like alpha composition\n and cropping. Finally, it can import from and export to RMagick for interoperability. \n"
65
61
  email:
66
62
  - willem@railsdoctors.com
@@ -168,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
164
  requirements:
169
165
  - - ">="
170
166
  - !ruby/object:Gem::Version
171
- hash: 3
167
+ hash: -2394313254908813650
172
168
  segments:
173
169
  - 0
174
170
  version: "0"
@@ -177,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
173
  requirements:
178
174
  - - ">="
179
175
  - !ruby/object:Gem::Version
180
- hash: 3
176
+ hash: -2394313254908813650
181
177
  segments:
182
178
  - 0
183
179
  version: "0"