ruby_wasm_ui 0.9.1 → 0.9.2

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: bd9d0a33dc10a59959527fb70eb2080fb612f5c1d07cea603eb23ca5c957f342
4
- data.tar.gz: c5dad3fabee2912ea43fe45d0fdbc899357323e127edd572b5572d4cc474a3cd
3
+ metadata.gz: e90874b5e8d1349f9db40911bc81c1f5ca825b0409f6af9fc00f975ece476ff0
4
+ data.tar.gz: 6bf1c289444c30d04298f22fdb16385bcfb5e9e3b77e2547d86bde168fbd6ad1
5
5
  SHA512:
6
- metadata.gz: 7cd4c88f0f24adb3521448e94eae17a69836b517bf916e752e8dcb69793d8ec22930eda80a5492f4f5118fabeb546112e6bf142854beee415574ba55474f7b9c
7
- data.tar.gz: 316e8854f16c214e0f0ce488584d5c3c0ace723fe7b5cd47f45e3961367c29cb72073772519944c71e6d1e8d50db3020e25844c3f6f2224c2dda4412fe414ccf
6
+ metadata.gz: 1e783adc1baf70d4f49b5aa1d6982dbb40c5fcb6cd6aaeb2904b001c1725367bf6cf181506e5e3a20f04a00ae92c94ae8af1f6b967950acaffcff6fd19d18dd2
7
+ data.tar.gz: 6799bad94c0b2ef86ef188e29707fe3988cb5676302f65c31ad2bb0a4ef315b8ec2d4c9dbeda3e47a7001b4d32e8cd517875fdfcc14390f7227dc1bec719918a
data/README.md CHANGED
@@ -21,7 +21,7 @@ Create an HTML file:
21
21
  <!DOCTYPE html>
22
22
  <html>
23
23
  <head>
24
- <script src="https://unpkg.com/ruby-wasm-ui@0.9.1"></script>
24
+ <script src="https://unpkg.com/ruby-wasm-ui@0.9.2"></script>
25
25
  <script defer type="text/ruby" src="app.rb"></script>
26
26
  </head>
27
27
  <body>
@@ -112,7 +112,7 @@ bundle install
112
112
 
113
113
  ### Building Your Application
114
114
 
115
- 1. Set up your project (first time only):
115
+ Set up your project (first time only):
116
116
 
117
117
  ```bash
118
118
  bundle exec ruby-wasm-ui setup
@@ -124,30 +124,24 @@ This command will:
124
124
  - Update `.gitignore`
125
125
  - Create initial `src/index.html` and `src/index.rb` files
126
126
 
127
- **Additional Commands:**
127
+ The setup command will configure your project structure as follows:
128
+
129
+ ```
130
+ my-app/
131
+ ├── Gemfile
132
+ └── src/
133
+ ├── index.rb
134
+ └── index.html
135
+ ```
136
+
137
+
138
+ ### Develop Your Application
128
139
 
129
140
  - **Development server**: Start a development server with file watching and auto-build:
130
141
  ```bash
131
142
  bundle exec ruby-wasm-ui dev
132
143
  ```
133
144
 
134
- - **Rebuild Ruby WASM**: Rebuild the Ruby WASM file when you add new gems:
135
- ```bash
136
- bundle exec ruby-wasm-ui rebuild
137
- ```
138
-
139
- ### Deployment
140
-
141
- Pack your application files for deployment:
142
-
143
- ```bash
144
- bundle exec ruby-wasm-ui pack
145
- ```
146
-
147
- This command packs your Ruby files from the `./src` directory into the WASM file and outputs to the `dist` directory for deployment.
148
-
149
- ### Creating Your HTML File
150
-
151
145
  Create an HTML file in the `src` directory that loads the WASM file:
152
146
 
153
147
  ```html
@@ -163,7 +157,7 @@ Create an HTML file in the `src` directory that loads the WASM file:
163
157
  const { vm } = await DefaultRubyVM(module);
164
158
  vm.evalAsync(`
165
159
  require "ruby_wasm_ui"
166
- require_relative './src/app.rb'
160
+ require_relative './src/index.rb'
167
161
  `);
168
162
  </script>
169
163
  </head>
@@ -173,18 +167,7 @@ Create an HTML file in the `src` directory that loads the WASM file:
173
167
  </html>
