From 6d9999d6b4d86fb11cf5cd45368303c72259dcb1 Mon Sep 17 00:00:00 2001 From: ucnv Date: Thu, 6 Nov 2014 18:59:45 +0900 Subject: [PATCH] Version 0.0.1 --- README.md | 13 ------------- lib/pnglitch.rb | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/README.md b/README.md index e510d3b..c625b0a 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,6 @@ Using this library you will see beautiful and various PNG artifacts. ## Usage -```ruby - p = PNGlitch.open '/path/to/your/image.png' - p.glitch do |data| - data.gsub /\d/, 'x' - end - p.save '/path/to/broken/image.png' - p.close -``` - -The code above can be written with a block like below: - ```ruby PNGlitch.open('/path/to/your/image.png') do |p| p.glitch do |data| @@ -30,7 +19,6 @@ The code above can be written with a block like below: p.save '/path/to/broken/image.png' end ``` - ## Contributing diff --git a/lib/pnglitch.rb b/lib/pnglitch.rb index 701a251..3750900 100644 --- a/lib/pnglitch.rb +++ b/lib/pnglitch.rb @@ -192,7 +192,7 @@ # But sometimes this scratch would break the compression and make the file unopenable. # module PNGlitch - VERSION = '0.0.0' + VERSION = '0.0.1' class << self