herb 0.6.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d5c39f15561e11ed266e3d57d080287c05f3d9109377d8744b12a089ecf95d7
4
- data.tar.gz: b9e545a299e398a69aa75d15ae56d5743275a0cb45c4dc1645b8b444c863a069
3
+ metadata.gz: 7aca698dd47036905cdae197d527de2debe64f409999067c9fa5064ec78efb94
4
+ data.tar.gz: 7e8da3b94e3418d6903dd29e2f1f45833d833e4db9e4bb545ffa1adab3d46461
5
5
  SHA512:
6
- metadata.gz: 41f6050418f0a9c01adef13de22dc4a554d3bb4c5fd3532f5394948aabb2378dedff1e2c54b12dffd348a69cf9224e7150abf08a439bad5144c83ec09e3b85bb
7
- data.tar.gz: 60782c6d4ec3587664b91fbc66b96b782e70373be331b78cd44d54ec44c1a520923be005673b55a791e5ecf0f2168ba715d100abf7e3bc2bea31760c70ae6e7f
6
+ metadata.gz: 8c8ea59062f8cb68dc7988d4340df01c16d2accb4c0f7231a85af6087a951659b6d9932b4de4a2edc7786cf32cdbdfbdc39e8c032735d9197206eaf5130475bc
7
+ data.tar.gz: f552c8345ec3d9edd6640cf8a28b5d872f69fc780a8344b5382ca2a8748708233362694267fde4534d667c8f612a90dfeced79ba26b6eeb2b62f5e7dc79e9ce9
data/Rakefile CHANGED
@@ -62,10 +62,10 @@ begin
62
62
  sh "bundle config set cache_all true"
63
63
 
64
64
  PLATFORMS.each do |platform|
65
- RakeCompilerDock.sh "bundle && rake native:#{platform} gem", platform: platform
65
+ RakeCompilerDock.sh "bundle --local && rake native:#{platform} gem", platform: platform
66
66
  end
67
67
 
68
- RakeCompilerDock.sh "bundle && rake java gem", rubyvm: :jruby
68
+ RakeCompilerDock.sh "bundle --local && rake java gem", rubyvm: :jruby
69
69
  rescue LoadError
70
70
  abort "rake_compiler_dock is required to build native gems"
71
71
  end
@@ -95,7 +95,7 @@ begin
95
95
  desc "Build the native gem for #{platform}"
96
96
  task platform => "prepare" do
97
97
  RakeCompilerDock.sh(
98
- "bundle && rake native:#{platform} gem RUBY_CC_VERSION='#{ENV.fetch("RUBY_CC_VERSION", nil)}'",
98
+ "bundle --local && rake native:#{platform} gem RUBY_CC_VERSION='#{ENV.fetch("RUBY_CC_VERSION", nil)}'",
99
99
  platform: platform
100
100
  )
101
101
  end
@@ -181,7 +181,7 @@ namespace :parse do
181
181
  end
182
182
  end
183
183
 
184
- task :rbs_inline do
184
+ task rbs_inline: :templates do
185
185
  require "open3"
186
186
 
187
187
  command = "bundle exec rbs-inline --opt-out --output=sig/ lib/"
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/ext/herb/error_helpers.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/ext/herb/error_helpers.c.erb
3
3
 
4
4
  #include <ruby.h>
5
5
 
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/ext/herb/error_helpers.h.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/ext/herb/error_helpers.h.erb
3
3
 
4
4
  #ifndef HERB_EXTENSION_ERROR_HELPERS_H
5
5
  #define HERB_EXTENSION_ERROR_HELPERS_H
data/ext/herb/nodes.c CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/ext/herb/nodes.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/ext/herb/nodes.c.erb
3
3
 
4
4
  #include <ruby.h>
5
5
 
