codebuild 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 695f236eeb7863aeaba5303ee06f684faef3baf7b3f6981dd33846c0257b2680
4
- data.tar.gz: a86ee5e38adae8337da9ae4d615434a83a7c7bc9b4e04ad3ad703ca77a62da40
3
+ metadata.gz: 45344565759c1d85ba0b80dc0608ceb2db6d322ee4212ea5fb2a5f314bc0661b
4
+ data.tar.gz: d6f1469583b95df2bed15565e282eca5636c4a6f66f9d19218f63222f57237ff
5
5
  SHA512:
6
- metadata.gz: 4bc2c08398900cc33f1bff9205e673b0aae7c051eeddd29a9999212cd1abd107ddf610ccbb3a4e7b5a2448b8b76f0f8a978d3df834000b36c505f9c15abf0a6b
7
- data.tar.gz: c73e6436dd724bbd08ede3ca24c02dc2f65f8171314af3850bc7e715fe930f4b21f191407cb492331d03d39d3c2ef941320614b64c255d0513047d19e8ce5721
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
 
@@ -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
- settings = YAML.load_file("#{cb_root}/.codebuild/settings.yml")
38
- env = settings.find do |_env, section|
39
- section ||= {}
40
- ENV['AWS_PROFILE'] && ENV['AWS_PROFILE'] == section['aws_profile']
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
@@ -1,3 +1,3 @@
1
1
  module Codebuild
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
@@ -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://github.com/tongueroo/codebuild/blob/master/readme/github_oauth.md
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
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-09 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport