codebuild 0.6.4 → 0.6.5
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/codebuild/setting.rb +7 -4
- data/lib/codebuild/version.rb +1 -1
- data/lib/template/project/project.rb.tt +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45344565759c1d85ba0b80dc0608ceb2db6d322ee4212ea5fb2a5f314bc0661b
|
|
4
|
+
data.tar.gz: d6f1469583b95df2bed15565e282eca5636c4a6f66f9d19218f63222f57237ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 107561ca684953c437669580de3932b456e464f7feb90b005a549cb70f1039738b14ac4d603597adbf41369fed37de83684b2d444e4c1f65b1f81cd42658de17
|
|
7
|
+
data.tar.gz: e1a2c8975187ad9c73d1433de36cfbbc64f1a86a21d3ec5ce53d889a908d7c8ffe8a7f5d872deba089cba2c3f13d71f4af8ab932ea54b7f68a352882d389158c
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
|
5
5
|
|
|
6
|
+
## [0.6.5]
|
|
7
|
+
- allow no settings.yml file
|
|
8
|
+
|
|
6
9
|
## [0.6.4]
|
|
7
10
|
- fix vendor gem dependencies in gem package
|
|
8
11
|
|
data/lib/codebuild/setting.rb
CHANGED
|
@@ -34,10 +34,13 @@ module Codebuild
|
|
|
34
34
|
# When ufo is determined from settings it should not called Codebuild.env since that in turn calls
|
|
35
35
|
# Settings.new.data which can then cause an infinite loop.
|
|
36
36
|
def cb_env
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
path = "#{cb_root}/.codebuild/settings.yml"
|
|
38
|
+
if File.exist?(path)
|
|
39
|
+
settings = YAML.load_file(path)
|
|
40
|
+
env = settings.find do |_env, section|
|
|
41
|
+
section ||= {}
|
|
42
|
+
ENV['AWS_PROFILE'] && ENV['AWS_PROFILE'] == section['aws_profile']
|
|
43
|
+
end
|
|
41
44
|
end
|
|
42
45
|
|
|
43
46
|
cb_env = env.first if env
|
data/lib/codebuild/version.rb
CHANGED
|
@@ -14,7 +14,7 @@ environment_variables(
|
|
|
14
14
|
# puts "full_project_name #{full_project_name}" # demo-web-development
|
|
15
15
|
|
|
16
16
|
# Uncomment to enable github webhook, the GitHub oauth token needs admin:repo_hook permissions
|
|
17
|
-
# Refer to https://
|
|
17
|
+
# Refer to https://codebuild.cloud/docs/github_oauth/
|
|
18
18
|
# triggers(webhook: true)
|
|
19
19
|
# Another example:
|
|
20
20
|
# Docs: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
|
|
@@ -26,4 +26,4 @@ environment_variables(
|
|
|
26
26
|
# )
|
|
27
27
|
|
|
28
28
|
# Shorthand to enable all local cache modes
|
|
29
|
-
# local_cache(true)
|
|
29
|
+
# local_cache(true)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: codebuild
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|