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: f21975a8fa7c70cc86652d785d716fecf06a041cf026ddce127e054b8d0c986e
4
- data.tar.gz: 44c0d4d9b04428595ddc3e65aeee23a3c25545eb79e30a30250ced459836e81c
3
+ metadata.gz: c2e1ad6d83dd4100ab40124b8bd6f7425bab0b935779fbc047cc405f3f2320bb
4
+ data.tar.gz: be6eef02674c9735e82e04eed7963d5c764d8d3b74188e99539b8fe71079573f
5
5
  SHA512:
6
- metadata.gz: 7a168d488512df3ef0255ed3b40411fc5558125795c4665dcb9cad05a17c691732a7cb369246ccbf60c8703951a6535fb3912dfb8c3847ab28c6ecfc7ae420e5
7
- data.tar.gz: 908b091ddb826197916a77a80d182ad1035586c653ca80ce7313e8e19d6c11256567f4593a99a59bad40d5b2690a8328055ff74a891c20856b734be296649bd7
6
+ metadata.gz: f121707edcf1e010f07c453e95cf3cb3e8811d499215b8f2fa38d0887a84353bee5f95a16cff2d2a5dbf2c5d9af9d430be42d7f3a79551a76f93094ca3a9b5e8
7
+ data.tar.gz: 0bd249257ae7fd676f7021291e0fd8eb33a19e85075034872f85fe54c28984e76a7ca570dcef894b7f4c81ebcea5b52390f2b9ef72a85e2e740a7749d1e64752
@@ -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: topological_inventory_core_development
14
+ database: topological_inventory_development
12
15
  min_messages: notice
13
16
 
14
17
  test:
15
18
  <<: *default
16
- database: topological_inventory_core_test
19
+ database: topological_inventory_test
17
20
 
18
21
  production:
19
22
  <<: *default
20
- database: topological_inventory_core_production
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
 
@@ -1,5 +1,5 @@
1
1
  module TopologicalInventory
2
2
  module Core
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
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.2
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-28 00:00:00.000000000 Z
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.1.2
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.