174
168
  ```
175
169
 
176
- ### Example Project Structure
177
-
178
- ```
179
- my-app/
180
- ├── Gemfile
181
- ├── src.wasm
182
- └── src/
183
- ├── app.rb
184
- └── index.html
185
- ```
186
-
187
- Your `src/app.rb` file can use `ruby_wasm_ui` just like in the Quick Start example:
170
+ Your `src/index.rb` file can use `ruby_wasm_ui` just like in the Quick Start example:
188
171
 
189
172
  ```ruby
190
173
  CounterComponent = RubyWasmUi.define_component(
@@ -213,6 +196,24 @@ app.mount(app_element)
213
196
 
214
197
  See the [examples](examples) directory for a complete working example.
215
198
 
199
+
200
+ **Additional Commands:**
201
+
202
+ - **Rebuild Ruby WASM**: Rebuild the Ruby WASM file when you add new gems:
203
+ ```bash
204
+ bundle exec ruby-wasm-ui rebuild
205
+ ```
206
+
207
+ ### Deployment
208
+
209
+ Pack your application files for deployment:
210
+
211
+ ```bash
212
+ bundle exec ruby-wasm-ui pack
213
+ ```
214
+
215
+ This command packs your Ruby files from the `./src` directory into the WASM file and outputs to the `dist` directory for deployment.
216
+
216
217
  ## Documentation
217
218
 
218
219
  - [Conditional Rendering with r-if](docs/conditional-rendering.md)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyWasmUi
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.2"
5
5
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ruby-wasm-ui-project",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "ruby-wasm-ui-project",
9
- "version": "0.9.1",
9
+ "version": "0.9.2",
10
10
  "license": "MIT",
11
11
  "workspaces": [
12
12
  "packages/*"
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruby-wasm-ui-project",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "private": true,
5
5
  "description": "A project to ruby.wasm ui framework",
6
6
  "scripts": {
@@ -1,5 +1,25 @@
1
1
  # ruby-wasm-ui
2
2
 
3
+ > ⚠️ **This package has been renamed to `ruwi`**
4
+ >
5
+ > Starting from v0.10.0, this library has been renamed from `ruby-wasm-ui` to `ruwi`.
6
+ >
7
+ > **Please migrate to the new package:**
8
+ >
9
+ > - **New npm package**: [ruwi](https://www.npmjs.com/package/ruwi)
10
+ >
11
+ > ```html
12
+ > <!-- Old -->
13
+ > <script src="https://unpkg.com/ruby-wasm-ui@0.9.2"></script>
14
+ >
15
+ > <!-- New -->
16
+ > <script src="https://unpkg.com/ruwi@0.10.0"></script>
17
+ > ```
18
+ >
19
+ > For migration details, please see the [v0.10.0 release notes](https://github.com/t0yohei/ruby-wasm-ui/releases/tag/v0.10.0).
20
+
21
+ ---
22
+
3
23
  A modern web frontend framework for Ruby using [ruby.wasm](https://github.com/ruby/ruby.wasm). Write reactive web applications using familiar Ruby syntax and patterns.
4
24
 
5
25
  Please refer to the [GitHub README](https://github.com/t0yohei/ruby-wasm-ui#readme) for full documentation.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ruby-wasm-ui",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "ruby-wasm-ui",
9
- "version": "0.9.1",
9
+ "version": "0.9.2",
10
10
  "license": "MIT",
11
11
  "devDependencies": {
12
12
  "@rollup/plugin-replace": "^6.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ruby-wasm-ui",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "",
5
5
  "main": "dist/ruby-wasm-ui.js",
6
6
  "files": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_wasm_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - t0yohei
@@ -79,7 +79,10 @@ dependencies:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '6.0'
82
- description: Write reactive web applications using familiar Ruby syntax and patterns
82
+ description: 'Write reactive web applications using familiar Ruby syntax and patterns.
83
+ ⚠️ WARNING: This gem has been renamed to ''ruwi'' starting from v0.10.0. Please
84
+ migrate to the ''ruwi'' gem. See https://github.com/t0yohei/ruby-wasm-ui/releases/tag/v0.10.0
85
+ for migration details.'
83
86
  email:
84
87
  - k.t0yohei@gmail.com
85
88
  executables:
@@ -225,5 +228,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
228
  requirements: []
226
229
  rubygems_version: 3.7.2
227
230
  specification_version: 4
228
- summary: A modern web frontend framework for Ruby using ruby.wasm
231
+ summary: A modern web frontend framework for Ruby using ruby.wasm (⚠️ This gem has
232
+ been renamed to 'ruwi' starting from v0.10.0)
229
233
  test_files: []