herb-highlighter 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5d0844efa993b8114f5bfe8bfe3db6341a8c7187e0e425e74ee034ee1ff46f8c
4
+ data.tar.gz: 17ee806f7531f338c58d0c563e713cd7bb829ca99867350d12a1f076c6bd3160
5
+ SHA512:
6
+ metadata.gz: d93f4fc14d09e109e56618759736de72b5bf0045f7cce95a0bf0f6de55d182ce946fd8382d71ff656118ae469ccf1ead35f73f9c3662dfbce5b55dd157d6222a
7
+ data.tar.gz: 6efc7afee47729be0e617d0a55a38dadc0676be042a3bfdba5cea97255df6e4fe33d496ef1457946a83f030a834ccb2e018f3bd2d41420eb97f9c2d90ed79f14
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 Marco Roth
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Herb Highlighter
2
+
3
+ **Gem:** [`herb-highlighter`](https://rubygems.org/gems/herb-highlighter)
4
+
5
+ ---
6
+
7
+ The Herb Highlighter renders syntax-highlighted HTML+ERB source, code snippets, and diagnostics with terminal color support.
8
+
9
+ This is the Ruby counterpart of the [`@herb-tools/highlighter`](https://www.npmjs.com/package/@herb-tools/highlighter) package.
10
+
11
+ > [!NOTE]
12
+ > This gem is currently an empty placeholder. The implementation lands in a future release.
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ bundle add herb-highlighter
18
+ ```
19
+
20
+ Or install it directly:
21
+
22
+ ```bash
23
+ gem install herb-highlighter
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```ruby
29
+ require "herb/highlighter"
30
+ ```
31
+
32
+ ## Development
33
+
34
+ Run `bin/setup` to install dependencies, then `rake test` to run the tests. Run `bin/console` for an interactive prompt.
35
+
36
+ ## License
37
+
38
+ Herb is available as open source under the terms of the [MIT License](https://github.com/marcoroth/herb/blob/main/LICENSE.txt).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "minitest/test_task"
5
+
6
+ Minitest::TestTask.create
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: [:test, :rubocop]
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Herb
4
+ module Highlighter
5
+ VERSION = "0.0.1"
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "highlighter/version"
4
+
5
+ module Herb
6
+ module Highlighter
7
+ class Error < StandardError; end
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ module Herb
2
+ module Highlighter
3
+ VERSION: String
4
+
5
+ class Error < StandardError
6
+ end
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: herb-highlighter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Marco Roth
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: The Herb Highlighter renders syntax-highlighted HTML+ERB source, code
13
+ snippets, and diagnostics with terminal color support.
14
+ email:
15
+ - marco.roth@intergga.ch
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE.txt
21
+ - README.md
22
+ - Rakefile
23
+ - lib/herb/highlighter.rb
24
+ - lib/herb/highlighter/version.rb
25
+ - sig/herb/highlighter.rbs
26
+ homepage: https://herb-tools.dev
27
+ licenses:
28
+ - MIT
29
+ metadata:
30
+ allowed_push_host: https://rubygems.org
31
+ rubygems_mfa_required: 'true'
32
+ homepage_uri: https://herb-tools.dev
33
+ changelog_uri: https://github.com/marcoroth/herb/releases
34
+ source_code_uri: https://github.com/marcoroth/herb
35
+ bug_tracker_uri: https://github.com/marcoroth/herb/issues
36
+ documentation_uri: https://docs.herb-tools.dev
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 3.2.0
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ requirements: []
51
+ rubygems_version: 4.0.6
52
+ specification_version: 4
53
+ summary: Syntax highlighter and diagnostic renderer for HTML+ERB templates
54
+ test_files: []