escper 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,12 @@
1
1
  module Escper
2
- class Image
2
+ class Img
3
3
  def initialize(data, type)
4
4
  if type == :file
5
5
  @image = convert(Magick::Image.read(data).first)
6
6
  elsif type == :blob
7
7
  @image = convert(Magick::Image.from_blob(data).first)
8
+ elsif type == :obj
9
+ @image = convert(data)
8
10
  end
9
11
  end
10
12
 
@@ -1,3 +1,3 @@
1
1
  module Escper
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: escper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: