mysql_genius 0.4.0 → 0.4.1
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/CHANGELOG.md +5 -0
- data/app/controllers/mysql_genius/queries_controller.rb +10 -0
- data/lib/mysql_genius/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: b7858ff8adbac9ab758eee1f82b0302f67cc09357ad087f3a3102a6646307f9d
|
|
4
|
+
data.tar.gz: 72053d61ff33d5fbf986a7a60445e36ae821ec9c2368ef4c9a0e4768636cb6ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dd7d033566d1ba8112253768dd491a5083f2daf57f2eb96231f668f229bac16572d97735d86a873efe6d9b44b7fdc649a31647ba10470c877a5c353dd0ebf53
|
|
7
|
+
data.tar.gz: b25231d00d367295acc3c84e612bd4345fc3a954a48aa7b93a17c8fec50bb5804936e9605b1663971566542626c93f65fc49522900e36f667ff6d6073143d11c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **`GET /columns` endpoint raised `NoMethodError: undefined method 'masked_column?'` at runtime** — a second Phase 1b regression (0.4.0 also shipped the `ActiveRecordAdapter` boot-order bug). When `SqlValidator::masked_column?` was promoted to a 2-arg class method during Phase 1b, the one remaining caller in `QueriesController#columns` was not updated. Clicking a table in the Query Explorer dropdown on 0.4.0 hits this route and triggers a 500. Fixed by reintroducing a private `masked_column?(name)` helper on `QueriesController` that delegates to `MysqlGenius::Core::SqlValidator.masked_column?(name, mysql_genius_config.masked_column_patterns)`. The call site on line 30 is untouched. Regression guard is deferred to Phase 2a's planned `spec/dummy/` Rails dummy app — the project's "no Rails boot in tests" policy blocks writing a controller-level unit spec for this without novel scaffolding. Empirically verified in-process: `masked_column?("password_hash") == true`, `masked_column?("email") == false`, `masked_column?("api_token") == true`.
|
|
7
|
+
|
|
3
8
|
## 0.4.0
|
|
4
9
|
|
|
5
10
|
### Fixed
|
|
@@ -57,5 +57,15 @@ module MysqlGenius
|
|
|
57
57
|
def queryable_tables
|
|
58
58
|
ActiveRecord::Base.connection.tables - mysql_genius_config.blocked_tables
|
|
59
59
|
end
|
|
60
|
+
|
|
61
|
+
# Delegates to Core::SqlValidator's 2-arg class method. A bare
|
|
62
|
+
# `masked_column?(name)` call survives on line 30 because this helper
|
|
63
|
+
# reintroduces the 1-arg instance method the controller's `columns`
|
|
64
|
+
# action depends on. Without this helper, `columns` raises NoMethodError
|
|
65
|
+
# at runtime (Phase 1b regression — Core::SqlValidator.masked_column?
|
|
66
|
+
# became a 2-arg class method but the call site wasn't updated).
|
|
67
|
+
def masked_column?(name)
|
|
68
|
+
MysqlGenius::Core::SqlValidator.masked_column?(name, mysql_genius_config.masked_column_patterns)
|
|
69
|
+
end
|
|
60
70
|
end
|
|
61
71
|
end
|
data/lib/mysql_genius/version.rb
CHANGED