doc_raptor 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/doc_raptor.rb +4 -2
- metadata +3 -3
data/lib/doc_raptor.rb
CHANGED
@@ -20,7 +20,7 @@ class DocRaptor
|
|
20
20
|
:name => "default",
|
21
21
|
:document_type => "pdf",
|
22
22
|
:test => false,
|
23
|
-
:async => false
|
23
|
+
:async => false
|
24
24
|
}
|
25
25
|
options = default_options.merge(options)
|
26
26
|
|
@@ -34,7 +34,9 @@ class DocRaptor
|
|
34
34
|
# for url encoding works
|
35
35
|
# Broken by: https://github.com/rails/rails/commit/1300c034775a5d52ad9141fdf5bbdbb9159df96a#activesupport/lib/active_support/core_ext/string/output_safety.rb
|
36
36
|
# Discussion: https://github.com/rails/rails/issues/1555
|
37
|
-
|
37
|
+
if defined?(ActiveSupport) && defined?(ActiveSupport::SafeBuffer)
|
38
|
+
options.map{|k,v| options[k] = options[k].to_str if options[k].is_a?(ActiveSupport::SafeBuffer)}
|
39
|
+
end
|
38
40
|
# /HOTFIX
|
39
41
|
|
40
42
|
response = post("/docs", :body => {:doc => options}, :basic_auth => { :username => api_key }, :query => query)
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Kuehl
|