ops_team 1.16.1 → 1.16.2.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/app_config.rb +8 -1
  3. data/ops_team.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 739442315b1fe6daa3eef0a5b6a573a6cdcaaee618913b487785e5acc495145e
4
- data.tar.gz: 7f09411cc3d402fd7b8db169a775624aefb49ee9f1c98efefdb8d4013cbf6438
3
+ metadata.gz: bd7131ba53f5a0107291d43ef492d24c0a2d7ce52189b12a1305b9099a4aa0b1
4
+ data.tar.gz: cad1bc08a4197e8f3c192d91a9799d027509f22ea4c13a765b7c311cb42fa452
5
5
  SHA512:
6
- metadata.gz: 4c279082f575a0b841c55e5fcc00b3f358c252be137b5c61b8f1f9c9250904e648791806cde7dba7c61b42bce74db4b859cb0ced6d1b170396b7984d99c530fa
7
- data.tar.gz: c7634b28008e6baad1122008c779ff42f4b6ce819aa802dc80ffeee305727447c6a67c2a0e65024fb97dc32a117677b677b7ed8191a8891e7a552ead80a186d0
6
+ metadata.gz: 45cf653e1ee7340c2ed863ac40591736bfc5c0137a7b2a8fd2ae52cb8d75c4e95cbb94ad18fecfb73f32e4b174a5a3f3ba8bc62ed347ab84bd64e4b8f6cc7475
7
+ data.tar.gz: 1424ede51fc754627d4ffef66aa6ef817c7e727a870f0a0e685d433d868b164f98f67f350fe1dd149109a990a3fd05b60e99a928c2b18dcb0fb88b5303ef8c50
data/lib/app_config.rb CHANGED
@@ -42,7 +42,14 @@ class AppConfig
42
42
  private
43
43
 
44
44
  def config
45
- @config ||= file_contents ? YAML.safe_load(file_contents) : {}
45
+ @config ||= if file_contents == ""
46
+ Output.warn("Config file '#{@filename}' exists but is empty.")
47
+ {}
48
+ elsif file_contents
49
+ YAML.safe_load(file_contents)
50
+ else
51
+ {}
52
+ end
46
53
  rescue YAML::SyntaxError => e
47
54
  raise ParsingError, "#{@filename}: #{e}"
48
55
  end
data/ops_team.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '1.16.1'
5
+ s.version = '1.16.2.rc1'
6
6
  s.authors = [
7
7
  'nickthecook@gmail.com'
8
8
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.1
4
+ version: 1.16.2.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -247,9 +247,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
247
  version: '2.5'
248
248
  required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  requirements:
250
- - - ">="
250
+ - - ">"
251
251
  - !ruby/object:Gem::Version
252
- version: '0'
252
+ version: 1.3.1
253
253
  requirements: []
254
254
  rubygems_version: 3.2.15
255
255
  signing_key: