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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c123404efb70278b8339e907fd8e3a6c64db03d8b2dadf105cc37a81a7abf172
4
- data.tar.gz: 6b9719260f7071a262d0c7518760354036d58863a37911acb09b24ab420a4458
3
+ metadata.gz: fd42ad0d28f30d92c080b40612bacd0f31fb1bc1148845c62cb425596c1fcb6e
4
+ data.tar.gz: f13744dd16439f8bdf96bc77b878f6b97972f7f26307a775419cb5ba7845cfb9
5
5
  SHA512:
6
- metadata.gz: 0bd503bf7b0a8750a8fb83a444bc0c7ac30eef8305f0ea2cedf87b38601fdd10fe700356456112395cfc8b5a83103d07fb0f68e8ce0deb542bc0b90d3d399625
7
- data.tar.gz: 3c6a28a9204a77d0f9328de11b8e02bd1a7380eeda5e3efb11593951a3cda0148c75ed7cf2c61f1e9d6c1b1711adbd41dc7d00188e35a06777f323aa2b883de7
6
+ metadata.gz: 948aa4bcc5e24b531dc2d4708411d1c2bf0a67fd51466b063e53e89ef88d11053d721e9d407ec0c72d451e127b382ddd6beb40fc8dad33c03a2db8578a6e77df
7
+ data.tar.gz: 8bef79deec940fb9b359c6b25be2d0ae8ea44e13aaecc9a399f77765bb6af244aa8f7e0db5ea0f253f11c4675b1bd257c2106353a4e862854b1d518b8cf1201b
@@ -38,7 +38,9 @@ module Cloudrunpdf
38
38
  private
39
39
 
40
40
  def retrieve_authentication_token
41
- if Rails.env.in?(['development', 'test'])
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(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cloudrunpdf
4
- VERSION = "0.1.2"
4
+ VERSION = '0.1.3'
5
5
  end
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.2
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-10 00:00:00.000000000 Z
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.32
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: []