htmltoword 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/htmltoword/version.rb +1 -1
- data/xslt/html_to_wordml.xslt +131 -39
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67a12583504ea03b821629e247156f16d2751e99
|
4
|
+
data.tar.gz: 69ae5cdf88030ee1ed66ad8008c0ffa9a1f3ca60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88bc7b5d6b0623619bbb1479dc7eac5fd79b48a55b4fd9fd1aa79abc943551ba801c2e05e49d8010c51b5c200988e6611a11f30a6c7de4c9a65e6d3458883c86
|
7
|
+
data.tar.gz: d31ec61dc8d1757c8a327ec26323323929c809995dc10856ba163c5a8537785e598a6e93298e08e4eebdd3bbb3877dcdf19e4c73cd60bea8c269026d802d8ed3
|
data/lib/htmltoword/version.rb
CHANGED
data/xslt/html_to_wordml.xslt
CHANGED
@@ -50,15 +50,17 @@
|
|
50
50
|
|
51
51
|
<xsl:template match="body/*[not(*)]">
|
52
52
|
<w:p>
|
53
|
+
<xsl:call-template name="text-alignment" />
|
53
54
|
<w:r>
|
54
55
|
<w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
|
55
56
|
</w:r>
|
56
57
|
</w:p>
|
57
58
|
</xsl:template>
|
58
59
|
|
59
|
-
<xsl:template match="div[not(ancestor::p) and not(descendant::div) and not(descendant::p) and not(descendant::h1) and not(descendant::h2) and not(descendant::h3) and not(descendant::h4) and not(descendant::h5) and not(descendant::h6) and not(descendant::table) and not(descendant::li)]">
|
60
|
+
<xsl:template match="div[not(ancestor::td) and not(ancestor::th) and not(ancestor::p) and not(descendant::div) and not(descendant::p) and not(descendant::h1) and not(descendant::h2) and not(descendant::h3) and not(descendant::h4) and not(descendant::h5) and not(descendant::h6) and not(descendant::table) and not(descendant::li)]">
|
60
61
|
<xsl:comment>Divs should create a p if nothing above them has and nothing below them will</xsl:comment>
|
61
62
|
<w:p>
|
63
|
+
<xsl:call-template name="text-alignment" />
|
62
64
|
<xsl:apply-templates />
|
63
65
|
</w:p>
|
64
66
|
</xsl:template>
|
@@ -67,7 +69,8 @@
|
|
67
69
|
<xsl:apply-templates />
|
68
70
|
</xsl:template>
|
69
71
|
|
70
|
-
|
72
|
+
<!-- TODO: make this prettier. Headings shouldn't enter in template from L51 -->
|
73
|
+
<xsl:template match="body/h1|body/h2|body/h3|body/h4|body/h5|body/h6|h1|h2|h3|h4|h5|h6">
|
71
74
|
<w:p>
|
72
75
|
<w:r>
|
73
76
|
<w:rPr>
|
@@ -80,6 +83,7 @@
|
|
80
83
|
|
81
84
|
<xsl:template match="p">
|
82
85
|
<w:p>
|
86
|
+
<xsl:call-template name="text-alignment" />
|
83
87
|
<xsl:apply-templates />
|
84
88
|
</w:p>
|
85
89
|
</xsl:template>
|
@@ -92,9 +96,13 @@
|
|
92
96
|
</w:p>
|
93
97
|
</xsl:template>
|
94
98
|
|
95
|
-
<xsl:template match="span[preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div]
|
96
|
-
|a[preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div]
|
97
|
-
|small[
|
99
|
+
<xsl:template match="span[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
100
|
+
|a[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
101
|
+
|small[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
102
|
+
|strong[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
103
|
+
|em[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
104
|
+
|i[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]
|
105
|
+
|b[not(ancestor::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]">
|
98
106
|
<xsl:comment>
|
99
107
|
In the following situation:
|
100
108
|
|
@@ -113,7 +121,7 @@
|
|
113
121
|
</w:p>
|
114
122
|
</xsl:template>
|
115
123
|
|
116
|
-
<xsl:template match="text()[preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div]">
|
124
|
+
<xsl:template match="text()[not(parent::td) and (preceding-sibling::h1 or preceding-sibling::h2 or preceding-sibling::h3 or preceding-sibling::h4 or preceding-sibling::h5 or preceding-sibling::h6 or preceding-sibling::table or preceding-sibling::p or preceding-sibling::ol or preceding-sibling::ul or preceding-sibling::div or following-sibling::h1 or following-sibling::h2 or following-sibling::h3 or following-sibling::h4 or following-sibling::h5 or following-sibling::h6 or following-sibling::table or following-sibling::p or following-sibling::ol or following-sibling::ul or following-sibling::div)]">
|
117
125
|
<xsl:comment>
|
118
126
|
In the following situation:
|
119
127
|
|
@@ -176,19 +184,36 @@
|
|
176
184
|
|
177
185
|
<xsl:template match="details" />
|
178
186
|
|
187
|
+
<xsl:template name="tableborders">
|
188
|
+
<xsl:variable name="border">
|
189
|
+
<xsl:choose>
|
190
|
+
<xsl:when test="contains(concat(' ', @class, ' '), ' table-bordered ')">6</xsl:when>
|
191
|
+
<xsl:when test="not(@border)">0</xsl:when>
|
192
|
+
<xsl:otherwise><xsl:value-of select="./@border * 6"/></xsl:otherwise>
|
193
|
+
</xsl:choose>
|
194
|
+
</xsl:variable>
|
195
|
+
<xsl:variable name="bordertype">
|
196
|
+
<xsl:choose>
|
197
|
+
<xsl:when test="$border=0">none</xsl:when>
|
198
|
+
<xsl:otherwise>single</xsl:otherwise>
|
199
|
+
</xsl:choose>
|
200
|
+
</xsl:variable>
|
201
|
+
<w:tblBorders>
|
202
|
+
<w:top w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
203
|
+
<w:left w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
204
|
+
<w:bottom w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
205
|
+
<w:right w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
206
|
+
<w:insideH w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
207
|
+
<w:insideV w:val="{$bordertype}" w:sz="{$border}" w:space="0" w:color="auto"/>
|
208
|
+
</w:tblBorders>
|
209
|
+
</xsl:template>
|
210
|
+
|
179
211
|
<xsl:template match="table">
|
180
212
|
<w:tbl>
|
181
213
|
<w:tblPr>
|
182
214
|
<w:tblStyle w:val="TableGrid"/>
|
183
215
|
<w:tblW w:w="0" w:type="auto"/>
|
184
|
-
<
|
185
|
-
<w:top w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
186
|
-
<w:left w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
187
|
-
<w:bottom w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
188
|
-
<w:right w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
189
|
-
<w:insideH w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
190
|
-
<w:insideV w:val="none" w:sz="0" w:space="0" w:color="auto"/>
|
191
|
-
</w:tblBorders>
|
216
|
+
<xsl:call-template name="tableborders"/>
|
192
217
|
<w:tblLook w:val="0600" w:firstRow="0" w:lastRow="0" w:firstColumn="0" w:lastColumn="0" w:noHBand="1" w:noVBand="1"/>
|
193
218
|
</w:tblPr>
|
194
219
|
<w:tblGrid>
|
@@ -203,53 +228,120 @@
|
|
203
228
|
<xsl:apply-templates />
|
204
229
|
</xsl:template>
|
205
230
|
|
231
|
+
<xsl:template match="thead">
|
232
|
+
<xsl:choose>
|
233
|
+
<xsl:when test="count(./tr) = 0">
|
234
|
+
<w:tr><xsl:apply-templates /></w:tr>
|
235
|
+
</xsl:when>
|
236
|
+
<xsl:otherwise>
|
237
|
+
<xsl:apply-templates />
|
238
|
+
</xsl:otherwise>
|
239
|
+
</xsl:choose>
|
240
|
+
</xsl:template>
|
241
|
+
|
206
242
|
<xsl:template match="tr">
|
207
|
-
<
|
208
|
-
<
|
209
|
-
|
243
|
+
<xsl:if test="string-length(.) > 0">
|
244
|
+
<w:tr>
|
245
|
+
<xsl:apply-templates />
|
246
|
+
</w:tr>
|
247
|
+
</xsl:if>
|
210
248
|
</xsl:template>
|
211
249
|
|
212
|
-
<xsl:template match="
|
250
|
+
<xsl:template match="th">
|
213
251
|
<w:tc>
|
214
252
|
<w:p>
|
215
253
|
<w:r>
|
254
|
+
<w:rPr>
|
255
|
+
<w:b />
|
256
|
+
</w:rPr>
|
216
257
|
<w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
|
217
258
|
</w:r>
|
218
259
|
</w:p>
|
219
260
|
</w:tc>
|
220
261
|
</xsl:template>
|
221
262
|
|
222
|
-
<xsl:template match="
|
223
|
-
<
|
263
|
+
<xsl:template match="td">
|
264
|
+
<w:tc>
|
265
|
+
<xsl:call-template name="block">
|
266
|
+
<xsl:with-param name="current" select="." />
|
267
|
+
<xsl:with-param name="class" select="@class" />
|
268
|
+
<xsl:with-param name="style" select="@style" />
|
269
|
+
</xsl:call-template>
|
270
|
+
</w:tc>
|
271
|
+
</xsl:template>
|
272
|
+
|
273
|
+
<xsl:template name="block">
|
274
|
+
<xsl:param name="current" />
|
275
|
+
<xsl:param name="class" />
|
276
|
+
<xsl:param name="style" />
|
277
|
+
<xsl:if test="count($current/*|$current/text()) = 0">
|
278
|
+
<w:p/>
|
279
|
+
</xsl:if>
|
280
|
+
<xsl:for-each select="$current/*|$current/text()">
|
224
281
|
<xsl:choose>
|
225
|
-
<xsl:when test="
|
226
|
-
<
|
227
|
-
|
228
|
-
<w:i />
|
229
|
-
</w:rPr>
|
230
|
-
<w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
|
231
|
-
</w:r>
|
282
|
+
<xsl:when test="name(.) = 'table'">
|
283
|
+
<xsl:apply-templates select="." />
|
284
|
+
<w:p/>
|
232
285
|
</xsl:when>
|
233
|
-
<xsl:when test="
|
234
|
-
<
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<
|
239
|
-
</
|
286
|
+
<xsl:when test="contains('|p|h1|h2|h3|h4|h5|h6|ul|ol|', concat('|', name(.), '|'))">
|
287
|
+
<xsl:apply-templates select="." />
|
288
|
+
</xsl:when>
|
289
|
+
<xsl:when test="descendant::table|descendant::p|descendant::h1|descendant::h2|descendant::h3|descendant::h4|descendant::h5|descendant::h6|descendant::li">
|
290
|
+
<xsl:call-template name="block">
|
291
|
+
<xsl:with-param name="current" select="."/>
|
292
|
+
</xsl:call-template>
|
240
293
|
</xsl:when>
|
241
294
|
<xsl:otherwise>
|
242
|
-
<w:
|
243
|
-
<
|
244
|
-
|
295
|
+
<w:p>
|
296
|
+
<xsl:call-template name="text-alignment">
|
297
|
+
<xsl:with-param name="class" select="$class" />
|
298
|
+
<xsl:with-param name="style" select="$style" />
|
299
|
+
</xsl:call-template>
|
300
|
+
<xsl:apply-templates select="." />
|
301
|
+
</w:p>
|
245
302
|
</xsl:otherwise>
|
246
303
|
</xsl:choose>
|
247
|
-
</xsl:
|
304
|
+
</xsl:for-each>
|
248
305
|
</xsl:template>
|
249
306
|
|
307
|
+
<xsl:template match="text()">
|
308
|
+
<xsl:if test="string-length(.) > 0">
|
309
|
+
<w:r>
|
310
|
+
<xsl:if test="ancestor::i or ancestor::em">
|
311
|
+
<w:rPr>
|
312
|
+
<w:i />
|
313
|
+
</w:rPr>
|
314
|
+
</xsl:if>
|
315
|
+
<xsl:if test="ancestor::b or ancestor::strong">
|
316
|
+
<w:rPr>
|
317
|
+
<w:b />
|
318
|
+
</w:rPr>
|
319
|
+
</xsl:if>
|
320
|
+
<w:t xml:space="preserve"><xsl:value-of select="."/></w:t>
|
321
|
+
</w:r>
|
322
|
+
</xsl:if>
|
323
|
+
</xsl:template>
|
250
324
|
|
251
325
|
<xsl:template match="*">
|
252
326
|
<xsl:apply-templates/>
|
253
327
|
</xsl:template>
|
254
328
|
|
255
|
-
|
329
|
+
<xsl:template name="text-alignment">
|
330
|
+
<xsl:param name="class" select="@class" />
|
331
|
+
<xsl:param name="style" select="@style" />
|
332
|
+
<xsl:variable name="alignment">
|
333
|
+
<xsl:choose>
|
334
|
+
<xsl:when test="contains(concat(' ', $class, ' '), ' center ') or contains(translate(normalize-space($style),' ',''), 'text-align:center')">center</xsl:when>
|
335
|
+
<xsl:when test="contains(concat(' ', $class, ' '), ' right ') or contains(translate(normalize-space($style),' ',''), 'text-align:right')">right</xsl:when>
|
336
|
+
<xsl:when test="contains(concat(' ', $class, ' '), ' left ') or contains(translate(normalize-space($style),' ',''), 'text-align:left')">left</xsl:when>
|
337
|
+
<xsl:when test="contains(concat(' ', $class, ' '), ' justify ') or contains(translate(normalize-space($style),' ',''), 'text-align:justify')">both</xsl:when>
|
338
|
+
<xsl:otherwise></xsl:otherwise>
|
339
|
+
</xsl:choose>
|
340
|
+
</xsl:variable>
|
341
|
+
<xsl:if test="string-length(normalize-space($alignment)) > 0">
|
342
|
+
<w:pPr>
|
343
|
+
<w:jc w:val="{$alignment}"/>
|
344
|
+
</w:pPr>
|
345
|
+
</xsl:if>
|
346
|
+
</xsl:template>
|
347
|
+
</xsl:stylesheet>
|
metadata
CHANGED
@@ -1,115 +1,115 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmltoword
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Nicholas Frandsen
|
7
|
+
- Nicholas Frandsen, Cristina Matonte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubyzip
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Convert html to word docx document.
|
98
98
|
email:
|
99
|
-
- nick.rowe.frandsen@gmail.com
|
99
|
+
- nick.rowe.frandsen@gmail.com, anitsirc1@gmail.com
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- README.md
|
105
|
+
- Rakefile
|
106
|
+
- lib/htmltoword.rb
|
104
107
|
- lib/htmltoword/document.rb
|
105
108
|
- lib/htmltoword/htmltoword_helper.rb
|
106
109
|
- lib/htmltoword/version.rb
|
107
|
-
- lib/htmltoword.rb
|
108
110
|
- templates/default.docx
|
109
111
|
- xslt/html_to_wordml.xslt
|
110
112
|
- xslt/style2.xslt
|
111
|
-
- README.md
|
112
|
-
- Rakefile
|
113
113
|
homepage: http://github.com/nickfrandsen/htmltoword
|
114
114
|
licenses:
|
115
115
|
- MIT
|
@@ -120,17 +120,17 @@ require_paths:
|
|
120
120
|
- lib
|
121
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- -
|
128
|
+
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.2.2
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: This simple gem allows you to create MS Word docx documents from simple html
|