oily_png 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oily_png (0.0.8)
4
+ oily_png (0.1.0)
5
5
  chunky_png (~> 0.10.2)
6
6
 
7
7
  GEM
@@ -101,7 +101,7 @@ VALUE oily_png_decode_png_image_pass(VALUE self, VALUE stream, VALUE width, VALU
101
101
  case OILY_PNG_COLOR_INDEXED: pixel_decoder = &oily_png_decode_pixel_indexed; break;
102
102
  case OILY_PNG_COLOR_GRAYSCALE_ALPHA: pixel_decoder = &oily_png_decode_pixel_grayscale_alpha; break;
103
103
  case OILY_PNG_COLOR_TRUECOLOR_ALPHA: pixel_decoder = &oily_png_decode_pixel_truecolor_alpha; break;
104
- default: rb_raise(rb_eRuntimeError, "Color mode not supported: %d", color_mode);
104
+ default: rb_raise(rb_eRuntimeError, "Color mode not supported: %ld", FIX2INT(color_mode));
105
105
  }
106
106
 
107
107
  int y, x, line_start, byte_index, pixel_index;
@@ -135,4 +135,3 @@ VALUE oily_png_decode_png_image_pass(VALUE self, VALUE stream, VALUE width, VALU
135
135
  // Now, return a new ChunkyPNG::Canvas instance with the decoded pixels.
136
136
  return rb_funcall(self, rb_intern("new"), 3, width, height, pixels);
137
137
  }
138
-
@@ -106,7 +106,7 @@ VALUE oily_png_encode_png_image_pass_to_stream(VALUE self, VALUE stream, VALUE c
106
106
  case OILY_PNG_COLOR_INDEXED: pixel_encoder = &oily_png_encode_pixel_indexed; break;
107
107
  case OILY_PNG_COLOR_GRAYSCALE_ALPHA: pixel_encoder = &oily_png_encode_pixel_grayscale_alpha; break;
108
108
  case OILY_PNG_COLOR_TRUECOLOR_ALPHA: pixel_encoder = &oily_png_encode_pixel_truecolor_alpha; break;
109
- default: rb_raise(rb_eRuntimeError, "Unsupported color mode: %d", color_mode);
109
+ default: rb_raise(rb_eRuntimeError, "Unsupported color mode: %ld", FIX2INT(color_mode));
110
110
  }
111
111
 
112
112
  // Loop over all the pixels to encode them into the byte array.
@@ -132,7 +132,7 @@ VALUE oily_png_encode_png_image_pass_to_stream(VALUE self, VALUE stream, VALUE c
132
132
  case OILY_PNG_FILTER_UP: scanline_filter = &oily_png_encode_filter_up; break;
133
133
  case OILY_PNG_FILTER_AVERAGE: scanline_filter = &oily_png_encode_filter_average; break;
134
134
  case OILY_PNG_FILTER_PAETH: scanline_filter = &oily_png_encode_filter_paeth; break;
135
- default: rb_raise(rb_eRuntimeError, "Unsupported filter type: %d", FIX2INT(filtering));
135
+ default: rb_raise(rb_eRuntimeError, "Unsupported filter type: %ld", FIX2INT(filtering));
136
136
  }
137
137
 
138
138
  // Now, apply the scanline_filter function to every line, backwards.
data/lib/oily_png.rb CHANGED
@@ -2,7 +2,7 @@ require 'chunky_png'
2
2
 
3
3
  module OilyPNG
4
4
 
5
- VERSION = "0.0.8"
5
+ VERSION = "0.1.0"
6
6
 
7
7
  def self.included(base)
8
8
  base::Canvas.send(:extend, OilyPNG::PNGDecoding)
data/oily_png.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
 
5
5
  # Do not change the version and date fields by hand. This will be done
6
6
  # automatically by the gem release script.
7
- s.version = "0.0.8"
7
+ s.version = "0.1.0"
8
8
  s.date = "2010-10-08"
9
9
 
10
10
  s.summary = "Native mixin to speed up ChunkyPNG"
@@ -271,8 +271,7 @@ module GithubGem
271
271
  # All work is done by the task's dependencies, so just display a release completed message.
272
272
  def release_task
273
273
  puts
274
- puts '------------------------------------------------------------'
275
- puts "Released #{gemspec.name} version #{gemspec.version}"
274
+ puts "Release successful."
276
275
  end
277
276
 
278
277
  private
@@ -332,6 +331,9 @@ module GithubGem
332
331
 
333
332
  # Reload the gemspec so the changes are incorporated
334
333
  load_gemspec!
334
+
335
+ # Also mark the Gemfile.lock file as changed because of the new version.
336
+ modified_files << 'Gemfile.lock' if File.exist?(File.join(root_dir, 'Gemfile.lock'))
335
337
  end
336
338
  end
337
339
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oily_png
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 8
10
- version: 0.0.8
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Willem van Bergen