herb 0.2.0-x86_64-linux-gnu → 0.3.0-x86_64-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/Rakefile +3 -3
- data/ext/herb/nodes.c +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 +14 -4
- data/lib/herb/version.rb +1 -1
- data/src/include/version.h +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c98e49a45c57adedc8b801908abc3a4625bc8e7f2858c0c82c3562c52fb575d1
|
4
|
+
data.tar.gz: dbf05cdfddb0cd37ae03ad0b0c797fc3b1545b4df39c938c3eb621be7ad6bb55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eafeff57d162a23c9a6689b7058be2d038b70c242ea6f06b75e34cef50f7ca6b40ffa970e079a27d42e5a426fa2868ac0d0b9e16e496d2a8c46495992e03830c
|
7
|
+
data.tar.gz: 89e55bf4775672f4669f5ae84d91382c05d5583834dde5d0223d3072c94720cd155d7423031dca8da71bb4df898eb3a7fd9918fad59043c35c392a5241f1ac01
|
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
|
65
|
+
RakeCompilerDock.sh "bundle && rake native:#{platform} gem", platform: platform
|
66
66
|
end
|
67
67
|
|
68
|
-
RakeCompilerDock.sh "bundle
|
68
|
+
RakeCompilerDock.sh "bundle && 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
|
98
|
+
"bundle && rake native:#{platform} gem RUBY_CC_VERSION='#{ENV.fetch("RUBY_CC_VERSION", nil)}'",
|
99
99
|
platform: platform
|
100
100
|
)
|
101
101
|
end
|
data/ext/herb/nodes.c
CHANGED
@@ -415,7 +415,7 @@ static VALUE rb_erb_content_node_from_c_struct(AST_ERB_CONTENT_NODE_T* erb_conte
|
|
415
415
|
VALUE erb_content_node_tag_opening = rb_token_from_c_struct(erb_content_node->tag_opening);
|
416
416
|
VALUE erb_content_node_content = rb_token_from_c_struct(erb_content_node->content);
|
417
417
|
VALUE erb_content_node_tag_closing = rb_token_from_c_struct(erb_content_node->tag_closing);
|
418
|
-
/* #<Herb::Template::AnalyzedRubyField:
|
418
|
+
/* #<Herb::Template::AnalyzedRubyField:0x00007ffffed6dfe8 @name="analyzed_ruby", @options={kind: nil}> */
|
419
419
|
VALUE erb_content_node_analyzed_ruby = Qnil;
|
420
420
|
VALUE erb_content_node_parsed = (erb_content_node->parsed) ? Qtrue : Qfalse;
|
421
421
|
VALUE erb_content_node_valid = (erb_content_node->valid) ? Qtrue : Qfalse;
|
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
@@ -128,11 +128,10 @@ class Herb::CLI
|
|
128
128
|
puts "This command can currently only be run within the herb repo itself"
|
129
129
|
exit(1)
|
130
130
|
end
|
131
|
-
when "help"
|
131
|
+
when "help"
|
132
132
|
help
|
133
|
-
when "version"
|
134
|
-
|
135
|
-
exit(0)
|
133
|
+
when "version"
|
134
|
+
print_version
|
136
135
|
when String
|
137
136
|
puts "Unknown command: '#{@command}'"
|
138
137
|
puts
|
@@ -147,6 +146,10 @@ class Herb::CLI
|
|
147
146
|
@option_parser ||= OptionParser.new do |parser|
|
148
147
|
parser.banner = ""
|
149
148
|
|
149
|
+
parser.on_tail("-v", "--version", "Show the version") do
|
150
|
+
print_version
|
151
|
+
end
|
152
|
+
|
150
153
|
parser.on_tail("-h", "--help", "Show this message") do
|
151
154
|
help
|
152
155
|
exit(0)
|
@@ -165,4 +168,11 @@ class Herb::CLI
|
|
165
168
|
def options
|
166
169
|
option_parser.parse!(@args)
|
167
170
|
end
|
171
|
+
|
172
|
+
private
|
173
|
+
|
174
|
+
def print_version
|
175
|
+
puts Herb.version
|
176
|
+
exit(0)
|
177
|
+
end
|
168
178
|
end
|
data/lib/herb/version.rb
CHANGED
data/src/include/version.h
CHANGED
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: x86_64-linux-gnu
|
6
6
|
authors:
|
7
7
|
- Marco Roth
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-21 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Powerful and seamless HTML-aware ERB parsing and tooling.
|
13
13
|
email:
|