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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6282183f873d4f4e32d0c0819c43ffe20ce53dbabd71bb44ba26b362edbaf9d7
4
- data.tar.gz: 1aa18874f4bbfc9f1ac395b357babb98f3884f577f2fe8d3d81d7f647cbfc2ba
3
+ metadata.gz: 7388641e5f74990b482a145d6d096ae5612ebb2b8f8def9761c73d193b56c492
4
+ data.tar.gz: 82fa2ae894923ca9d983b7d082bdd4b33fdab7cfb23f96ba3b8c3ab93052e04a
5
5
  SHA512:
6
- metadata.gz: 7e84fdd24a2efa2eb464d85df3a3ec3b8370d204bb4d64676dcb953e2777bb34d3bc0807eb0e2fc9c65ffb167911ce89a3c3606a7bcb66d20698b0e617801f81
7
- data.tar.gz: 9b6f1b82866c8ff0d96af65439ed0a2b6f96592ecde63187b1d91ed27a513d92a3f57077c06862e2582f31342c62f18dabed2f08577a067f358760e5e07161c4
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:` = no restriction.
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Json2sql
4
- VERSION = "1.0.13"
4
+ VERSION = "1.0.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json2sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago da Silva