zephyr_rb 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +2 -0
- data/lib/cli.rb +1 -1
- data/lib/{version.rb → zephyr_rb/version.rb} +0 -1
- data/lib/zephyr_rb/zephyr_rb.rb +23 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acffff3b3d234cb6d011e1a94af2a933484361b4248e90630d711555ac25a2e7
|
4
|
+
data.tar.gz: a5f7d81b8cd4aafe4ec822399573d4187d607be9185722fa6bac8ca9979503f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7656ffeec9acea256cbbb69eb9e2e00681d0d91d85d0aa0f341ea75e9590fc470a73ae778b16beeb757aab409ab9a7cde00106ae3ebac58befa77b85c0b8a23e
|
7
|
+
data.tar.gz: 1816c038972a3ad52b53375577b03804759c13390268bc86f71c9d81ee17b4b1627a4568b265887cd68908fdb664448df1e0f0f38873529fac7c7141ef89a818
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# 💎 Zephyr WASM
|
2
2
|
|
3
|
+
[](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/lib/cli.rb
CHANGED
@@ -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
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zephyr_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Glover
|
@@ -16,7 +16,8 @@ files:
|
|
16
16
|
- README.md
|
17
17
|
- dist/zephyrRB.js
|
18
18
|
- lib/cli.rb
|
19
|
-
- lib/version.rb
|
19
|
+
- lib/zephyr_rb/version.rb
|
20
|
+
- lib/zephyr_rb/zephyr_rb.rb
|
20
21
|
licenses: []
|
21
22
|
metadata: {}
|
22
23
|
rdoc_options: []
|