imgkit 1.3.9 → 1.3.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/imgkit/source.rb +1 -1
- data/lib/imgkit/version.rb +1 -1
- data/spec/source_spec.rb +5 -0
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/imgkit/source.rb
CHANGED
data/lib/imgkit/version.rb
CHANGED
data/spec/source_spec.rb
CHANGED
@@ -29,6 +29,11 @@ describe IMGKit::Source do
|
|
29
29
|
source = IMGKit::Source.new(File.new(__FILE__))
|
30
30
|
source.should be_file
|
31
31
|
end
|
32
|
+
|
33
|
+
it "should return true if passed a temporary file" do
|
34
|
+
source = IMGKit::Source.new(Tempfile.new 'temp_file')
|
35
|
+
source.should be_file
|
36
|
+
end
|
32
37
|
|
33
38
|
it "should return false if passed a url like string" do
|
34
39
|
source = IMGKit::Source.new('http://google.com')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imgkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Uses wkhtmltoimage to create Images using HTML
|
15
15
|
email: christopher.continanza@gmail.com
|
@@ -61,7 +61,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
segments:
|
63
63
|
- 0
|
64
|
-
hash: -
|
64
|
+
hash: -1737640145783329099
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
66
|
none: false
|
67
67
|
requirements:
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
version: '0'
|
71
71
|
segments:
|
72
72
|
- 0
|
73
|
-
hash: -
|
73
|
+
hash: -1737640145783329099
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project: imgkit
|
76
76
|
rubygems_version: 1.8.23
|