@@ -443,7 +443,7 @@ static VALUE rb_erb_content_node_from_c_struct(AST_ERB_CONTENT_NODE_T* erb_conte
443
443
  VALUE erb_content_node_tag_opening = rb_token_from_c_struct(erb_content_node->tag_opening);
444
444
  VALUE erb_content_node_content = rb_token_from_c_struct(erb_content_node->content);
445
445
  VALUE erb_content_node_tag_closing = rb_token_from_c_struct(erb_content_node->tag_closing);
446
- /* #<Herb::Template::AnalyzedRubyField:0x00007ffffed727f0 @name="analyzed_ruby", @options={kind: nil}> */
446
+ /* #<Herb::Template::AnalyzedRubyField:0x00007fcda0388dd8 @name="analyzed_ruby", @options={kind: nil}> */
447
447
  VALUE erb_content_node_analyzed_ruby = Qnil;
448
448
  VALUE erb_content_node_parsed = (erb_content_node->parsed) ? Qtrue : Qfalse;
449
449
  VALUE erb_content_node_valid = (erb_content_node->valid) ? Qtrue : Qfalse;
data/ext/herb/nodes.h CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/ext/herb/nodes.h.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/ext/herb/nodes.h.erb
3
3
 
4
4
  #ifndef HERB_EXTENSION_NODES_H
5
5
  #define HERB_EXTENSION_NODES_H
@@ -2,7 +2,7 @@
2
2
  # typed: true
3
3
 
4
4
  # NOTE: This file is generated by the templates/template.rb script and should not be
5
- # modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/lib/herb/ast/nodes.rb.erb
5
+ # modified manually. See /home/runner/work/herb/herb/templates/lib/herb/ast/nodes.rb.erb
6
6
 
7
7
  module Herb
8
8
  module AST
data/lib/herb/errors.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # typed: true
3
3
 
4
4
  # NOTE: This file is generated by the templates/template.rb script and should not be
5
- # modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/lib/herb/errors.rb.erb
5
+ # modified manually. See /home/runner/work/herb/herb/templates/lib/herb/errors.rb.erb
6
6
 
7
7
  module Herb
8
8
  module Errors
data/lib/herb/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
  # typed: true
3
3
 
4
4
  module Herb
5
- VERSION = "0.6.0"
5
+ VERSION = "0.6.1"
6
6
  end
data/lib/herb/visitor.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # typed: true
3
3
 
4
4
  # NOTE: This file is generated by the templates/template.rb script and should not be
5
- # modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/lib/herb/visitor.rb.erb
5
+ # modified manually. See /home/runner/work/herb/herb/templates/lib/herb/visitor.rb.erb
6
6
 
7
7
  module Herb
8
8
  class Visitor
@@ -2,7 +2,7 @@
2
2
  # typed: true
3
3
 
4
4
  # NOTE: This file is generated by the templates/template.rb script and should not be
5
- # modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/sig/serialized_ast_errors.rbs.erb
5
+ # modified manually. See /home/runner/work/herb/herb/templates/sig/serialized_ast_errors.rbs.erb
6
6
 
7
7
  module Herb
8
8
  type serialized_unexpected_error = serialized_error & {
@@ -2,7 +2,7 @@
2
2
  # typed: true
3
3
 
4
4
  # NOTE: This file is generated by the templates/template.rb script and should not be
5
- # modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/sig/serialized_ast_nodes.rbs.erb
5
+ # modified manually. See /home/runner/work/herb/herb/templates/sig/serialized_ast_nodes.rbs.erb
6
6
 
7
7
  module Herb
8
8
  type serialized_document_node = serialized_node & {
data/src/ast_nodes.c CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/ast_nodes.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/ast_nodes.c.erb
3
3
 
4
4
  #include <stdio.h>
5
5
  #include <stdbool.h>
@@ -219,7 +219,7 @@ AST_ERB_ELSE_NODE_T* ast_erb_else_node_init(token_T* tag_opening, token_T* conte
219
219
  return erb_else_node;
220
220
  }
221
221
 
222
- AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, AST_NODE_T* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors) {
222
+ AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_NODE_STRUCT* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors) {
223
223
  AST_ERB_IF_NODE_T* erb_if_node = malloc(sizeof(AST_ERB_IF_NODE_T));
224
224
 
225
225
  ast_node_init(&erb_if_node->base, AST_ERB_IF_NODE, start_position, end_position, errors);
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/ast_pretty_print.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/ast_pretty_print.c.erb
3
3
 
4
4
  #include "include/ast_node.h"
5
5
  #include "include/ast_nodes.h"
data/src/errors.c CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/errors.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/errors.c.erb
3
3
 
4
4
  #include "include/array.h"
5
5
  #include "include/errors.h"
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/include/ast_nodes.h.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/include/ast_nodes.h.erb
3
3
 
4
4
  #ifndef HERB_AST_NODES_H
5
5
  #define HERB_AST_NODES_H
@@ -181,7 +181,7 @@ typedef struct AST_ERB_IF_NODE_STRUCT {
181
181
  token_T* content;
182
182
  token_T* tag_closing;
183
183
  array_T* statements;
184
- AST_NODE_T* subsequent;
184
+ struct AST_NODE_STRUCT* subsequent;
185
185
  struct AST_ERB_END_NODE_STRUCT* end_node;
186
186
  } AST_ERB_IF_NODE_T;
187
187
 
@@ -322,7 +322,7 @@ AST_WHITESPACE_NODE_T* ast_whitespace_node_init(token_T* value, position_T* star
322
322
  AST_ERB_CONTENT_NODE_T* ast_erb_content_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, analyzed_ruby_T* analyzed_ruby, bool parsed, bool valid, position_T* start_position, position_T* end_position, array_T* errors);
323
323
  AST_ERB_END_NODE_T* ast_erb_end_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, position_T* start_position, position_T* end_position, array_T* errors);
324
324
  AST_ERB_ELSE_NODE_T* ast_erb_else_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
325
- AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, AST_NODE_T* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
325
+ AST_ERB_IF_NODE_T* ast_erb_if_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, struct AST_NODE_STRUCT* subsequent, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
326
326
  AST_ERB_BLOCK_NODE_T* ast_erb_block_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* body, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
327
327
  AST_ERB_WHEN_NODE_T* ast_erb_when_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* statements, position_T* start_position, position_T* end_position, array_T* errors);
328
328
  AST_ERB_CASE_NODE_T* ast_erb_case_node_init(token_T* tag_opening, token_T* content, token_T* tag_closing, array_T* children, array_T* conditions, struct AST_ERB_ELSE_NODE_STRUCT* else_clause, struct AST_ERB_END_NODE_STRUCT* end_node, position_T* start_position, position_T* end_position, array_T* errors);
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/include/ast_pretty_print.h.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/include/ast_pretty_print.h.erb
3
3
 
4
4
  #ifndef HERB_AST_PRETTY_PRINT_H
5
5
  #define HERB_AST_PRETTY_PRINT_H
data/src/include/errors.h CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/include/errors.h.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/include/errors.h.erb
3
3
 
4
4
  #ifndef HERB_ERRORS_H
5
5
  #define HERB_ERRORS_H
@@ -1,6 +1,6 @@
1
1
  #ifndef HERB_VERSION_H
2
2
  #define HERB_VERSION_H
3
3
 
4
- #define HERB_VERSION "0.6.0"
4
+ #define HERB_VERSION "0.6.1"
5
5
 
6
6
  #endif
data/src/visitor.c CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/src/visitor.c.erb
2
+ // be modified manually. See /home/runner/work/herb/herb/templates/src/visitor.c.erb
3
3
 
4
4
  #include <stdio.h>
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-08-25 00:00:00.000000000 Z
10
+ date: 2025-08-26 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Powerful and seamless HTML-aware ERB parsing and tooling.
13
13
  email: