imgkit 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -140,6 +140,8 @@ class IMGKit
140
140
  case value
141
141
  when TrueClass
142
142
  nil
143
+ when Array
144
+ value
143
145
  else
144
146
  value.to_s
145
147
  end
@@ -1,3 +1,3 @@
1
1
  class IMGKit
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -60,6 +60,12 @@ describe IMGKit do
60
60
  imgkit = IMGKit.new('html', :header_center => "foo [page]")
61
61
  imgkit.command[imgkit.command.index('--header-center') + 1].should == 'foo [page]'
62
62
  end
63
+
64
+ it "should properly handle multi-part arguments" do
65
+ imgkit = IMGKit.new('html', :custom_header => ['User-Agent', 'some user agent'])
66
+ imgkit.command[imgkit.command.index('--custom-header') + 1].should == 'User-Agent'
67
+ imgkit.command[imgkit.command.index('--custom-header') + 2].should == 'some user agent'
68
+ end
63
69
 
64
70
  it "read the source from stdin if it is html" do
65
71
  imgkit = IMGKit.new('html')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 0
9
- version: 1.2.0
8
+ - 1
9
+ version: 1.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - csquared
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-29 00:00:00 -05:00
17
+ date: 2011-05-20 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20