Skip to content

Commit ac1dd0f

Browse files
justin808claude
andcommitted
Fix Pro gem loading: Remove invalid .strip_heredoc call
The `.strip_heredoc` method requires ActiveSupport to be loaded, but it's unnecessary here because the `<<~` heredoc syntax already strips leading whitespace. This was causing Pro gem loading to fail when ActiveSupport wasn't yet available. This fixes the rspec-package-tests CI failure where `ReactOnRailsPro::Utils` was uninitialized because the license_public_key.rb file failed to load. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 489c6ba commit ac1dd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react_on_rails_pro/license_public_key.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module LicensePublicKey
1515
#
1616
# TODO: Add a prepublish check to ensure this key matches the latest public key from the API.
1717
# This should be implemented after publishing the API endpoint on the ShakaCode website.
18-
KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip.strip_heredoc)
18+
KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip)
1919
-----BEGIN PUBLIC KEY-----
2020
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzcS/fpHz5CbnTQxb4Zot
2121
khjzXu7xNS+Y9VKfapMaHOMzNoCMfy1++hxHJatRedr+YQfZRCjfiN168Cpe+dhe

0 commit comments

Comments
 (0)