ruby2html 1.5.6 → 1.5.7

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: 4c498562007af49a60be8dd1d6940906d3d58f6eee36b9de93765da5ece5d1a0
4
+ data.tar.gz: b82ef6779e2f18d5330e0280e487461d6c6d8da18464627015675b4853e6a0cf
5
5
  SHA512:
6
- metadata.gz: ab5c2ece6828903693aaf318ba342e99fb50ef9aeb2d1d79a68ee627e19d411cfb6beca021e6cb26698a646092a3bd7136746a8eb07d3b26525db24f120da3a1
7
- data.tar.gz: cc432a7c9ad78536b3aac8a3826d603f64f1d2809ee3610ce2d77b3c307c38bbad272cf1bdde6ed97d4480201038f351690e5dbcc5f9b286d06a90cbcca5eee6
6
+ metadata.gz: 1a6c7fae2edab3ea80ce2dca50fff2802ed11919d0eff2c4875b64c9feb81812c4f5e1a7bcd1dcd2064c0d9103497f17eb55d563023d6a2f3847edd5e05ebdae
7
+ data.tar.gz: 9fca95689d5bc91c3b19a154f218498065b79a7f463c520d1d0c84bc21cf4d4a9d5e7d41a4323ed745a322da14f37590160637de5a176e61451bac3beca78fbf
@@ -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.7'
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.7
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