rails_lens 0.2.9 → 0.2.10

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: f7267c551ada38ab296fd1c45e75973f55d77d6aa6a3c7e8e36f672008780202
4
- data.tar.gz: da563824b522ce15a6980630211b2a32b55e3ecacb3595695af3fc7661e4e158
3
+ metadata.gz: 6834edcbcafa6ae9100b5d0da80aa6e1c551ccd883788e1247cb2bebf6375773
4
+ data.tar.gz: a73abcfc14ef3a95c03a590137b4d6ac2403cc2f91d5982f983567d95bd8c95b
5
5
  SHA512:
6
- metadata.gz: 53de6ccec73c0364e3e44d4cfed19dce8f9e18a2ad4a2410e9130a6a0bf49c1289b45e7feec982ff37fd64b4a34d9a496dd781c6838769c9e9a17fb69a1b1ae0
7
- data.tar.gz: 60a69e449ad623029f4114e412e6dd12394fd29e00650a910db106620bb414d92a3d3273faa74e7008e2c541d3fb759344aa4ee9b1fa5149c71f4c5ccd710566
6
+ metadata.gz: bffbfa6cf5189db266ffa2787918033836d3d27ea8aaaeb27bbc8e9f5418f6e39c03e8465a7837febfcda349b56147a967b460c54cb5981edd0741d5554c029f
7
+ data.tar.gz: c5d2065ff8ddbe5f276413b74b053b1dd604c363931343021ab06b4bcf326ed367343a498b4a22afb4935db9386903834af3219f855b310dde90ceb5b02adfe6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.10](https://github.com/seuros/rails_lens/compare/rails_lens/v0.2.9...rails_lens/v0.2.10) (2025-10-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * handle PostgreSQL schema-qualified table names in BestPracticesAnalyzer ([#24](https://github.com/seuros/rails_lens/issues/24)) ([607536f](https://github.com/seuros/rails_lens/commit/607536f58d8840a9123bc50eec7878b979cd1891))
9
+
3
10
  ## [0.2.9](https://github.com/seuros/rails_lens/compare/rails_lens/v0.2.8...rails_lens/v0.2.9) (2025-10-05)
4
11
 
5
12
 
@@ -65,7 +65,11 @@ module RailsLens
65
65
  end
66
66
 
67
67
  # Check table naming
68
- if !table_name.match?(/^[a-z_]+$/) || table_name != table_name.pluralize
68
+ # Extract the actual table name without schema prefix for PostgreSQL
69
+ # PostgreSQL uses schema.table format (e.g., "ai.skills" -> "skills")
70
+ unqualified_table = table_name.to_s.split('.').last
71
+
72
+ if !unqualified_table.match?(/^[a-z_]+$/) || unqualified_table != unqualified_table.pluralize
69
73
  notes << "Table name '#{table_name}' doesn't follow Rails conventions (should be plural, snake_case)"
70
74
  end
71
75
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsLens
4
- VERSION = '0.2.9'
4
+ VERSION = '0.2.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_lens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  requirements: []
266
- rubygems_version: 3.7.2
266
+ rubygems_version: 3.6.9
267
267
  specification_version: 4
268
268
  summary: Comprehensive Rails application visualization and annotation
269
269
  test_files: []