flagger 2.0.2 → 2.0.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/flagger/cloud.rb +12 -0
- data/lib/flagger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8e3495283b3a6e0a2c23d51b3c7bd974200991d8526d5c3188f019d64b49535
|
|
4
|
+
data.tar.gz: b9daf163342281ad23fa4dbe746a842966520ee5e7b4b6b68dff2d610d0feea4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c4a6f94d764a5c4a5b30cf27075eebb085c0a1aa3ed8e0397e5fcc26eea334afb977259cac75ab6d5c68d1ffa3682d90819d6d974209e9effadbf392fee89f66
|
|
7
|
+
data.tar.gz: 8ebfaaaa51b85ecae3badec839cb0c5a216b6c7655befe7c7bdc83945b0071473e77850643303ea33e84a6f565614d9054b3567c4e7a96d57595fc37ee4f4c77
|
data/lib/flagger/cloud.rb
CHANGED
|
@@ -212,11 +212,23 @@ module FlaggerEnvironments
|
|
|
212
212
|
maybe_ingest()
|
|
213
213
|
end
|
|
214
214
|
|
|
215
|
+
def stringify_keys(hash)
|
|
216
|
+
if hash.is_a?(Hash) then
|
|
217
|
+
hash.map {|k, v|
|
|
218
|
+
[k.to_s, stringify_keys(v)]
|
|
219
|
+
}.to_h
|
|
220
|
+
else
|
|
221
|
+
hash
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
215
225
|
def identify_entity(entity_json)
|
|
216
226
|
if !entity_json.is_a?(Hash) then
|
|
217
227
|
STDERR.puts 'Entity must be a hash'
|
|
218
228
|
nil
|
|
219
229
|
else
|
|
230
|
+
entity_json = stringify_keys(entity_json)
|
|
231
|
+
|
|
220
232
|
entity = if entity_json['is_group'] then
|
|
221
233
|
FlaggerModels::GroupEntity.new(entity_json)
|
|
222
234
|
else
|
data/lib/flagger/version.rb
CHANGED