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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e8e8e799ed5e62176fe7360d42621c30839e07a5b1d4f36d4765c97d2af10db
4
- data.tar.gz: a23bdf3c5ec3bda0ea5f63826d0627090044696f8f5234606d0e364387c7bfa0
3
+ metadata.gz: 29d220dca433672cda7a7de7b934ee9fff8d9fd2004a2ae1f8b01066a6f0ec78
4
+ data.tar.gz: 4334526b082a29b0e81a0fc8e36778e76f2ba0363d0e36e2fdc9b875551ed094
5
5
  SHA512:
6
- metadata.gz: 5b1cdf47aba4228d43bb6aa3d624bfb982fad55ae36b8dd2631a653b2ab77844b3c3199ea79a209361a5999153c3045a9e5a51bd7d249c03baa32fd5c8c8ada1
7
- data.tar.gz: 623ee1d72a5806e0ef0ff5db152c67f3d389bc67a71af8ad0a6ce7be7fe1225da7c1f215a9afcddbaf4957e3e818f06c9ac94fee2296190c04b6b950ad93e742
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
- logger = TalkToYourApp.configuration.logger
74
- logger ? logger.warn(message) : warn(message)
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
- logger = TalkToYourApp.configuration.logger
70
- logger ? logger.warn(message) : warn(message)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TalkToYourApp
4
- VERSION = "0.1.0.pre.5"
4
+ VERSION = "0.1.0.pre.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talk_to_your_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.5
4
+ version: 0.1.0.pre.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor