rcloadenv 0.0.1.rc3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +8 -6
- data/lib/rcloadenv/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/lib/rcloadenv/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/lib/rcloadenv/google/apis/runtimeconfig_v1beta1/representations.rb +1 -1
- data/lib/rcloadenv/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/lib/rcloadenv/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e86f6b6e00f83735f8e96c6c4ea6d8f122738bb8
|
4
|
+
data.tar.gz: 563b7820af9bb0ae172e259d14a4d01509893677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b389720072296d02bda325ed32616d6aed0c43211774ad21bc5c55f9d0be90a58a61f80e327952fcc1b7e3bfb86b73fd2ae56c3364e7571bd81f0cfafa6ed96
|
7
|
+
data.tar.gz: 84d56a2ed11e849ef8c3edd2aace91ca7d02f3ac21f79c79337d617eb417c5fb2e0ee7381730c64b511f900e721ca6c6da1e0c3f321f615e986a4ef5e41d0d20
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,10 +11,11 @@ Install the gem using
|
|
11
11
|
|
12
12
|
gem install rcloadenv
|
13
13
|
|
14
|
-
Alternately, include "rcloadenv" in your
|
14
|
+
Alternately, include "rcloadenv" in your application's Gemfile.
|
15
15
|
|
16
16
|
You may then invoke the "rcloadenv" binary. You must pass the name of the
|
17
|
-
runtime config resource, and then the command to execute. For example
|
17
|
+
runtime config resource, and then the command to execute. For example, if
|
18
|
+
the gem is present in the bundle for your Rails app, you can execute:
|
18
19
|
|
19
20
|
bundle exec rcloadenv my-config -- bin/rails s
|
20
21
|
|
@@ -29,9 +30,10 @@ example:
|
|
29
30
|
bundle exec rcloadenv --project=my-project my-config -- bin/rails s
|
30
31
|
|
31
32
|
Run `rcloadenv --help` for more information on flags you can set.
|
33
|
+
|
32
34
|
When not running on GCP, credentials are obtained from
|
33
|
-
[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials)
|
34
|
-
so you can the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or
|
35
|
+
[Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials),
|
36
|
+
so you can set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or
|
35
37
|
configure `gcloud auth`.
|
36
38
|
|
37
39
|
## Example: Loading the Rails SECRET_KEY_BASE in Google App Engine
|
@@ -89,9 +91,9 @@ service, and use `rcloadenv` to load it into the Rails app. Here's how.
|
|
89
91
|
5. Use the gcloud command line to set `SECRET_KEY_BASE` in your configuration.
|
90
92
|
|
91
93
|
gcloud beta runtime-config configs variables set \
|
92
|
-
SECRET_KEY_BASE
|
94
|
+
SECRET_KEY_BASE abcd1234 --is-text --config-name=my-config
|
93
95
|
|
94
|
-
Replace `my-config` with the name of your configuration, and `
|
96
|
+
Replace `my-config` with the name of your configuration, and `abcd1234`
|
95
97
|
with the secret key that you generated above.
|
96
98
|
|
97
99
|
6. Add the `rcloadenv` gem to your Gemfile, and run `bundle install` to update
|
data/lib/rcloadenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcloadenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|
@@ -161,9 +161,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: 2.0.0
|
162
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - "
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: '0'
|
167
167
|
requirements: []
|
168
168
|
rubyforge_project:
|
169
169
|
rubygems_version: 2.6.11
|