pdfcrowd 4.3 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pdfcrowd.rb +8 -20
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c95364dec9f567789987dd67ff9f923b82220720
|
4
|
+
data.tar.gz: 166d748d6a9df3da63af4a1eccde9da869271ba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b6b9dac1e568bb8b4dc7b49a47186a3997be87020f488304b6ebce1cbbdd331de9963128884a3e9c9cd28550151c15b845a847b5861bac0c10e27bd09558aec
|
7
|
+
data.tar.gz: 542f7f128a2ba325f1c54647c18dc18deac01c2e91da5abc41895cb79890f8bfe2019a364c7ee537bf94c9cb80908a685e8c5f6d9fc820f062ee91ca1cf9288d
|
data/lib/pdfcrowd.rb
CHANGED
@@ -530,7 +530,7 @@ end
|
|
530
530
|
module Pdfcrowd
|
531
531
|
HOST = ENV["PDFCROWD_HOST"] || 'api.pdfcrowd.com'
|
532
532
|
MULTIPART_BOUNDARY = '----------ThIs_Is_tHe_bOUnDary_$'
|
533
|
-
CLIENT_VERSION = '4.3'
|
533
|
+
CLIENT_VERSION = '4.3.1'
|
534
534
|
|
535
535
|
def self.float_to_string(value)
|
536
536
|
value.to_s.sub(',', '.')
|
@@ -545,13 +545,16 @@ module Pdfcrowd
|
|
545
545
|
|
546
546
|
setProxy(nil, nil, nil, nil)
|
547
547
|
setUseHttp(false)
|
548
|
-
setUserAgent('pdfcrowd_ruby_client/4.3 (http://pdfcrowd.com)')
|
548
|
+
setUserAgent('pdfcrowd_ruby_client/4.3.1 (http://pdfcrowd.com)')
|
549
549
|
|
550
550
|
@retry_count = 1
|
551
551
|
end
|
552
552
|
|
553
553
|
def post(fields, files, raw_data, out_stream = nil)
|
554
|
-
|
554
|
+
request = ConnectionHelper.create_request()
|
555
|
+
request.body = ConnectionHelper.encode_multipart_post_data(fields, files, raw_data)
|
556
|
+
request.content_type = 'multipart/form-data; boundary=' + MULTIPART_BOUNDARY
|
557
|
+
do_post(request, out_stream)
|
555
558
|
end
|
556
559
|
|
557
560
|
def setUseHttp(use_http)
|
@@ -609,21 +612,6 @@ module Pdfcrowd
|
|
609
612
|
@retry = 0
|
610
613
|
end
|
611
614
|
|
612
|
-
def post_url_encoded(fields, out_stream)
|
613
|
-
request = ConnectionHelper.create_request()
|
614
|
-
data = {}
|
615
|
-
fields.each { |key, value| data[key] = value.to_s if value }
|
616
|
-
request.set_form_data(data)
|
617
|
-
do_post(request, out_stream)
|
618
|
-
end
|
619
|
-
|
620
|
-
def post_multipart(fields, files, raw_data, out_stream)
|
621
|
-
request = ConnectionHelper.create_request()
|
622
|
-
request.body = ConnectionHelper.encode_multipart_post_data(fields, files, raw_data)
|
623
|
-
request.content_type = 'multipart/form-data; boundary=' + MULTIPART_BOUNDARY
|
624
|
-
do_post(request, out_stream)
|
625
|
-
end
|
626
|
-
|
627
615
|
def self.create_request()
|
628
616
|
Net::HTTP::Post.new('/convert/')
|
629
617
|
end
|
@@ -1294,7 +1282,7 @@ module Pdfcrowd
|
|
1294
1282
|
self
|
1295
1283
|
end
|
1296
1284
|
|
1297
|
-
# Set
|
1285
|
+
# Set credentials to access HTTP base authentication protected websites.
|
1298
1286
|
#
|
1299
1287
|
# * +user_name+ - Set the HTTP authentication user name.
|
1300
1288
|
# * +password+ - Set the HTTP authentication password.
|
@@ -2076,7 +2064,7 @@ module Pdfcrowd
|
|
2076
2064
|
self
|
2077
2065
|
end
|
2078
2066
|
|
2079
|
-
# Set
|
2067
|
+
# Set credentials to access HTTP base authentication protected websites.
|
2080
2068
|
#
|
2081
2069
|
# * +user_name+ - Set the HTTP authentication user name.
|
2082
2070
|
# * +password+ - Set the HTTP authentication password.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfcrowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pdfcrowd Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The Pdfcrowd API lets you easily convert between HTML, PDF and various
|
14
14
|
image formats.
|