kennel 1.61.2 → 1.61.3
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/lib/kennel/models/record.rb +4 -3
- data/lib/kennel/syncer.rb +2 -1
- data/lib/kennel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4fee65e3dbf0bb1646062d6a308050c4a92bcc7e65148e72d1ae3b58a9f3671c
|
|
4
|
+
data.tar.gz: 566a1a1f668a99ff129f3fb51f3e29d1803e95310cc56892bc1b81b5c2d06de7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fbdb4dbd6f2446dd2644e4583bf3f85f1e19e3d1d50258e8865a286f1fda26039def220d433d9af3d130bee8ad39e2d31e1258ca68f876804ab70c28784e005
|
|
7
|
+
data.tar.gz: 1168eab35eb98e39db85910d1c1d83c436cfb0cb5b574beb61fafa0c429040570d5baa8d3a5e846a35834d5df6ee600d6a130104f5863213f284b94dd05e777f
|
data/lib/kennel/models/record.rb
CHANGED
|
@@ -57,16 +57,17 @@ module Kennel
|
|
|
57
57
|
def resolve_link(id, id_map, force: false)
|
|
58
58
|
found = id_map[id]
|
|
59
59
|
return found if found && found != :new
|
|
60
|
+
api_resource = self.class.api_resource
|
|
60
61
|
|
|
61
62
|
if found == :new
|
|
62
63
|
if force
|
|
63
|
-
invalid! "
|
|
64
|
+
invalid! "#{api_resource.capitalize} #{id} will be created in the current run and can only be used after that"
|
|
64
65
|
else
|
|
65
|
-
Kennel.err.puts "
|
|
66
|
+
Kennel.err.puts "#{api_resource.capitalize} #{id} will be created in the current run, the next run will link it properly"
|
|
66
67
|
Kennel::MISSING_ID
|
|
67
68
|
end
|
|
68
69
|
else
|
|
69
|
-
invalid! "Unable to find
|
|
70
|
+
invalid! "Unable to find #{api_resource} #{id} (does not exist and is not being created by the current run)"
|
|
70
71
|
end
|
|
71
72
|
end
|
|
72
73
|
|
data/lib/kennel/syncer.rb
CHANGED
|
@@ -147,7 +147,8 @@ module Kennel
|
|
|
147
147
|
def print_plan(step, list, color)
|
|
148
148
|
return if list.empty?
|
|
149
149
|
list.each do |_, e, a, diff|
|
|
150
|
-
|
|
150
|
+
api_resource = (e ? e.class.api_resource : a.fetch(:api_resource))
|
|
151
|
+
Kennel.out.puts Utils.color(color, "#{step} #{api_resource} #{tracking_id(e&.as_json || a)}")
|
|
151
152
|
print_diff(diff) if diff # only for update
|
|
152
153
|
end
|
|
153
154
|
end
|
data/lib/kennel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kennel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.61.
|
|
4
|
+
version: 1.61.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Grosser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
102
|
version: '0'
|
|
103
103
|
requirements: []
|
|
104
104
|
rubyforge_project:
|
|
105
|
-
rubygems_version: 2.7.6
|
|
105
|
+
rubygems_version: 2.7.6.2
|
|
106
106
|
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Keep datadog monitors/dashboards/etc in version control, avoid chaotic management
|