booklab-sml 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booklab/sml/rules/video.rb +6 -2
- data/lib/booklab/sml/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951d1fb671a0362c10cc7fa76e5ed9d8b498ca314cedc3ab0b682aa2513fd0f2
|
4
|
+
data.tar.gz: 6b2e52cc0076da731bb780426b8c915139890a75410bc064b98dd328a13b511c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306b7e3297d818b0d94f357ef07a54cbde6cec8cd0335e29aebe84120f12fdcfc4ae081e4620d655373d8d816a61ffd14669675dda402351c2c0cb778392076c
|
7
|
+
data.tar.gz: 55b623da9624ef8bf7f8ea2df272b4815d00a7125c79b7dfd87009790418fe664f11551d86742b8b799b4b61fac6d146372a752d42cbfd6dde0ca05c73aa0f22
|
@@ -11,9 +11,13 @@ module BookLab::SML::Rules
|
|
11
11
|
|
12
12
|
return "" if attrs[:src].blank?
|
13
13
|
|
14
|
+
width = attrs[:width]
|
15
|
+
if width == 0 || width.blank?
|
16
|
+
width = "100%"
|
17
|
+
end
|
18
|
+
|
14
19
|
video_attrs = html_attrs(
|
15
|
-
width:
|
16
|
-
height: attrs[:height]
|
20
|
+
width: width
|
17
21
|
)
|
18
22
|
|
19
23
|
out = <<~HTML
|
data/lib/booklab/sml/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: booklab-sml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -110,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
|
114
|
-
rubygems_version: 2.7.8
|
113
|
+
rubygems_version: 3.0.1
|
115
114
|
signing_key:
|
116
115
|
specification_version: 4
|
117
116
|
summary: SML is a rich text format for describe of the BookLab rich contents.
|