talk_to_your_app 0.1.0.pre.5 → 0.1.0.pre.6
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 +9 -0
- data/lib/talk_to_your_app/plugins/db/plugin.rb +3 -2
- data/lib/talk_to_your_app/railtie.rb +4 -2
- data/lib/talk_to_your_app/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: 29d220dca433672cda7a7de7b934ee9fff8d9fd2004a2ae1f8b01066a6f0ec78
|
|
4
|
+
data.tar.gz: 4334526b082a29b0e81a0fc8e36778e76f2ba0363d0e36e2fdc9b875551ed094
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1ad3205b3b15658133ccc9137e5d20ac8b8c96369a304b292a5e90b85f6c0bcec058fb6d3b59e6cc1043026f4f9e37d583c9576247430fbb0e72c4b68b2d3856
|
|
7
|
+
data.tar.gz: bedb84dc9a63d12ef2e80ed09ee8bea2a00a91764f3753be433ace2a1135cb6b6c48eee5b8cc7bf2b239e94c479c913d9f1b710fbfb8b7ba1b135e58e654a558
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@ breaking changes.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.1.0.pre.6] - 2026-07-20
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- Boot-time warnings (`no config.authorize configured`, writable DB connection)
|
|
13
|
+
now go to `$stderr` (`Kernel#warn`) instead of the configured logger. The
|
|
14
|
+
configured logger may write to `$stdout`, and boot output on `$stdout` can be
|
|
15
|
+
captured by scripts (e.g. building `DATABASE_URL` from `rails runner`), which
|
|
16
|
+
corrupted the captured value. Warnings never touch `$stdout` at boot now.
|
|
17
|
+
|
|
9
18
|
## [0.1.0.pre.5] - 2026-07-18
|
|
10
19
|
|
|
11
20
|
Requires Ruby >= 3.3 and Rails >= 7.2 (the tested CI matrix: Ruby 3.3/4.0 ×
|
|
@@ -70,8 +70,9 @@ module TalkToYourApp
|
|
|
70
70
|
message = "talk_to_your_app: the DB plugin is wired to connection #{conn.inspect} with " \
|
|
71
71
|
"role: :writing — db.query can execute writes (UPDATE/INSERT/DELETE/DDL). Ensure this is " \
|
|
72
72
|
"intended and that the database user's privileges are scoped accordingly."
|
|
73
|
-
|
|
74
|
-
logger
|
|
73
|
+
# Boot-time warning goes to $stderr (Kernel#warn), never the configured
|
|
74
|
+
# logger, which may write to $stdout (captured by scripts at boot).
|
|
75
|
+
warn(message)
|
|
75
76
|
end
|
|
76
77
|
private_class_method :warn_writable
|
|
77
78
|
end
|
|
@@ -66,8 +66,10 @@ module TalkToYourApp
|
|
|
66
66
|
message = "talk_to_your_app: no config.authorize configured — every authenticated " \
|
|
67
67
|
"principal can call every enabled tool. Set `config.authorize` to scope access by " \
|
|
68
68
|
"principal, tool, and arguments."
|
|
69
|
-
|
|
70
|
-
logger
|
|
69
|
+
# Boot-time warning goes to $stderr (Kernel#warn), never the configured
|
|
70
|
+
# logger: that logger may write to $stdout, and boot output on $stdout can
|
|
71
|
+
# be captured by scripts (e.g. building DATABASE_URL from `rails runner`).
|
|
72
|
+
warn(message)
|
|
71
73
|
end
|
|
72
74
|
end
|
|
73
75
|
end
|