builder_quill_content 1.2.0 → 1.2.1
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 +4 -4
- data/builder_quill_content-1.2.0.gem +0 -0
- data/builder_quill_content.gemspec +8 -8
- data/lib/builder_quill_content/version.rb +1 -1
- data/lib/convert_inline.rb +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d69e69b06a06aeafa2bc2f53750a5eba9636ab4cfbeeb93ffb11aafebf16cc1d
|
|
4
|
+
data.tar.gz: bf3bea2def8c509934b210386bacdb32ffbcc1b011d019dc9d2270440e7551fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62dfd4769ac786e5dbfca6290b8bdd0fbb896433c7cffbf2358061c7b29fe3a6f54b7c9d0897e77f77625bd772cd6e5fe28baad7388fe1a78a71c3aa80e754e8
|
|
7
|
+
data.tar.gz: baac23da0c5c0c7ac2a8decea56286785636391d0ba40367fa868675bf65f756f25908626590bdacb745f6048a99f29c0de3c11ce4181091964885798901282c
|
|
Binary file
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
require_relative 'lib/builder_quill_content/version'
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name =
|
|
4
|
+
spec.name = 'builder_quill_content'
|
|
5
5
|
spec.version = BuilderQuillContent::VERSION
|
|
6
|
-
spec.authors = [
|
|
7
|
-
spec.email = [
|
|
6
|
+
spec.authors = ['Michael Tran']
|
|
7
|
+
spec.email = ['mictran205@gmail.com']
|
|
8
8
|
|
|
9
|
-
spec.summary =
|
|
10
|
-
spec.homepage =
|
|
11
|
-
spec.license =
|
|
9
|
+
spec.summary = 'Convert quill content to html for wakuwaku'
|
|
10
|
+
spec.homepage = 'https://github.com/1PACVietnam/wakuwaku-builder_quill_content'
|
|
11
|
+
spec.license = 'MIT'
|
|
12
12
|
# spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
|
13
13
|
|
|
14
14
|
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
24
24
|
end
|
|
25
|
-
spec.bindir =
|
|
25
|
+
spec.bindir = 'exe'
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
27
|
-
spec.require_paths = [
|
|
27
|
+
spec.require_paths = ['lib']
|
|
28
28
|
end
|
data/lib/convert_inline.rb
CHANGED
|
@@ -58,9 +58,10 @@ class ConvertInline
|
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
def image
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
invalid_cap = @insert['wk-image']['caption'].nil? || @insert['wk-image']['caption'].strip.empty?
|
|
62
|
+
img_src = @insert['wk-image']['src'] || @attributes['src'] || @insert['wk-image']
|
|
63
|
+
img_cap = invalid_cap ? '' : @insert['wk-image']['caption']
|
|
64
|
+
img_alt = invalid_cap ? args[:title] : @insert['wk-image']['caption']
|
|
64
65
|
return '' if img_src.nil?
|
|
65
66
|
|
|
66
67
|
data = '<figure class="post-content-image-container">'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: builder_quill_content
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Tran
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-11-
|
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|
|
@@ -26,6 +26,7 @@ files:
|
|
|
26
26
|
- Rakefile
|
|
27
27
|
- bin/console
|
|
28
28
|
- bin/setup
|
|
29
|
+
- builder_quill_content-1.2.0.gem
|
|
29
30
|
- builder_quill_content.gemspec
|
|
30
31
|
- lib/builder_quill_content.rb
|
|
31
32
|
- lib/builder_quill_content/version.rb
|