png-encode 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,8 @@ class PNG
7
7
 
8
8
  module ClassMethods
9
9
  def encode(infile, outfile)
10
- self.new(File.open(infile, 'rb')).encode(outfile)
10
+ infile = File.open(infile, 'rb') if infile.is_a?(String)
11
+ self.new(infile).encode(outfile)
11
12
  end
12
13
  end
13
14
 
@@ -1,5 +1,5 @@
1
1
  class PNG
2
2
  module Encode
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: png-encode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: