zephyr_rb 1.0.0 → 1.0.1b

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: e0fc1f31f4d354cdcf713cae10fbb1ec76a8148e76017014fe01413d0be3c581
4
- data.tar.gz: 1ca30c3b55b992b9b9ad63d6e97aba12a6b1b717acc83cb733cf58fcf90f123c
3
+ metadata.gz: cacff54b3369cea2560487ba9ddc17426ce169d0a2d3edd3b57514be8f309796
4
+ data.tar.gz: 1793f835d78d54a07f89e94b56718d26e0618009702e6fc07a31539596c35714
5
5
  SHA512:
6
- metadata.gz: 9d32ac92ee54d0877dc0511dccd3ab2cd4be6ec21a503122b5f39be7f7a99975248474f0c89b43e8d3db0c5ca84783ae6d8efe43dd0be8838d49374c17df9680
7
- data.tar.gz: 1d6142bf99d6c2cf8da4cbc42595cdb878444bd8ec21b4ee244b02acdb0894d778066f34d54ea685cff440fdff5d610c5e1e0644cc9ea18e8120c9533b4166dc
6
+ metadata.gz: fe352d52a69adcdb92fa38e729a7801cfeeaf1ad2b57c92910d4b9a4accc283338df16b250f44f7a8996cd5732a3810e6077700235af33cb827c3f9db5a20afb
7
+ data.tar.gz: 55720cca9634593ae4d293708457b4996637d2d56318ba77520ab3766e1a07c8dbe6e546884d3e603d75b78c81378c64c22d619581eb3e32e8b04d4c3a4ab9ca
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # 💎 Zephyr WASM
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/zephyr_rb.svg)](https://badge.fury.io/rb/zephyr_rb)
4
+
3
5
  **Build reactive web components using Ruby and WebAssembly**
4
6
 
5
7
  Zephyr WASM is a lightweight framework for creating interactive web components using Ruby, compiled to WebAssembly and running entirely in the browser. Write your UI logic in Ruby with a declarative template syntax, and let the browser handle the rest.
data/exe/zephyr-rb ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "zephyr_rb"
5
+
6
+ ZephyrRb::CLI.run(ARGV)
@@ -1,7 +1,6 @@
1
- # lib/zephyr_rb/version.rb
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module ZephyrRb
5
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1b"
6
5
  RUBY_WASM_VERSION = "3.4-wasm-wasi@2.7.1"
7
6
  end
data/lib/zephyr_rb.rb ADDED
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "zephyr_rb/version"
4
+ require_relative "zephyr_rb/cli"
5
+
6
+ module ZephyrRb
7
+ class Error < StandardError; end
8
+
9
+ # Get the path to the bundled zephyr.js file
10
+ def self.asset_path
11
+ File.expand_path("../dist/zephyr.js", __dir__)
12
+ end
13
+
14
+ # Check if the zephyr.js file exists
15
+ def self.built?
16
+ File.exist?(asset_path)
17
+ end
18
+
19
+ # Build the zephyr.js file
20
+ def self.build!
21
+ CLI.build
22
+ end
23
+ end