katalyst-google-apis 1.0.5 → 1.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51f52aae567e3a56c4527cddaf6b18846e2c6e3ea67ee71c163688d1f6e8da72
4
- data.tar.gz: 5d55b8005640afd0c0e4e415d7bb898a2239635e29c3cd0225058536c95efb0b
3
+ metadata.gz: 9802ce92e121059dcd7f6871d7959851db21471739bbd3489769731fbd84bf3c
4
+ data.tar.gz: f759a549e162e91258481274c603f594e59553e6f9b5dc2186912e1adc8f1149
5
5
  SHA512:
6
- metadata.gz: 030e7a79106cc553df2962296d937b921ce51fd2247bf81ff8bc44f9628f6b460cbaee2d866cecf2e3dc204e2091c37e188028352a7442030a82cd3ac19792bf
7
- data.tar.gz: 17952c835ecd2ded66860405972345db0d5252eaf0f18d0ff41b209a378cac06451b4cf6d97d90d8246dc24ad9c5b76158cb75be36a7f025ee1bac939cf623f1
6
+ metadata.gz: 23c8f9427fd91bfecd9b087a4251e5af53fd95eaedee09d46ff6c3ab3881d54f442e22b12e3e2565100050af61aea95152f1dd298fab3bdb2bb0ebd057ebc057
7
+ data.tar.gz: c82a3865797c7c22f575847bccf42b53ac7b2edf9d85577328a7d4b5c23dceafa364a59186bb0fa6dcafd8051016ea854ebfb19734142b3e830682c293bed751
@@ -43,7 +43,7 @@ module Katalyst
43
43
  include ActiveModel::Model
44
44
  include ActiveModel::Attributes
45
45
 
46
- attribute :scope, :string, default: "https://www.googleapis.com/auth/cloud-platform"
46
+ attribute :scope, :string
47
47
  attribute :service_account_email, :string
48
48
  attribute :project_number, :integer
49
49
  attribute :identity_pool, :string
@@ -18,12 +18,14 @@ module Katalyst
18
18
  yield(config)
19
19
  end
20
20
 
21
- def credentials
22
- @credentials ||= Credentials.new(
21
+ def credentials(scope: "https://www.googleapis.com/auth/cloud-platform")
22
+ @credentials ||= {}
23
+ @credentials[scope] ||= Credentials.new(
23
24
  project_number: config.project_number,
24
25
  service_account_email: config.service_account_email,
25
26
  identity_pool: config.identity_pool,
26
27
  identity_provider: config.identity_provider,
28
+ scope:,
27
29
  )
28
30
  end
29
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-google-apis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive