jungle_path 0.0.15 → 0.0.16

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
  SHA1:
3
- metadata.gz: 4eb52d315417ae17e52f0f5ea2572caa5a294ed3
4
- data.tar.gz: 57f7a7df31b7ac7e2ddab756ea1dc1303cd7a44b
3
+ metadata.gz: 7d9153454854eef96655387491b61723f742deaf
4
+ data.tar.gz: 1478c43e1c855ebebcafe2dd6f2f023c424f5172
5
5
  SHA512:
6
- metadata.gz: 783267b10234d3082bdf1891abc3a1154672eb9fa3ddeeb6ccebe7ef85f803d84c17ddd30ee3948f5a8f09cd2fb8a6750e85d0211b15578e9f738cad3eb49cfe
7
- data.tar.gz: 9f25bb3f0dc97291d6db2e8a1984c148d47268c2487957370f6c4a0cadfdcd55da5c6c7f9e9190d9dd8373ce6b140a67ee432bff888b95bf425739eb45e2d604
6
+ metadata.gz: b12c4cd2b6b6eb403b2e8b3eaca2cbe1717304e12e40507890f8c34a202440bc2432c4ab0d09171a5ce88dd7a609dd214f4a0c691317ae5a5e8b9a7c5fb77091
7
+ data.tar.gz: c4c909588c08982046640d5e11858c5a249918f9b46fc73993ec080b9c50b4ab9a6892b157f417a004365895ba46d5f9b34631ceb1f4d189e6b993f9eb910c5f
@@ -1,5 +1,5 @@
1
1
  #require 'pp'
2
- require_relative 'jungle_path/gen/schema_tree'
2
+ require 'jungle_path/gen/schema_tree'
3
3
  require_relative '../config/config'
4
4
  require_relative '../schemas/schema'
5
5
 
@@ -38,7 +38,7 @@ module JunglePath
38
38
  tables.each do |v|
39
39
  #puts v.table_name.class
40
40
  #puts v.table_name
41
- next unless node_filter.allow?(v.table_name)
41
+ next unless node_filter == nil || node_filter.allow?(v.table_name)
42
42
 
43
43
  # build tables hash:
44
44
  root.tables_hash[v.table_name] = v
@@ -51,7 +51,7 @@ module JunglePath
51
51
  # make sub nodes for each column
52
52
  columns = v.columns_sequence_order
53
53
  columns.each do |column|
54
- next unless node_filter.allow?(v.table_name, column.name)
54
+ next unless node_filter == nil || node_filter.allow?(v.table_name, column.name)
55
55
  if column.foreign_key?
56
56
  name = column.name.to_s[0..-4].to_sym # cut off "..._id" from column name and use as node name.
57
57
  symbol = "->"
@@ -73,7 +73,7 @@ module JunglePath
73
73
 
74
74
  # make sub nodes for each table having a fk reference to this (the parent) table -- exclude self.
75
75
  tables.each do |child_table|
76
- next unless node_filter.allow?(child_table.table_name)
76
+ next unless node_filter == nil || node_filter.allow?(child_table.table_name)
77
77
  if v.table_name != child_table.table_name #nor own table
78
78
  fk_columns = child_table.foreign_key_columns_by_table_name[v.table_name]
79
79
  if fk_columns
@@ -1,3 +1,3 @@
1
1
  module JunglePath
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jungle_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael VanZant
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler