hyperpdf 0.2.0 → 0.2.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.
- data/README.md +1 -1
- data/lib/hyperpdf.rb +3 -3
- data/lib/hyperpdf/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Ruby wrapper around the [HyperPDF](https://addons.heroku.com/hyperpdf) API
|
|
4
4
|
|
5
5
|
## Documentation
|
6
6
|
|
7
|
-
Full documentation can be found [here](https://devcenter.heroku.com/articles/hyperpdf).
|
7
|
+
Full documentation can be found [here](https://devcenter.heroku.com/articles/hyperpdf#toc).
|
8
8
|
|
9
9
|
## Contributing
|
10
10
|
|
data/lib/hyperpdf.rb
CHANGED
@@ -26,7 +26,7 @@ class HyperPDF
|
|
26
26
|
|
27
27
|
# Generates PDF
|
28
28
|
#
|
29
|
-
# @return [String] Binary string containing the generated document
|
29
|
+
# @return [String] Binary string containing the generated document or id of asynchronous job
|
30
30
|
def get
|
31
31
|
make_request.body
|
32
32
|
end
|
@@ -36,11 +36,11 @@ class HyperPDF
|
|
36
36
|
# @param bucket [String] Your S3 bucket name
|
37
37
|
# @param key [String] Name for generated file
|
38
38
|
# @param public [Boolean] Sets public read access
|
39
|
-
# @return [String] Url to generated document
|
39
|
+
# @return [String] Url to generated document or id of asynchronous job
|
40
40
|
def upload_to_s3(bucket, key, public = false)
|
41
41
|
@request_body.merge!(bucket: bucket, key: key, public: public)
|
42
42
|
resp = JSON.parse make_request.body
|
43
|
-
resp["url"]
|
43
|
+
resp["url"] || resp["id"]
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
data/lib/hyperpdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperpdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|