google-cloud-env 1.4.0 → 1.5.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 +6 -0
- data/CONTRIBUTING.md +31 -70
- data/LICENSE +2 -2
- data/README.md +2 -2
- data/lib/google/cloud/env/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cc8828b19648ebf3ddbf107e0752ca0dfec854602d7f295ee5a96a3f9a87552
|
4
|
+
data.tar.gz: 4cd7a33f479ea15c423695b4652ce82f1f411d33954b8102dea32aef19ee7b6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2ec60debebb19dfb788b07124fec5855ce2baf795f7d97a9e2d0c43bbcc0a3f599d8a84e85592283dda5a1b735c170fbfd702fb48fdd5645e469340a684c864
|
7
|
+
data.tar.gz: 1615868a96d4f5d3ebbc064b99e29b79cc3446a253c1becd94abe27c71a6e60c1e59b4b2b3ec9a5c4bff52ff1f1c6fbd4acaf60a9b55ea7c4aa5e4310b633630
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Contributing to Google Cloud
|
1
|
+
# Contributing to Google Cloud Ruby Client
|
2
2
|
|
3
3
|
1. **Sign one of the contributor license agreements below.**
|
4
4
|
2. Fork the repo, develop and test your code changes.
|
@@ -6,105 +6,66 @@
|
|
6
6
|
|
7
7
|
## Contributor License Agreements
|
8
8
|
|
9
|
-
Before we can accept your pull requests you'll need to sign a Contributor
|
10
|
-
License Agreement (CLA):
|
9
|
+
Before we can accept your pull requests you'll need to sign a Contributor License Agreement (CLA):
|
11
10
|
|
12
|
-
- **If you are an individual writing original source code** and **you own the
|
13
|
-
|
14
|
-
CLA](https://developers.google.com/open-source/cla/individual).
|
15
|
-
- **If you work for a company that wants to allow you to contribute your work**,
|
16
|
-
then you'll need to sign a [corporate
|
17
|
-
CLA](https://developers.google.com/open-source/cla/corporate).
|
11
|
+
- **If you are an individual writing original source code** and **you own the intellectual property**, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual).
|
12
|
+
- **If you work for a company that wants to allow you to contribute your work**, then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate).
|
18
13
|
|
19
|
-
You can sign these electronically (just scroll to the bottom). After that, we'll
|
20
|
-
be able to accept your pull requests.
|
14
|
+
You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests.
|
21
15
|
|
22
16
|
## Setup
|
23
17
|
|
24
|
-
In order to use the google-cloud-
|
25
|
-
|
18
|
+
In order to use the google-cloud-ruby console and run the project's tests, there is a
|
19
|
+
small amount of setup:
|
26
20
|
|
27
|
-
1.
|
28
|
-
|
29
|
-
[rbenv](https://github.com/rbenv/rbenv), or
|
30
|
-
[chruby](https://github.com/postmodern/chruby).
|
21
|
+
1. Install Ruby.
|
22
|
+
google-cloud-env requires Ruby 2.4+. You may choose to manage your Ruby and gem installations with [RVM](https://rvm.io/), [rbenv](https://github.com/rbenv/rbenv), or [chruby](https://github.com/postmodern/chruby).
|
31
23
|
|
32
|
-
2.
|
24
|
+
2. Install [Bundler](http://bundler.io/).
|
33
25
|
|
34
|
-
|
35
|
-
|
36
|
-
|
26
|
+
```sh
|
27
|
+
$ gem install bundler
|
28
|
+
```
|
37
29
|
|
38
|
-
3.
|
30
|
+
3. Install the project dependencies.
|
39
31
|
|
40
|
-
|
41
|
-
|
42
|
-
|
32
|
+
```sh
|
33
|
+
$ bundle install
|
34
|
+
```
|
43
35
|
|
44
|
-
|
36
|
+
## Tests
|
45
37
|
|
46
|
-
|
47
|
-
$ cd google-cloud-env/
|
48
|
-
$ bundle exec rake bundleupdate
|
49
|
-
```
|
38
|
+
All contributions should include tests that ensure the contributed code behaves as expected.
|
50
39
|
|
51
|
-
|
52
|
-
|
53
|
-
Tests are very important part of google-cloud-env. All contributions
|
54
|
-
should include tests that ensure the contributed code behaves as expected.
|
55
|
-
|
56
|
-
To run the unit tests, documentation tests, and code style checks together for a
|
57
|
-
package:
|
40
|
+
To run the tests and code style checks together:
|
58
41
|
|
59
42
|
``` sh
|
60
|
-
$ cd google-cloud-env/
|
61
43
|
$ bundle exec rake ci
|
62
44
|
```
|
63
45
|
|
64
|
-
|
65
|
-
its handy alias, `rake ci:a`.
|
66
|
-
|
67
|
-
### hosting environment Unit Tests
|
46
|
+
### Unit Tests
|
68
47
|
|
48
|
+
The project uses the [minitest](https://github.com/seattlerb/minitest) library, including [specs](https://github.com/seattlerb/minitest#specs), [mocks](https://github.com/seattlerb/minitest#mocks) and [minitest-autotest](https://github.com/seattlerb/minitest-autotest).
|
69
49
|
|
70
|
-
|
71
|
-
including [specs](https://github.com/seattlerb/minitest#specs),
|
72
|
-
[mocks](https://github.com/seattlerb/minitest#mocks) and
|
73
|
-
[minitest-autotest](https://github.com/seattlerb/minitest-autotest).
|
74
|
-
|
75
|
-
To run the hosting environment unit tests:
|
50
|
+
To run the unit tests for a package:
|
76
51
|
|
77
52
|
``` sh
|
78
|
-
$ cd google-cloud-env/
|
79
53
|
$ bundle exec rake test
|
80
54
|
```
|
81
55
|
|
82
|
-
###
|
56
|
+
### Coding Style
|
83
57
|
|
84
|
-
|
85
|
-
[YARD](https://github.com/lsegal/yard)-based documentation.
|
58
|
+
Please follow the established coding style in the library. The style is is largely based on [The Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide) with a few exceptions based on seattle-style:
|
86
59
|
|
87
|
-
|
88
|
-
|
89
|
-
[yard-doctest](https://github.com/p0deje/yard-doctest), is based on the
|
90
|
-
project's unit test library, [minitest](https://github.com/seattlerb/minitest).
|
60
|
+
* Avoid parenthesis when possible, including in method definitions.
|
61
|
+
* Always use double quotes strings. ([Option B](https://github.com/bbatsov/ruby-style-guide#strings))
|
91
62
|
|
92
|
-
|
63
|
+
You can check your code against these rules by running Rubocop like so:
|
93
64
|
|
94
|
-
```
|
95
|
-
$
|
96
|
-
$ bundle exec rake doctest
|
65
|
+
```sh
|
66
|
+
$ bundle exec rake rubocop
|
97
67
|
```
|
98
68
|
|
99
|
-
If you add, remove or modify documentation examples when working on a pull
|
100
|
-
request, you may need to update the setup for the tests. The stubs and mocks
|
101
|
-
required to run the tests are located in `support/doctest_helper.rb`. Please
|
102
|
-
note that much of the setup is matched by the title of the
|
103
|
-
[`@example`](http://www.rubydoc.info/gems/yard/file/docs/Tags.md#example) tag.
|
104
|
-
If you alter an example's title, you may encounter breaking tests.
|
105
|
-
|
106
69
|
## Code of Conduct
|
107
70
|
|
108
|
-
Please note that this project is released with a Contributor Code of Conduct. By
|
109
|
-
participating in this project you agree to abide by its terms. See
|
110
|
-
{file:CODE_OF_CONDUCT.md Code of Conduct} for more information.
|
71
|
+
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See [Code of Conduct](CODE_OF_CONDUCT.md) for more information.
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Apache License
|
2
2
|
Version 2.0, January 2004
|
3
|
-
|
3
|
+
http://www.apache.org/licenses/
|
4
4
|
|
5
5
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
6
|
|
@@ -192,7 +192,7 @@
|
|
192
192
|
you may not use this file except in compliance with the License.
|
193
193
|
You may obtain a copy of the License at
|
194
194
|
|
195
|
-
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
196
196
|
|
197
197
|
Unless required by applicable law or agreed to in writing, software
|
198
198
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/README.md
CHANGED
@@ -7,11 +7,11 @@ apps running on Google Cloud Platform.
|
|
7
7
|
|
8
8
|
## Supported Ruby Versions
|
9
9
|
|
10
|
-
This library is supported on Ruby 2.
|
10
|
+
This library is supported on Ruby 2.5+.
|
11
11
|
|
12
12
|
Google provides official support for Ruby versions that are actively supported
|
13
13
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or in
|
14
|
-
security maintenance, and not end of life. Currently, this means Ruby 2.
|
14
|
+
security maintenance, and not end of life. Currently, this means Ruby 2.5 and
|
15
15
|
later. Older versions of Ruby _may_ still work, but are unsupported and not
|
16
16
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
17
17
|
about the Ruby support schedule.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-env
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.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:
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,14 +201,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
requirements:
|
202
202
|
- - ">="
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: '2.
|
204
|
+
version: '2.5'
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.2.13
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Google Cloud Platform hosting environment information.
|