rsx-rb 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c8c99446f5f4a181f5076fc1c953abe88019abe2d88648f3b2838065103b9d01
4
+ data.tar.gz: 756fc7f9d2b864fd4f8bc3bed5f7f841fa9f07fc0659ebaaa432da0caaa6c960
5
+ SHA512:
6
+ metadata.gz: 21380274662f0aa00351a671c6742f4854d908e7e614bd61191111c038a08e0e5b00f545cebd442b502a6432bc350f1f2efde566dca012d0a0ceea142187ef00
7
+ data.tar.gz: 19452fed00b1aaefcbeaf532216b0da8e032ae7cd07cd7b6a5a228f5fa4bdea966f0d1edd417eb98ed8ef32e9c14abadb9fd4fdb662cca8a52d85d552af5a510
data/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ All notable changes to RSX are documented here. This project follows
4
+ [Semantic Versioning](https://semver.org).
5
+
6
+ ## [Unreleased]
7
+
8
+ - Publish the gem as `rsx-rb` on RubyGems. The require path remains `rsx`.
9
+
10
+ ## [0.1.0]
11
+
12
+ First release.
13
+
14
+ - `.rsx` templates: JSX syntax with Ruby in place of JavaScript — `<>` fragments, `{}`
15
+ expression containers, `{/* comments */}`, JSX whitespace rules, void and self-closing
16
+ elements.
17
+ - Compiler: a single-pass scanner that tells markup apart from Ruby's own uses of `<`
18
+ (comparison, `<<`, heredocs, `class Foo < Bar`) and emits plain Ruby that preserves the
19
+ source's line numbers.
20
+ - Attributes: React prop names (`className`, `htmlFor`, `tabIndex`, camelCase SVG), `class`
21
+ and `style` from Strings/Arrays/Hashes, `data`/`aria` hash expansion, HTML boolean
22
+ attributes, React-style spread merging, `dangerouslySetInnerHTML`.
23
+ - Components: `component Name do |props|`, keyword and positional props, defaults, required
24
+ props, `**rest`, lazy children, slots, render props, `import`/`export default`, namespaced
25
+ and lambda components.
26
+ - Context API: `RSX.create_context`, `<Ctx.Provider>` and `use_context`, scoped per thread.
27
+ - Performance: static markup collapsed into frozen literals, automatic static-component
28
+ prerendering, whole-component and fragment caching, on-disk compile cache, `precompile!`.
29
+ - Rails: `.html.rsx` template handler, `rsx` and `rsx_file` view helpers, railtie
30
+ configuration, development reloading, `rsx:precompile`, `rsx:clear` and `rsx:components`
31
+ rake tasks.
32
+ - `rsx` command line tool: `compile`, `render`, `precompile`, `version`.
33
+ - Escaping built on `CGI.escapeHTML` with an `RSX::SafeString` that interoperates with
34
+ `ActiveSupport::SafeBuffer`.
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jason Brock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.