herb 0.1.0-arm-linux-gnu → 0.1.1-arm-linux-gnu
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 +8 -4
- data/herb.gemspec +1 -1
- data/lib/herb/3.0/herb.so +0 -0
- data/lib/herb/3.1/herb.so +0 -0
- data/lib/herb/3.2/herb.so +0 -0
- data/lib/herb/3.3/herb.so +0 -0
- data/lib/herb/3.4/herb.so +0 -0
- data/lib/herb/cli.rb +3 -2
- data/lib/herb/token.rb +1 -1
- data/lib/herb/version.rb +1 -1
- data/src/include/version.h +1 -1
- data/src/main.c +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cae9cee3679abeb2c2c2284d4b217b4bced14d2cceb04a1a4d9287d2dbbee52
|
4
|
+
data.tar.gz: dda7dfe5d065fa79d37607d342d8f7584a3c2812fd737951c55847ddedf56b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12876e68b0438602e4482d8326a10a78bc6dc78097cc10ac563957182fa7e8f80afe491576180a5be893d0e0853dcd8ac29c673506becff5adf9cfea98247c91
|
7
|
+
data.tar.gz: 53bf0bccc4af9d761b6fc40d5a0a54eaa02e4dde7cd9bdbc25e73b4dcfa33021ed615aa37e897ff4b00cec3c87f392a99c7466cf5dc29636e818274e164e968c
|
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
|
-
|
1
|
+
<div align="center">
|
2
|
+
<img alt="Herb HTML+ERB parser" height="256px" src="https://github.com/user-attachments/assets/d0714ee1-ca33-4aa4-aaa9-d632ba79d54a">
|
3
|
+
</div>
|
2
4
|
|
3
|
-
|
5
|
+
<h2 align="center">Herb</h2>
|
4
6
|
|
5
|
-
|
7
|
+
<h4 align="center">HTML + ERB (HTML Embedded Ruby)</h4>
|
8
|
+
|
9
|
+
<div align="center">Powerful and seamless HTML-aware ERB parsing and tooling.</div>
|
6
10
|
|
7
11
|
## Contributing
|
8
12
|
|
@@ -71,7 +75,7 @@ The `herb` executable exposes a few commands for interacting with `.html.erb` fi
|
|
71
75
|
❯ ./herb
|
72
76
|
./herb [command] [options]
|
73
77
|
|
74
|
-
Herb 🌿 Powerful and seamless HTML-aware ERB parsing.
|
78
|
+
Herb 🌿 Powerful and seamless HTML-aware ERB parsing and tooling.
|
75
79
|
|
76
80
|
./herb lex [file] - Lex a file
|
77
81
|
./herb lex_json [file] - Lex a file and return the result as json.
|
data/herb.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.authors = ["Marco Roth"]
|
13
13
|
spec.email = ["marco.roth@intergga.ch"]
|
14
14
|
|
15
|
-
spec.summary = "Powerful and seamless HTML-aware ERB parsing."
|
15
|
+
spec.summary = "Powerful and seamless HTML-aware ERB parsing and tooling."
|
16
16
|
spec.description = spec.summary
|
17
17
|
spec.homepage = "https://herb-tools.dev"
|
18
18
|
spec.license = "MIT"
|
data/lib/herb/3.0/herb.so
CHANGED
Binary file
|
data/lib/herb/3.1/herb.so
CHANGED
Binary file
|
data/lib/herb/3.2/herb.so
CHANGED
Binary file
|
data/lib/herb/3.3/herb.so
CHANGED
Binary file
|
data/lib/herb/3.4/herb.so
CHANGED
Binary file
|
data/lib/herb/cli.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "optparse"
|
4
|
-
require "lz_string"
|
5
4
|
|
6
5
|
class Herb::CLI
|
7
6
|
attr_accessor :json, :silent
|
@@ -76,7 +75,7 @@ class Herb::CLI
|
|
76
75
|
▐▛▀▜▌▐▛▀▀▘▐▛▀▚▖▐▛▀▚▖
|
77
76
|
▐▌ ▐▌▐▙▄▄▖▐▌ ▐▌▐▙▄▞▘
|
78
77
|
|
79
|
-
Herb 🌿 Powerful and seamless HTML-aware ERB parsing.
|
78
|
+
Herb 🌿 Powerful and seamless HTML-aware ERB parsing and tooling.
|
80
79
|
|
81
80
|
Usage:
|
82
81
|
bundle exec herb [command] [options]
|
@@ -117,6 +116,8 @@ class Herb::CLI
|
|
117
116
|
puts Herb.extract_html(file_content)
|
118
117
|
exit(0)
|
119
118
|
when "playground"
|
119
|
+
require "lz_string"
|
120
|
+
|
120
121
|
if Dir.pwd.include?("/herb")
|
121
122
|
system(%(npx concurrently "nx dev playground" "sleep 1 && open http://localhost:5173##{LZString::UriSafe.compress(file_content)}"))
|
122
123
|
exit(0)
|
data/lib/herb/token.rb
CHANGED
data/lib/herb/version.rb
CHANGED
data/src/include/version.h
CHANGED
data/src/main.c
CHANGED
@@ -36,7 +36,7 @@ int main(const int argc, char* argv[]) {
|
|
36
36
|
if (argc < 2) {
|
37
37
|
printf("./herb [command] [options]\n\n");
|
38
38
|
|
39
|
-
printf("Herb 🌿 Powerful and seamless HTML-aware ERB parsing.\n\n");
|
39
|
+
printf("Herb 🌿 Powerful and seamless HTML-aware ERB parsing and tooling.\n\n");
|
40
40
|
|
41
41
|
printf("./herb lex [file] - Lex a file\n");
|
42
42
|
printf("./herb lex_json [file] - Lex a file and return the result as json.\n");
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: herb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: arm-linux-gnu
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-20 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
|
-
description: Powerful and seamless HTML-aware ERB parsing.
|
12
|
+
description: Powerful and seamless HTML-aware ERB parsing and tooling.
|
13
13
|
email:
|
14
14
|
- marco.roth@intergga.ch
|
15
15
|
executables:
|
@@ -155,5 +155,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements: []
|
156
156
|
rubygems_version: 3.6.2
|
157
157
|
specification_version: 4
|
158
|
-
summary: Powerful and seamless HTML-aware ERB parsing.
|
158
|
+
summary: Powerful and seamless HTML-aware ERB parsing and tooling.
|
159
159
|
test_files: []
|