doc_raptor 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/doc_raptor.rb +3 -1
  2. metadata +3 -3
@@ -12,7 +12,9 @@ class DocRaptor
12
12
  # when given a block, hands the block a TempFile of the resulting document
13
13
  # otherwise, just returns the response
14
14
  def self.create(options = { })
15
- raise "must supply :document_content" if options[:document_content].blank?
15
+ if options[:document_content].blank? && options[:document_url].blank?
16
+ raise "must supply :document_content or :document_url"
17
+ end
16
18
 
17
19
  default_options = {
18
20
  :name => "default",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doc_raptor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Kuehl