ops_team 1.16.1 → 1.17.0.rc1

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: 739442315b1fe6daa3eef0a5b6a573a6cdcaaee618913b487785e5acc495145e
4
- data.tar.gz: 7f09411cc3d402fd7b8db169a775624aefb49ee9f1c98efefdb8d4013cbf6438
3
+ metadata.gz: 41d3d1e3618c5fa573c9e0ed7f246df4f94e3e7931397fc2cd7ce0729cefdb98
4
+ data.tar.gz: be587cf7f46df544c7514dbff62f691c2a6561267a2ab36cace41c320ca58f64
5
5
  SHA512:
6
- metadata.gz: 4c279082f575a0b841c55e5fcc00b3f358c252be137b5c61b8f1f9c9250904e648791806cde7dba7c61b42bce74db4b859cb0ced6d1b170396b7984d99c530fa
7
- data.tar.gz: c7634b28008e6baad1122008c779ff42f4b6ce819aa802dc80ffeee305727447c6a67c2a0e65024fb97dc32a117677b677b7ed8191a8891e7a552ead80a186d0
6
+ metadata.gz: 514f3173b3f41421e5d7c412115f22423d1e4f85f51722517a1715a3fcda318ea5321d89d26132fc2ba90b28b805cc31dd8b3bab2b6d5ac0de060f4ac1a6ecbb
7
+ data.tar.gz: d9b69956336d107fef0d6c8e7d52db8c9f07d69b1b57962f4f7c9999285938a16019c22744205b1ed8807e27d10924b3493a537e60cdbffcf99b9d4c0f6c15ee
data/lib/action.rb CHANGED
@@ -36,6 +36,8 @@ class Action
36
36
  end
37
37
 
38
38
  def command
39
+ return @config if @config.is_a?(String)
40
+
39
41
  @config["command"]
40
42
  end
41
43
 
@@ -55,7 +57,7 @@ class Action
55
57
  @config_errors ||= begin
56
58
  errors = []
57
59
 
58
- errors << "No 'command' specified in 'action'." unless @config['command']
60
+ errors << "No 'command' specified in 'action'." unless command
59
61
 
60
62
  errors
61
63
  end
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.17.0.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.17.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -247,11 +247,11 @@ 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
- rubygems_version: 3.2.15
254
+ rubygems_version: 3.1.6
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: ops_team handles basic automation for your project, driven by self-documenting