Skip to content

Commit 5d6514f

Browse files
Refactor LicensePublicKey module documentation for clarity and consistency
1 parent 38ef270 commit 5d6514f

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

react_on_rails_pro/lib/react_on_rails_pro/license_public_key.rb

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
# frozen_string_literal: true
22

33
module ReactOnRailsPro
4-
# Module: LicensePublicKey
5-
#
6-
# Contains ShakaCode's public RSA key used for React on Rails Pro license verification.
7-
# The corresponding private key is securely held by ShakaCode and is never committed to the repository.
8-
#
9-
# You can update this public key by running the rake task:
10-
# react_on_rails_pro:update_public_key
11-
# This task fetches the latest key from the API endpoint:
12-
# http://shakacode.com/api/public-key
13-
#
14-
# TODO: Add a prepublish check to ensure this key matches the latest public key from the API.
15-
# This should be implemented after publishing the API endpoint on the ShakaCode website.
164
module LicensePublicKey
175
# ShakaCode's public key for React on Rails Pro license verification
186
# The private key corresponding to this public key is held by ShakaCode
197
# and is never committed to the repository
208
# Last updated: 2025-10-09 15:57:09 UTC
219
# Source: http://shakacode.com/api/public-key
10+
#
11+
# You can update this public key by running the rake task:
12+
# react_on_rails_pro:update_public_key
13+
# This task fetches the latest key from the API endpoint:
14+
# http://shakacode.com/api/public-key
15+
#
16+
# TODO: Add a prepublish check to ensure this key matches the latest public key from the API.
17+
# This should be implemented after publishing the API endpoint on the ShakaCode website.
2218
KEY = OpenSSL::PKey::RSA.new(<<~PEM.strip.strip_heredoc)
2319
-----BEGIN PUBLIC KEY-----
2420
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlJFK3aWuycVp9X05qhGo

react_on_rails_pro/packages/node-renderer/src/shared/licensePublicKey.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// and is never committed to the repository
44
// Last updated: 2025-10-09 15:57:09 UTC
55
// Source: http://shakacode.com/api/public-key
6+
//
67
// You can update this public key by running the rake task:
78
// react_on_rails_pro:update_public_key
89
// This task fetches the latest key from the API endpoint:

0 commit comments

Comments
 (0)