chunky_png 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,12 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chunky_png (0.10.2)
4
+ chunky_png (0.10.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- git (1.2.5)
10
9
  rake (0.8.7)
11
10
  rspec (1.3.0)
12
11
 
@@ -15,6 +14,5 @@ PLATFORMS
15
14
 
16
15
  DEPENDENCIES
17
16
  chunky_png!
18
- git
19
17
  rake
20
- rspec (>= 1.3)
18
+ rspec (~> 1.3)
data/README.rdoc CHANGED
@@ -25,14 +25,9 @@ Issue tracker:: http://github.com/wvanbergen/chunky_png/issues
25
25
  optimized saving routine.
26
26
  * Interoperability with RMagick if you really have to.
27
27
 
28
- == Classes
29
-
30
- The main classes and modules used within ChunkyPNG are:
31
-
32
- <tt>ChunkyPNG::Image</tt> :: create PNG images from scratch or based on another PNG image.
33
- <tt>ChunkyPNG::Datastream</tt> :: low-level read and write access to PNG images from or to a file or stream.
34
- <tt>ChunkyPNG::Canvas</tt> :: represents an image canvas as a matrix of pixels.
35
- <tt>ChunkyPNG::Color</tt> :: to handle Fixnums as color values.
28
+ Also, have a look at OilyPNG at http://github.com/wvanbergen/oily_png. OilyPNG is a
29
+ mixin module that implements some of the ChunkyPNG algorithms in C, which
30
+ provides a massive speed boost to encoding and decoding.
36
31
 
37
32
  == Usage
38
33
 
data/chunky_png.gemspec CHANGED
@@ -3,8 +3,8 @@ 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.2"
7
- s.date = "2010-10-05"
6
+ s.version = "0.10.3"
7
+ s.date = "2010-10-08"
8
8
 
9
9
  s.summary = "Pure ruby library for read/write, chunk-level access to PNG files"
10
10
  s.description = <<-EOT
@@ -17,8 +17,13 @@ Gem::Specification.new do |s|
17
17
  write textual metadata from PNG files. Low-level read/write access to PNG chunks is
18
18
  also possible.
19
19
 
20
- This library supports simple drawing on the image canvas and simple operations like alpha composition
21
- and cropping. Finally, it can import from and export to RMagick for interoperability.
20
+ This library supports simple drawing on the image canvas and simple operations like
21
+ alpha composition and cropping. Finally, it can import from and export to RMagick for
22
+ interoperability.
23
+
24
+ Also, have a look at OilyPNG at http://github.com/wvanbergen/oily_png. OilyPNG is a
25
+ drop in mixin module that implements some of the ChunkyPNG algorithms in C, which
26
+ provides a massive speed boost to encoding and decoding.
22
27
  EOT
23
28
 
24
29
  s.authors = ['Willem van Bergen']
@@ -26,8 +31,7 @@ Gem::Specification.new do |s|
26
31
  s.homepage = 'http://wiki.github.com/wvanbergen/chunky_png'
27
32
 
28
33
  s.add_development_dependency('rake')
29
- s.add_development_dependency('rspec', '>= 1.3')
30
- s.add_development_dependency('git')
34
+ s.add_development_dependency('rspec', '~> 1.3')
31
35
 
32
36
  s.rdoc_options << '--title' << s.name << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
33
37
  s.extra_rdoc_files = ['README.rdoc', 'BENCHMARKS.rdoc']
data/lib/chunky_png.rb CHANGED
@@ -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.2"
30
+ VERSION = "0.10.3"
31
31
 
32
32
  ###################################################
33
33
  # PNG international standard defined constants
@@ -355,7 +355,7 @@ module ChunkyPNG
355
355
  # @param [Integer] color The grayscale color to convert.
356
356
  # @return [Array<Integer>] An array with 1 Integer element.
357
357
  def to_grayscale_bytes(color)
358
- [r(color)] # assumption r == g == b
358
+ [b(color)] # assumption r == g == b
359
359
  end
360
360
 
361
361
  # Returns an array with the grayscale teint and alpha channel values
@@ -366,7 +366,7 @@ module ChunkyPNG
366
366
  # @param [Integer] color The grayscale color to convert.
367
367
  # @return [Array<Integer>] An array with 2 Integer elements.
368
368
  def to_grayscale_alpha_bytes(color)
369
- [r(color), a(color)] # assumption r == g == b
369
+ [b(color), a(color)] # assumption r == g == b
370
370
  end
371
371
 
372
372
  ####################################################################
@@ -332,6 +332,9 @@ module GithubGem
332
332
 
333
333
  # Reload the gemspec so the changes are incorporated
334
334
  load_gemspec!
335
+
336
+ # ALso mark the Gemfile.lock file as changed because of the new version.
337
+ modified_files << 'Gemfile.lock' if File.exist?(File.join(root_dir, 'Gemfile.lock'))
335
338
  end
336
339
  end
337
340
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chunky_png
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 2
10
- version: 0.10.2
9
+ - 3
10
+ version: 0.10.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Willem van Bergen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-05 00:00:00 +02:00
18
+ date: 2010-10-08 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -36,7 +36,7 @@ dependencies:
36
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
37
37
  none: false
38
38
  requirements:
39
- - - ">="
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  hash: 9
42
42
  segments:
@@ -47,21 +47,7 @@ dependencies:
47
47
  name: rspec
48
48
  prerelease: false
49
49
  type: :development
50
- - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
60
- requirement: *id003
61
- name: git
62
- prerelease: false
63
- type: :development
64
- 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"
50
+ 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\n alpha composition and cropping. Finally, it can import from and export to RMagick for \n interoperability.\n \n Also, have a look at OilyPNG at http://github.com/wvanbergen/oily_png. OilyPNG is a \n drop in mixin module that implements some of the ChunkyPNG algorithms in C, which \n provides a massive speed boost to encoding and decoding.\n"
65
51
  email:
66
52
  - willem@railsdoctors.com
67
53
  executables: []