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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3d387a4fbedd246900150be67a80bf62ee70a70cf697b1a2a7a247080d879ad
4
- data.tar.gz: 956f8db0ca1d2f34e1f165f323e6db6d1f5e68a91dc886d6fd3cf3f1f7aa0886
3
+ metadata.gz: 8f60fbebeee21569fdf9af0bb7153a06ac7f3a8d3431d143750e96185c701c7e
4
+ data.tar.gz: 72f47514bce560d201ac2b22c6b6034a02550f2e50f76200e96fa003628756f5
5
5
  SHA512:
6
- metadata.gz: a72c96ffc8e41f7e38b28108107b12bec33a22e3b1722416e7b4d5a493ab3f47d6c3fab49a98b27969ba8235cb3ed6fff86f027a8c9ff5e4b3276af8d2d0a752
7
- data.tar.gz: 1f0de4f61007133d49c0dfcd0dd85e8a87f8445a59fb41ba5dd1001eeec4e1405402449389b3e1355a453ff5a21bf6fa7d4b8bfd1fc883c654feee83600e55f3
6
+ metadata.gz: 82babe7f90eb4445d2d2bebb16dcf5a1af869da69ac5fc4da0d14e24d456a00d80f390097b10b597dbc8ec69bf782dd04d1464ef0a73cd513b4f164267ca67e1
7
+ data.tar.gz: 38b3887266e6c666b117d85d8df810b8e3d168b1a03af71c06fcd1218a3b99af0228686896248074767a207b32bdc6e7d16a8826ba1b11680b4371648f956576
@@ -4,7 +4,7 @@
4
4
  require 'rubygems'
5
5
  require 'bundler/setup'
6
6
 
7
- require 'reverse_asciidoctor'
7
+ require 'reverse_adoc'
8
8
  require 'optparse'
9
9
  require 'fileutils'
10
10
 
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module ReverseAsciidoctor
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
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.6
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-28 00:00:00.000000000 Z
11
+ date: 2019-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri