pdfbucket 0.3.0 → 0.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/README.md +2 -2
- data/lib/pdfbucket.rb +1 -1
- data/lib/pdfbucket/version.rb +1 -1
- 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: 0bb9d0e68a85a50f984688b8963b35aad5d5aec8
|
4
|
+
data.tar.gz: 73cd8282ddb7f5885dc40ceeb33d3058add81a51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adc66e7c053ff0dd957fddb4493602b8ed97c6ad9d6f0e776a83b9357f3651c6dd82d7a56bb9c3026891b75a6f0fcaedb5803d8597feeb5dd4550e6ccd42d71e
|
7
|
+
data.tar.gz: 3f7ce33b947edf5f801b872bfd3d30ae9f2a9b48275ebe1941d4052c04d52665ca829c610d25bc5bda10a515fcad2bff4fe76c6801c527e9ee3fd148d6a97d96
|
data/README.md
CHANGED
@@ -19,13 +19,13 @@ $ bundle
|
|
19
19
|
## Usage
|
20
20
|
|
21
21
|
To encrypt a URL in your code instantiate a PDFBucket object and use its generate_url method.
|
22
|
-
The new pdf_bucket will use `PDF_BUCKET_API_KEY`, `PDF_BUCKET_API_SECRET`, `PDF_BUCKET_API_HOST` (default is `api.pdfbucket.
|
22
|
+
The new pdf_bucket will use `PDF_BUCKET_API_KEY`, `PDF_BUCKET_API_SECRET`, `PDF_BUCKET_API_HOST` (default is `api.pdfbucket.io`) ENV vars:
|
23
23
|
|
24
24
|
```ruby
|
25
25
|
pdf_bucket = PDFBucket::PDFBucket.new
|
26
26
|
|
27
27
|
# You can also set any the api params, overwriting then ENV vars like this
|
28
|
-
other_pdf_bucket = PDFBucket::PDFBucket.new(api_key: '123', api_secret: '321', api_host: 'api.
|
28
|
+
other_pdf_bucket = PDFBucket::PDFBucket.new(api_key: '123', api_secret: '321', api_host: 'api.example.com')
|
29
29
|
|
30
30
|
# And you get the encrypted_url using the generate_url method
|
31
31
|
encrypted_url = pdf_bucket.generate_url('http://example.com', :landscape, :a4, '2px', '0.7')
|
data/lib/pdfbucket.rb
CHANGED
data/lib/pdfbucket/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfbucket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanrodari
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|