cloudrunpdf 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudrunpdf/builder.rb +3 -1
- data/lib/cloudrunpdf/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd42ad0d28f30d92c080b40612bacd0f31fb1bc1148845c62cb425596c1fcb6e
|
4
|
+
data.tar.gz: f13744dd16439f8bdf96bc77b878f6b97972f7f26307a775419cb5ba7845cfb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948aa4bcc5e24b531dc2d4708411d1c2bf0a67fd51466b063e53e89ef88d11053d721e9d407ec0c72d451e127b382ddd6beb40fc8dad33c03a2db8578a6e77df
|
7
|
+
data.tar.gz: 8bef79deec940fb9b359c6b25be2d0ae8ea44e13aaecc9a399f77765bb6af244aa8f7e0db5ea0f253f11c4675b1bd257c2106353a4e862854b1d518b8cf1201b
|
data/lib/cloudrunpdf/builder.rb
CHANGED
@@ -38,7 +38,9 @@ module Cloudrunpdf
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def retrieve_authentication_token
|
41
|
-
if
|
41
|
+
if ENV['GCLOUD_AUTH_TOKEN'].present?
|
42
|
+
@token ||= ENV['GCLOUD_AUTH_TOKEN']
|
43
|
+
elsif Rails.env.in?(['development', 'test'])
|
42
44
|
@token ||= `gcloud auth print-identity-token`.strip
|
43
45
|
else
|
44
46
|
@token ||= Faraday.get(
|
data/lib/cloudrunpdf/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudrunpdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bas Schoenmakers
|
8
8
|
- Jasper vd Berg
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-06
|
12
|
+
date: 2022-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: combine_pdf
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
|
-
description:
|
28
|
+
description:
|
29
29
|
email:
|
30
30
|
- bas.schoenmakers@remarkgroup.com
|
31
31
|
- jasper.vandenberg@remarkgroup.com
|
@@ -51,7 +51,7 @@ licenses:
|
|
51
51
|
metadata:
|
52
52
|
homepage_uri: https://remarkgroup.com
|
53
53
|
rubygems_mfa_required: 'true'
|
54
|
-
post_install_message:
|
54
|
+
post_install_message:
|
55
55
|
rdoc_options: []
|
56
56
|
require_paths:
|
57
57
|
- lib
|
@@ -66,8 +66,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubygems_version: 3.2.
|
70
|
-
signing_key:
|
69
|
+
rubygems_version: 3.2.33
|
70
|
+
signing_key:
|
71
71
|
specification_version: 4
|
72
72
|
summary: Generate PDF with Google Cloud Function.
|
73
73
|
test_files: []
|