ruby2html 1.5.6 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf4f778793e40575fb653f419b9d0f9f0f7e82cb3f639181bcec3d1017ffd495
4
- data.tar.gz: 4aae6941eed39fd2ea969ce0ed80ddfb73ca52e8b06d5ebf969e2a925446702a
3
+ metadata.gz: 0bb81508767a3c0d752196a8407c2df91a238cfdd40adc74cb781108d12f252a
4
+ data.tar.gz: 88b6b41fc9d4b989dfbe8af188679f6bbf0052be18d269facca585e19d92803d
5
5
  SHA512:
6
- metadata.gz: ab5c2ece6828903693aaf318ba342e99fb50ef9aeb2d1d79a68ee627e19d411cfb6beca021e6cb26698a646092a3bd7136746a8eb07d3b26525db24f120da3a1
7
- data.tar.gz: cc432a7c9ad78536b3aac8a3826d603f64f1d2809ee3610ce2d77b3c307c38bbad272cf1bdde6ed97d4480201038f351690e5dbcc5f9b286d06a90cbcca5eee6
6
+ metadata.gz: 3ed9c992d3b8bed296bc4f461cce5198df1e587df46c696c849defbd1e64c88868c7942b2c69fa0cdd6f7f4d6fda4ac400c692e6e06fa750cc2d73f95c9abb61
7
+ data.tar.gz: ca1c2d48d8cab767b2c81aa27858cef0c6b40a1254e29eb2340ebb01145428b901cb6dfce63f37e7abb102d72726ab3adcfc3dca87399ae77ab536bd1d4c0707
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'htmlbeautifier'
4
-
5
3
  module Ruby2html
6
4
  class HtmlBeautifierMiddleware
7
5
  def initialize(app)
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'cgi'
4
- require 'stringio'
5
-
6
3
  module Ruby2html
7
4
  class Render
8
5
  HTML5_TAGS = %w[
@@ -22,7 +19,7 @@ module Ruby2html
22
19
  attr_reader :output
23
20
  attr_accessor :current_output
24
21
 
25
- def initialize(context, &root)
22
+ def initialize(context = nil, &root)
26
23
  @context = context
27
24
  @root = root
28
25
  @output = StringIO.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ruby2html
4
- VERSION = '1.5.6'
4
+ VERSION = '1.5.8'
5
5
  end
data/lib/gem/ruby2html.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'cgi'
4
+ require 'stringio'
5
+ require 'htmlbeautifier'
6
+
3
7
  Dir.glob(File.join(File.dirname(__FILE__), 'ruby2html', '**', '*.rb')).each do |file|
4
8
  require file
5
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby2html
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - sebi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-17 00:00:00.000000000 Z
11
+ date: 2024-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: htmlbeautifier