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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ccbb1061d5424d82fe20ee1eea6793a582bb78fca163336453a794a465499ad
4
- data.tar.gz: 267dc2a66b94b835f597e2eb6bc9540f261dad80a45a9d3fe9ddba1c714f2b5b
3
+ metadata.gz: b7858ff8adbac9ab758eee1f82b0302f67cc09357ad087f3a3102a6646307f9d
4
+ data.tar.gz: 72053d61ff33d5fbf986a7a60445e36ae821ec9c2368ef4c9a0e4768636cb6ec
5
5
  SHA512:
6
- metadata.gz: bc2a345c4bfc5d37eecd0567e6786998a73f1e6c0109b9b1d86be156a4994576bfe7a7653b86162a3a8f20ee00a76c94c7c36d1a780f655e602464aa4f6ba3f4
7
- data.tar.gz: 0b9bd46ba51a668657978cacc2ef44e1928a033ed20c9f2883ac93ffbd5025587c57789991fa4fa060617146eaf74bbb8c3961d0e9d44660a0a78c3580886241
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MysqlGenius
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql_genius
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antarr Byrd