json2sql 1.0.13 → 1.0.14
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/json2sql/query_policy.rb +1 -3
- data/lib/json2sql/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: 7388641e5f74990b482a145d6d096ae5612ebb2b8f8def9761c73d193b56c492
|
|
4
|
+
data.tar.gz: 82fa2ae894923ca9d983b7d082bdd4b33fdab7cfb23f96ba3b8c3ab93052e04a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e109f0025272b5f8387b6d7f457cd0cd59d3271788b160bd7612f0130abf792d46cab329ead1474e8a201f7481a40f449a66d86f5db759c147eda3447411ffc6
|
|
7
|
+
data.tar.gz: ff26c02113459a4f8000ab6a59ab7013a1e22546d05fc901359e5b663de57ffc203b90a73c7288d1d737ace6e3385831199249502c24965715be7c8a27712ec1
|
|
@@ -5,7 +5,7 @@ module Json2sql
|
|
|
5
5
|
# Parameters:
|
|
6
6
|
# mode: :allow (default) — only tables listed in `tables:` are accessible.
|
|
7
7
|
# Tables absent from `tables:` are blocked entirely.
|
|
8
|
-
# Empty `tables:` =
|
|
8
|
+
# Empty `tables:` = all tables blocked.
|
|
9
9
|
# :deny — all tables pass. After column filtering, tables
|
|
10
10
|
# with no remaining accessible columns are removed.
|
|
11
11
|
# Same rule applies to children and parents.
|
|
@@ -106,8 +106,6 @@ module Json2sql
|
|
|
106
106
|
|
|
107
107
|
tables = config.is_a?(Hash) ? config : {}
|
|
108
108
|
|
|
109
|
-
return if tables.empty?
|
|
110
|
-
|
|
111
109
|
params.select! { |table, _| tables.key?(table) }
|
|
112
110
|
end
|
|
113
111
|
|
data/lib/json2sql/version.rb
CHANGED