isodoc 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +150 -0
- data/lib/isodoc/html.rb +1 -0
- data/lib/isodoc/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d32b7fb0ccf46bf00db077c1f952a95a39dc114c10c22ce24962a4dc7e084bec
|
4
|
+
data.tar.gz: 4f6af811725e65d76950fda577e1ef3ff6f2a9e0dd10f970f13799eb2ca21be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 294dd638a3e080df5d3b02d78d2d27a635353ddd911422ff7a65b7c6dc461c5c686c0663392807c46081184e7721c00e66b4f9e2cc5a9ada8971394b78b1ef97
|
7
|
+
data.tar.gz: '0428344db3cf6dceae24089c25e91f72e1fc1db90b03bca1e5bd48d927720c6e84379f08acb861621a91bace3af950357821ee396c842f05fa889ab3f51d5b6f'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/riboseinc/html2doc.git
|
3
|
+
revision: 6c69bb488b9adc2654276986c657b05bfa82f34d
|
4
|
+
specs:
|
5
|
+
html2doc (0.7.1)
|
6
|
+
asciimath
|
7
|
+
htmlentities (~> 4.3.4)
|
8
|
+
image_size
|
9
|
+
mime-types
|
10
|
+
nokogiri
|
11
|
+
ruby-xslt
|
12
|
+
thread_safe
|
13
|
+
uuidtools
|
14
|
+
|
15
|
+
PATH
|
16
|
+
remote: .
|
17
|
+
specs:
|
18
|
+
isodoc (0.6.2)
|
19
|
+
asciimath
|
20
|
+
html2doc
|
21
|
+
htmlentities (~> 4.3.4)
|
22
|
+
image_size
|
23
|
+
liquid
|
24
|
+
mime-types
|
25
|
+
nokogiri
|
26
|
+
roman-numerals
|
27
|
+
ruby-xslt
|
28
|
+
sass
|
29
|
+
thread_safe
|
30
|
+
uuidtools
|
31
|
+
|
32
|
+
GEM
|
33
|
+
remote: https://rubygems.org/
|
34
|
+
specs:
|
35
|
+
asciimath (1.0.4)
|
36
|
+
ast (2.4.0)
|
37
|
+
byebug (9.1.0)
|
38
|
+
coderay (1.1.2)
|
39
|
+
diff-lcs (1.3)
|
40
|
+
docile (1.3.1)
|
41
|
+
equivalent-xml (0.6.0)
|
42
|
+
nokogiri (>= 1.4.3)
|
43
|
+
ffi (1.9.23)
|
44
|
+
formatador (0.2.5)
|
45
|
+
guard (2.14.2)
|
46
|
+
formatador (>= 0.2.4)
|
47
|
+
listen (>= 2.7, < 4.0)
|
48
|
+
lumberjack (>= 1.0.12, < 2.0)
|
49
|
+
nenv (~> 0.1)
|
50
|
+
notiffany (~> 0.0)
|
51
|
+
pry (>= 0.9.12)
|
52
|
+
shellany (~> 0.0)
|
53
|
+
thor (>= 0.18.1)
|
54
|
+
guard-compat (1.2.1)
|
55
|
+
guard-rspec (4.7.3)
|
56
|
+
guard (~> 2.1)
|
57
|
+
guard-compat (~> 1.1)
|
58
|
+
rspec (>= 2.99.0, < 4.0)
|
59
|
+
htmlentities (4.3.4)
|
60
|
+
image_size (2.0.0)
|
61
|
+
json (2.1.0)
|
62
|
+
liquid (4.0.0)
|
63
|
+
listen (3.1.5)
|
64
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
65
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
66
|
+
ruby_dep (~> 1.2)
|
67
|
+
lumberjack (1.0.13)
|
68
|
+
method_source (0.9.0)
|
69
|
+
mime-types (3.1)
|
70
|
+
mime-types-data (~> 3.2015)
|
71
|
+
mime-types-data (3.2016.0521)
|
72
|
+
mini_portile2 (2.3.0)
|
73
|
+
nenv (0.3.0)
|
74
|
+
nokogiri (1.8.2)
|
75
|
+
mini_portile2 (~> 2.3.0)
|
76
|
+
notiffany (0.1.1)
|
77
|
+
nenv (~> 0.1)
|
78
|
+
shellany (~> 0.0)
|
79
|
+
parallel (1.12.1)
|
80
|
+
parser (2.5.1.0)
|
81
|
+
ast (~> 2.4.0)
|
82
|
+
powerpack (0.1.1)
|
83
|
+
pry (0.11.3)
|
84
|
+
coderay (~> 1.1.0)
|
85
|
+
method_source (~> 0.9.0)
|
86
|
+
rainbow (3.0.0)
|
87
|
+
rake (12.3.1)
|
88
|
+
rb-fsevent (0.10.3)
|
89
|
+
rb-inotify (0.9.10)
|
90
|
+
ffi (>= 0.5.0, < 2)
|
91
|
+
roman-numerals (0.3.0)
|
92
|
+
rspec (3.7.0)
|
93
|
+
rspec-core (~> 3.7.0)
|
94
|
+
rspec-expectations (~> 3.7.0)
|
95
|
+
rspec-mocks (~> 3.7.0)
|
96
|
+
rspec-core (3.7.1)
|
97
|
+
rspec-support (~> 3.7.0)
|
98
|
+
rspec-expectations (3.7.0)
|
99
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
100
|
+
rspec-support (~> 3.7.0)
|
101
|
+
rspec-mocks (3.7.0)
|
102
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
103
|
+
rspec-support (~> 3.7.0)
|
104
|
+
rspec-support (3.7.1)
|
105
|
+
rubocop (0.56.0)
|
106
|
+
parallel (~> 1.10)
|
107
|
+
parser (>= 2.5)
|
108
|
+
powerpack (~> 0.1)
|
109
|
+
rainbow (>= 2.2.2, < 4.0)
|
110
|
+
ruby-progressbar (~> 1.7)
|
111
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
112
|
+
ruby-progressbar (1.9.0)
|
113
|
+
ruby-xslt (0.9.10)
|
114
|
+
ruby_dep (1.5.0)
|
115
|
+
sass (3.5.6)
|
116
|
+
sass-listen (~> 4.0.0)
|
117
|
+
sass-listen (4.0.0)
|
118
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
119
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
120
|
+
shellany (0.0.1)
|
121
|
+
simplecov (0.16.1)
|
122
|
+
docile (~> 1.1)
|
123
|
+
json (>= 1.8, < 3)
|
124
|
+
simplecov-html (~> 0.10.0)
|
125
|
+
simplecov-html (0.10.2)
|
126
|
+
thor (0.20.0)
|
127
|
+
thread_safe (0.3.6)
|
128
|
+
timecop (0.9.1)
|
129
|
+
unicode-display_width (1.3.3)
|
130
|
+
uuidtools (2.1.5)
|
131
|
+
|
132
|
+
PLATFORMS
|
133
|
+
ruby
|
134
|
+
|
135
|
+
DEPENDENCIES
|
136
|
+
bundler (~> 1.15)
|
137
|
+
byebug (~> 9.1)
|
138
|
+
equivalent-xml (~> 0.6)
|
139
|
+
guard (~> 2.14)
|
140
|
+
guard-rspec (~> 4.7)
|
141
|
+
html2doc!
|
142
|
+
isodoc!
|
143
|
+
rake (~> 12.0)
|
144
|
+
rspec (~> 3.6)
|
145
|
+
rubocop (~> 0.50)
|
146
|
+
simplecov (~> 0.15)
|
147
|
+
timecop (~> 0.9)
|
148
|
+
|
149
|
+
BUNDLED WITH
|
150
|
+
1.16.2
|
data/lib/isodoc/html.rb
CHANGED
@@ -165,6 +165,7 @@ module IsoDoc
|
|
165
165
|
def move_images(docxml)
|
166
166
|
system "rm -r _images; mkdir _images"
|
167
167
|
docxml.xpath("//*[local-name() = 'img']").each do |i|
|
168
|
+
next if /^data:image/.match? i["src"]
|
168
169
|
matched = /\.(?<suffix>\S+)$/.match i["src"]
|
169
170
|
uuid = UUIDTools::UUID.random_create.to_s
|
170
171
|
new_full_filename = File.join("_images", "#{uuid}.#{matched[:suffix]}")
|
data/lib/isodoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -336,6 +336,7 @@ files:
|
|
336
336
|
- ".rubocop.yml"
|
337
337
|
- CODE_OF_CONDUCT.md
|
338
338
|
- Gemfile
|
339
|
+
- Gemfile.lock
|
339
340
|
- LICENSE
|
340
341
|
- README.adoc
|
341
342
|
- Rakefile
|
@@ -429,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
429
430
|
version: '0'
|
430
431
|
requirements: []
|
431
432
|
rubyforge_project:
|
432
|
-
rubygems_version: 2.
|
433
|
+
rubygems_version: 2.7.7
|
433
434
|
signing_key:
|
434
435
|
specification_version: 4
|
435
436
|
summary: Convert documents in IsoDoc into Word and HTML in AsciiDoc.
|