topological_inventory-core 1.1.2 → 1.1.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2e1ad6d83dd4100ab40124b8bd6f7425bab0b935779fbc047cc405f3f2320bb
|
|
4
|
+
data.tar.gz: be6eef02674c9735e82e04eed7963d5c764d8d3b74188e99539b8fe71079573f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f121707edcf1e010f07c453e95cf3cb3e8811d499215b8f2fa38d0887a84353bee5f95a16cff2d2a5dbf2c5d9af9d430be42d7f3a79551a76f93094ca3a9b5e8
|
|
7
|
+
data.tar.gz: 0bd249257ae7fd676f7021291e0fd8eb33a19e85075034872f85fe54c28984e76a7ca570dcef894b7f4c81ebcea5b52390f2b9ef72a85e2e740a7749d1e64752
|
data/config/database.yml
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
default: &default
|
|
2
2
|
adapter: postgresql
|
|
3
3
|
encoding: utf8
|
|
4
|
+
host: 127.0.0.1
|
|
5
|
+
port: 5432
|
|
4
6
|
username: root
|
|
7
|
+
password: buttons
|
|
5
8
|
pool: 5
|
|
6
9
|
wait_timeout: 5
|
|
7
10
|
min_messages: warning
|
|
8
11
|
|
|
9
12
|
development:
|
|
10
13
|
<<: *default
|
|
11
|
-
database:
|
|
14
|
+
database: topological_inventory_development
|
|
12
15
|
min_messages: notice
|
|
13
16
|
|
|
14
17
|
test:
|
|
15
18
|
<<: *default
|
|
16
|
-
database:
|
|
19
|
+
database: topological_inventory_test
|
|
17
20
|
|
|
18
21
|
production:
|
|
19
22
|
<<: *default
|
|
20
|
-
database:
|
|
23
|
+
database: topological_inventory_production
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
class ExtractTasksSourceRefFromContext < ActiveRecord::Migration[5.2]
|
|
2
2
|
def up
|
|
3
3
|
Task.find_each do |task|
|
|
4
|
+
if task.context.is_a?(String)
|
|
5
|
+
say "Found legacy data in Task #{task.id}, converting String to Hash..."
|
|
6
|
+
task.context = JSON.parse(task.context)
|
|
7
|
+
end
|
|
8
|
+
|
|
4
9
|
source_ref = task.context&.dig('service_instance', 'source_ref')
|
|
5
10
|
next if source_ref.nil?
|
|
6
11
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: topological_inventory-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Grare
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: acts_as_tenant
|
|
@@ -386,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
386
386
|
- !ruby/object:Gem::Version
|
|
387
387
|
version: '0'
|
|
388
388
|
requirements: []
|
|
389
|
-
rubygems_version: 3.
|
|
389
|
+
rubygems_version: 3.0.6
|
|
390
390
|
signing_key:
|
|
391
391
|
specification_version: 4
|
|
392
392
|
summary: Core Models and Schema for the Topological Inventory Service.
|