reverse_adoc 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/bin/reverse_adoc +1 -1
- data/lib/reverse_asciidoctor/converters/img.rb +2 -2
- data/lib/reverse_asciidoctor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f60fbebeee21569fdf9af0bb7153a06ac7f3a8d3431d143750e96185c701c7e
|
4
|
+
data.tar.gz: 72f47514bce560d201ac2b22c6b6034a02550f2e50f76200e96fa003628756f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82babe7f90eb4445d2d2bebb16dcf5a1af869da69ac5fc4da0d14e24d456a00d80f390097b10b597dbc8ec69bf782dd04d1464ef0a73cd513b4f164267ca67e1
|
7
|
+
data.tar.gz: 38b3887266e6c666b117d85d8df810b8e3d168b1a03af71c06fcd1218a3b99af0228686896248074767a207b32bdc6e7d16a8826ba1b11680b4371648f956576
|
data/bin/reverse_adoc
CHANGED
@@ -26,7 +26,7 @@ module ReverseAsciidoctor
|
|
26
26
|
images_dir = dest_dir + 'images'
|
27
27
|
FileUtils.mkdir_p(images_dir)
|
28
28
|
|
29
|
-
ext, image_src_path = determine_image_src_path(imgdata)
|
29
|
+
ext, image_src_path = determine_image_src_path(imgdata, src)
|
30
30
|
image_dest_path = images_dir + "#{image_number}.#{ext}"
|
31
31
|
|
32
32
|
# puts "image_dest_path: #{image_dest_path.to_s}"
|
@@ -38,7 +38,7 @@ module ReverseAsciidoctor
|
|
38
38
|
image_dest_path.relative_path_from(dest_dir)
|
39
39
|
end
|
40
40
|
|
41
|
-
def determine_image_src_path(imgdata)
|
41
|
+
def determine_image_src_path(imgdata, src)
|
42
42
|
return copy_temp_file(imgdata) if imgdata
|
43
43
|
|
44
44
|
ext = File.extname(src).strip.downcase[1..-1]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reverse_adoc
|
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
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|