train 1.6.3 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/train/transports/gcp.rb +9 -3
- data/lib/train/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5436721b1bcbe3b31c0b932b746c5025b3825e3f
|
4
|
+
data.tar.gz: f9fe4cade6e49ba1825127c299a2d9c5f552aac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50aa25d31056c2b834476d176d9f4eaec0e207b4927eca8c4f68be4fa37127bd201695154c6273f13db5ed96704b72f637c6d548d9c3c96e705c32292fafe816
|
7
|
+
data.tar.gz: 240972a00b73d6cddc5e24c36cf5ba0bfa41177999c4397fc588055b543de7145bf6ebadbd568c8a6f1ad11154cf93635ab143d04dd8a6ae383c51b37ecbd2c6
|
data/lib/train/transports/gcp.rb
CHANGED
@@ -14,7 +14,9 @@ module Train::Transports
|
|
14
14
|
name 'gcp'
|
15
15
|
|
16
16
|
# GCP will look automatically for the below env var for service accounts etc. :
|
17
|
-
option :google_application_credentials, required: false
|
17
|
+
option :google_application_credentials, required: false do
|
18
|
+
ENV['GOOGLE_APPLICATION_CREDENTIALS']
|
19
|
+
end
|
18
20
|
# see https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application
|
19
21
|
# In the absence of this, the client is expected to have already set up local credentials via:
|
20
22
|
# $ gcloud auth application-default login
|
@@ -22,8 +24,12 @@ module Train::Transports
|
|
22
24
|
# GCP projects can have default regions / zones set, see:
|
23
25
|
# https://cloud.google.com/compute/docs/regions-zones/changing-default-zone-region
|
24
26
|
# can also specify project via env var:
|
25
|
-
option :google_cloud_project, required: false
|
26
|
-
|
27
|
+
option :google_cloud_project, required: false do
|
28
|
+
ENV['GOOGLE_CLOUD_PROJECT']
|
29
|
+
end
|
30
|
+
option :google_super_admin_email, required: false do
|
31
|
+
ENV['GOOGLE_SUPER_ADMIN_EMAIL']
|
32
|
+
end
|
27
33
|
|
28
34
|
def connection(_ = nil)
|
29
35
|
@connection ||= Connection.new(@options)
|
data/lib/train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -34,14 +34,14 @@ dependencies:
|
|
34
34
|
name: mixlib-shellout
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '2.0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
@@ -304,7 +304,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
304
304
|
requirements:
|
305
305
|
- - ">="
|
306
306
|
- !ruby/object:Gem::Version
|
307
|
-
version: '2.
|
307
|
+
version: '2.3'
|
308
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
309
|
requirements:
|
310
310
|
- - ">="
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
314
|
rubyforge_project:
|
315
|
-
rubygems_version: 2.
|
315
|
+
rubygems_version: 2.6.14.3
|
316
316
|
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: Transport interface to talk to different backends.
|