booklab-sml 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/booklab/sml/rules/tr.rb +0 -1
- data/lib/booklab/sml/rules/video.rb +2 -2
- data/lib/booklab/sml/rules.rb +4 -1
- data/lib/booklab/sml/version.rb +1 -1
- data/lib/booklab-sml.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56fc0a29cbc671196acb289d7f236f5b103617373041ec2b23feb34ac78db6de
|
4
|
+
data.tar.gz: 1db16cd7128beaab435ec2339ed05719453271a0187abd4d007a65fd084d659d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513e3886c4d2d3076dbb3d4d461fb10f166fb4c69edaca308c05c56be2dddb1f7b69c6d0919349db34186482c4de41d1d1724f9585ad505c72c0a88dc9870bce
|
7
|
+
data.tar.gz: 8ce59ab35e7be50e55e2caaf15f614781aea7ee98ede4fe7bf69ffa14c9832e80f906445b6d4e954ba758709bf7a1553250a2e10dde4f21c0000e4485f242e3b
|
data/Rakefile
CHANGED
data/lib/booklab/sml/rules/tr.rb
CHANGED
@@ -11,10 +11,10 @@ module BookLab::SML::Rules
|
|
11
11
|
|
12
12
|
return "" if attrs[:src].blank?
|
13
13
|
|
14
|
-
video_attrs = html_attrs(
|
14
|
+
video_attrs = html_attrs(
|
15
15
|
width: attrs[:width],
|
16
16
|
height: attrs[:height]
|
17
|
-
|
17
|
+
)
|
18
18
|
|
19
19
|
out = <<~HTML
|
20
20
|
<video controls preload="no"#{video_attrs}>
|
data/lib/booklab/sml/rules.rb
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "booklab/sml/rules/base"
|
4
|
+
|
3
5
|
module BookLab::SML
|
4
6
|
module Rules
|
5
7
|
def self.all
|
6
8
|
return @rules if defined? @rules
|
7
9
|
rules = []
|
8
10
|
Dir.glob(::File.expand_path("rules/*.rb", __dir__)).each do |path|
|
9
|
-
require path
|
10
11
|
rule_name = ::File.basename(path, ".rb")
|
12
|
+
require "booklab/sml/rules/#{rule_name}"
|
13
|
+
|
11
14
|
next if rule_name == "base"
|
12
15
|
rules << "BookLab::SML::Rules::#{rule_name.classify}".constantize
|
13
16
|
end
|
data/lib/booklab/sml/version.rb
CHANGED
data/lib/booklab-sml.rb
CHANGED
@@ -2,13 +2,12 @@
|
|
2
2
|
|
3
3
|
require "active_support/concern"
|
4
4
|
require "booklab/sml/version"
|
5
|
+
require "booklab/sml/utils"
|
5
6
|
require "booklab/sml/rules"
|
6
7
|
require "booklab/sml/config"
|
7
|
-
require "booklab/sml/utils"
|
8
8
|
require "booklab/sml/renderer"
|
9
9
|
require "booklab/sml/base"
|
10
10
|
|
11
|
-
|
12
11
|
module BookLab
|
13
12
|
module SML
|
14
13
|
end
|