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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- imgkit (1.3.9)
4
+ imgkit (1.3.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/imgkit/source.rb CHANGED
@@ -11,7 +11,7 @@ class IMGKit
11
11
  end
12
12
 
13
13
  def file?
14
- @source.kind_of?(File)
14
+ @source.kind_of?(File) || @source.kind_of?(Tempfile)
15
15
  end
16
16
 
17
17
  def html?
@@ -1,3 +1,3 @@
1
1
  class IMGKit
2
- VERSION = "1.3.9"
2
+ VERSION = "1.3.10"
3
3
  end
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.9
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-02-22 00:00:00.000000000 Z
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: -4155335714113497947
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: -4155335714113497947
73
+ hash: -1737640145783329099
74
74
  requirements: []
75
75
  rubyforge_project: imgkit
76
76
  rubygems_version: 1.8.23