Skip to content

Commit a22230b

Browse files
Fix package.json license field and add license validation mechanism examples
- Changed package.json license field to 'SEE LICENSE IN LICENSE.md' for better npm tooling compatibility - Added 'License Validation Mechanisms' section to LICENSE.md with: - Description of what license validation mechanisms are (runtime checks, authentication systems, etc.) - Specific examples of prohibited modifications (helper.rb, utils.rb, interface files) - Clear statement that MIT modifications are allowed but using them to access Pro features violates the Pro License Co-authored-by: Abanoub Ghadban <[email protected]>
1 parent 55c349a commit a22230b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

LICENSE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,20 @@ For Pro-licensed code (as defined in the "License Scope" section above), see:
7474
- Free use is permitted for educational, personal, and non-production purposes
7575
- Modifying MIT-licensed interface files is permitted under MIT terms
7676
- However, using those modifications to access Pro features without a valid license violates the Pro License
77+
78+
### License Validation Mechanisms
79+
80+
**License validation mechanisms** include but are not limited to:
81+
82+
- Runtime checks for valid Pro subscriptions
83+
- Authentication systems in `lib/react_on_rails/utils.rb` and Pro TypeScript modules
84+
- The `react_on_rails_pro?` method and `rorPro` field generation
85+
86+
**Examples of prohibited modifications** that would constitute unauthorized Pro feature use:
87+
88+
- Modifying `lib/react_on_rails/helper.rb` to bypass `react_on_rails_pro?` checks
89+
- Altering `lib/react_on_rails/utils.rb` to change the `rorPro` field generation logic
90+
- Tampering with Pro feature detection in MIT-licensed interface files (e.g., `clientStartup.ts`, `serverRenderReactComponent.ts`, `ReactOnRails.client.ts`, `ReactOnRails.node.ts`)
91+
- Removing or bypassing license validation calls before accessing Pro features
92+
93+
While MIT-licensed code may be modified under MIT terms, using such modifications to access Pro features without a valid license violates the React on Rails Pro License.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"Rails"
119119
],
120120
"author": "[email protected]",
121-
"license": "MIT AND LicenseRef-Proprietary",
121+
"license": "SEE LICENSE IN LICENSE.md",
122122
"bugs": {
123123
"url": "https://github.com/shakacode/react_on_rails/issues"
124124
},

0 commit comments

Comments
 (0)