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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d9153454854eef96655387491b61723f742deaf
|
4
|
+
data.tar.gz: 1478c43e1c855ebebcafe2dd6f2f023c424f5172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12c4cd2b6b6eb403b2e8b3eaca2cbe1717304e12e40507890f8c34a202440bc2432c4ab0d09171a5ce88dd7a609dd214f4a0c691317ae5a5e8b9a7c5fb77091
|
7
|
+
data.tar.gz: c4c909588c08982046640d5e11858c5a249918f9b46fc73993ec080b9c50b4ab9a6892b157f417a004365895ba46d5f9b34631ceb1f4d189e6b993f9eb910c5f
|
@@ -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
|
data/lib/jungle_path/version.rb
CHANGED
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.
|
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
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|