booklab-sml 0.2.6 → 0.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30e79485c7e85c457be39d1512c57fa025bcda9c879a23b18b0cfb4922f051fe
4
- data.tar.gz: 7ec715ebae02d3cbf5d2d0066b01092e43d49925bba72c0b55fdf93a2ded9019
3
+ metadata.gz: 951d1fb671a0362c10cc7fa76e5ed9d8b498ca314cedc3ab0b682aa2513fd0f2
4
+ data.tar.gz: 6b2e52cc0076da731bb780426b8c915139890a75410bc064b98dd328a13b511c
5
5
  SHA512:
6
- metadata.gz: dedcca0d0c032236827c67cdf1bba7d522a951bfcf4e6b0fe300c09f73abc912892d912a5aeb74cd63a786eeaa9cc63f4876b63767e57eda3b2a50e7f73950f3
7
- data.tar.gz: d63575938702e60ddc07e8f2d27e8d37ac303d57c5f14d7c43953e878f2588eeb7cea8b8eb1fdee3a45edd4909ef48482cf0f78b8613f7b4ca812f71a6efb781
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: attrs[:width],
16
- height: attrs[:height]
20
+ width: width
17
21
  )
18
22
 
19
23
  out = <<~HTML
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BookLab
4
4
  module SML
5
- VERSION = "0.2.6"
5
+ VERSION = "0.2.7"
6
6
  end
7
7
  end
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.6
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-14 00:00:00.000000000 Z
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
- rubyforge_project:
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.