activerabbit-ai 0.6.0 → 0.6.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/lib/active_rabbit/client/source_code_reader.rb +24 -10
- data/lib/active_rabbit/client/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: 8e1cd1d7c16eb9b4cea15e63674f3c89156c9d8e3b88d51ff2cb17b149e717cf
|
|
4
|
+
data.tar.gz: b5e54da451cfa9d98e7ba55a65940af01707bb2f0b17254000ac0aa07e86a8e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d3aa17b86a6c204454d70374c653e5f50c2648cb236941f13c063e4d9d932d950b4bc8425ea115e7f16d84dee69355fba29466fef28e75daedb3c6a95f3cbf3
|
|
7
|
+
data.tar.gz: f7243d857f07247ce600ed7f98156b96e4591e68af2aa954ad6357ba20282d475cd521c55beb4bb74b02133f7ae697d3c973cfaf1b07bcb98132602045c4b220
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.6.1] - 2026-01-09
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Docker/Production path detection**: Fixed `in_app_frame?` to correctly detect app frames in Docker containers and production environments with absolute paths like `/app/app/controllers/...`
|
|
9
|
+
|
|
5
10
|
## [0.6.0] - 2026-01-09
|
|
6
11
|
|
|
7
12
|
### Added
|
|
@@ -156,16 +156,30 @@ module ActiveRabbit
|
|
|
156
156
|
def in_app_frame?(file)
|
|
157
157
|
return false if blank?(file)
|
|
158
158
|
|
|
159
|
-
#
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
159
|
+
# Exclude gem/library paths first (these are never in-app)
|
|
160
|
+
return false if file.include?("/gems/")
|
|
161
|
+
return false if file.include?("/bundle/")
|
|
162
|
+
return false if file.include?("/.bundle/")
|
|
163
|
+
return false if file.include?("/rubygems/")
|
|
164
|
+
# Exclude Ruby stdlib but not app paths that happen to have "ruby" in them
|
|
165
|
+
return false if file =~ %r{/ruby/\d+\.\d+\.\d+/}
|
|
166
|
+
|
|
167
|
+
# In-app patterns (common Rails app structures)
|
|
168
|
+
# Relative paths
|
|
169
|
+
return true if file.start_with?("app/")
|
|
170
|
+
return true if file.start_with?("lib/")
|
|
171
|
+
return true if file.start_with?("config/")
|
|
172
|
+
|
|
173
|
+
# Absolute paths in Docker/production (e.g., /app/app/controllers/...)
|
|
174
|
+
# Match paths that contain /app/ followed by typical app directories
|
|
175
|
+
return true if file =~ %r{/app/(controllers|models|services|jobs|views|helpers|mailers|workers|channels)/}
|
|
176
|
+
return true if file =~ %r{/lib/[^/]+\.rb$}
|
|
177
|
+
return true if file =~ %r{/config/}
|
|
178
|
+
|
|
179
|
+
# Generic: path contains /app/ but not in excluded paths (already checked above)
|
|
180
|
+
return true if file.include?("/app/") && file.end_with?(".rb")
|
|
181
|
+
|
|
182
|
+
false
|
|
169
183
|
end
|
|
170
184
|
|
|
171
185
|
def classify_frame(file)
|