ruby2html 2.1.0-java

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.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +211 -0
  3. data/LICENSE +21 -0
  4. data/README.md +263 -0
  5. data/ext/java/Ruby2htmlJrubyService.java +95 -0
  6. data/ext/ruby2html/attributes.c +200 -0
  7. data/ext/ruby2html/buffer.h +43 -0
  8. data/ext/ruby2html/content.c +120 -0
  9. data/ext/ruby2html/extconf.rb +47 -0
  10. data/ext/ruby2html/html_escape.c +252 -0
  11. data/ext/ruby2html/ruby2html.c +16 -0
  12. data/ext/ruby2html/ruby2html.h +32 -0
  13. data/ext/ruby2html/tag_render.c +179 -0
  14. data/lib/gem/ruby2html/component.rb +120 -0
  15. data/lib/gem/ruby2html/component_helper.rb +48 -0
  16. data/lib/gem/ruby2html/html_beautifier_middleware.rb +70 -0
  17. data/lib/gem/ruby2html/rails_components/base_component.rb +28 -0
  18. data/lib/gem/ruby2html/rails_components/button_to.rb +11 -0
  19. data/lib/gem/ruby2html/rails_components/form_with.rb +67 -0
  20. data/lib/gem/ruby2html/rails_components/image_tag.rb +11 -0
  21. data/lib/gem/ruby2html/rails_components/link_to.rb +11 -0
  22. data/lib/gem/ruby2html/rails_components/output_capture.rb +41 -0
  23. data/lib/gem/ruby2html/rails_components/template_collector.rb +62 -0
  24. data/lib/gem/ruby2html/rails_components/template_compiler.rb +92 -0
  25. data/lib/gem/ruby2html/rails_components/template_helpers.rb +77 -0
  26. data/lib/gem/ruby2html/rails_helper.rb +17 -0
  27. data/lib/gem/ruby2html/railtie.rb +119 -0
  28. data/lib/gem/ruby2html/render/pure_ruby.rb +219 -0
  29. data/lib/gem/ruby2html/render.rb +123 -0
  30. data/lib/gem/ruby2html/ruby2html_jruby.jar +0 -0
  31. data/lib/gem/ruby2html/version.rb +5 -0
  32. data/lib/gem/ruby2html.rb +34 -0
  33. metadata +80 -0
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Entry point. Loads only the renderer eagerly; everything else is autoloaded
4
+ # on first use, so `require 'ruby2html'` outside Rails stays small and fast
5
+ # (no Prism, no ActionView glue, no htmlbeautifier).
6
+ require_relative 'ruby2html/version'
7
+ require_relative 'ruby2html/render'
8
+
9
+ module Ruby2html
10
+ class Error < StandardError; end
11
+
12
+ autoload :Component, File.expand_path('ruby2html/component', __dir__)
13
+ autoload :ComponentHelper, File.expand_path('ruby2html/component_helper', __dir__)
14
+ autoload :RailsHelper, File.expand_path('ruby2html/rails_helper', __dir__)
15
+ autoload :HtmlBeautifierMiddleware, File.expand_path('ruby2html/html_beautifier_middleware', __dir__)
16
+
17
+ # Rails helper wrappers and the .html.rb template compiler (needs Prism).
18
+ module RailsComponents
19
+ {
20
+ OutputCapture: 'output_capture',
21
+ BaseComponent: 'base_component',
22
+ LinkTo: 'link_to',
23
+ ButtonTo: 'button_to',
24
+ ImageTag: 'image_tag',
25
+ FormWith: 'form_with',
26
+ TemplateHelpers: 'template_helpers',
27
+ TemplateCompiler: 'template_compiler'
28
+ }.each { |name, file| autoload name, File.expand_path("ruby2html/rails_components/#{file}", __dir__) }
29
+ end
30
+ end
31
+
32
+ # Template handler + Railtie. Registers lazily via ActiveSupport.on_load, so
33
+ # it costs nothing until ActionView loads; a no-op without ActiveSupport.
34
+ require_relative 'ruby2html/railtie' if defined?(ActiveSupport)
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby2html
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.1.0
5
+ platform: java
6
+ authors:
7
+ - sebi
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Ruby2HTML empowers developers to write view logic in pure Ruby, seamlessly
13
+ converting it into clean, well-formatted HTML. Enhance your templating workflow,
14
+ improve readability, and leverage the full power of Ruby in your views. Features
15
+ include Rails integration, custom component support, automatic HTML beautification,
16
+ and C-optimized rendering performance.
17
+ email:
18
+ - gore.sebyx@yahoo.com
19
+ executables: []
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - CHANGELOG.md
24
+ - LICENSE
25
+ - README.md
26
+ - ext/java/Ruby2htmlJrubyService.java
27
+ - ext/ruby2html/attributes.c
28
+ - ext/ruby2html/buffer.h
29
+ - ext/ruby2html/content.c
30
+ - ext/ruby2html/extconf.rb
31
+ - ext/ruby2html/html_escape.c
32
+ - ext/ruby2html/ruby2html.c
33
+ - ext/ruby2html/ruby2html.h
34
+ - ext/ruby2html/tag_render.c
35
+ - lib/gem/ruby2html.rb
36
+ - lib/gem/ruby2html/component.rb
37
+ - lib/gem/ruby2html/component_helper.rb
38
+ - lib/gem/ruby2html/html_beautifier_middleware.rb
39
+ - lib/gem/ruby2html/rails_components/base_component.rb
40
+ - lib/gem/ruby2html/rails_components/button_to.rb
41
+ - lib/gem/ruby2html/rails_components/form_with.rb
42
+ - lib/gem/ruby2html/rails_components/image_tag.rb
43
+ - lib/gem/ruby2html/rails_components/link_to.rb
44
+ - lib/gem/ruby2html/rails_components/output_capture.rb
45
+ - lib/gem/ruby2html/rails_components/template_collector.rb
46
+ - lib/gem/ruby2html/rails_components/template_compiler.rb
47
+ - lib/gem/ruby2html/rails_components/template_helpers.rb
48
+ - lib/gem/ruby2html/rails_helper.rb
49
+ - lib/gem/ruby2html/railtie.rb
50
+ - lib/gem/ruby2html/render.rb
51
+ - lib/gem/ruby2html/render/pure_ruby.rb
52
+ - lib/gem/ruby2html/ruby2html_jruby.jar
53
+ - lib/gem/ruby2html/version.rb
54
+ homepage: https://github.com/sebyx07/ruby2html
55
+ licenses:
56
+ - MIT
57
+ metadata:
58
+ homepage_uri: https://github.com/sebyx07/ruby2html
59
+ source_code_uri: https://github.com/sebyx07/ruby2html
60
+ changelog_uri: https://github.com/sebyx07/ruby2html/blob/main/CHANGELOG.md
61
+ bug_tracker_uri: https://github.com/sebyx07/ruby2html/issues
62
+ rubygems_mfa_required: 'true'
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib/gem
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.1.0
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubygems_version: 4.0.21
78
+ specification_version: 4
79
+ summary: Transform Ruby code into beautiful, structured HTML with C-optimized performance
80
+ test_files: []