imgkit 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/imgkit/imgkit.rb +2 -0
- data/lib/imgkit/version.rb +1 -1
- data/spec/imgkit_spec.rb +6 -0
- metadata +3 -3
data/lib/imgkit/imgkit.rb
CHANGED
data/lib/imgkit/version.rb
CHANGED
data/spec/imgkit_spec.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 1.2.
|
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-
|
17
|
+
date: 2011-05-20 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|