html2odt 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +15 -3
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/html2odt.gemspec +1 -1
- data/lib/html2odt/document.rb +1 -1
- data/lib/html2odt/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 464efb77c678a0b0e3e0027fcb31008ab6df1a2e78b9d9ae0ecfc39f173863ba
|
4
|
+
data.tar.gz: f2d86c56e5e8671cdfeec2df5d48b6011b35580245201f62a78328fadbcaa2f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0289085cedecd1c97daf05fbdbe507d88324bc301435abbc30dde0c873f991ab284840ec65fa31c778de87dfd8f3d12cfc9a75dd59e0bc246b69a74ebcd46011'
|
7
|
+
data.tar.gz: 745d2fc688b79c66ca747b75022af33e78f93f6d4e2be223d06e8137355c2bcb50046265cacdafaf6c4cb6886538ec50e78d155bfedd7419b76ee40b76063fce
|
data/.travis.yml
CHANGED
@@ -1,11 +1,23 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.1.10
|
4
|
-
- 2.2.
|
5
|
-
- 2.3.
|
4
|
+
- 2.2.10
|
5
|
+
- 2.3.7
|
6
|
+
- 2.4.9
|
7
|
+
- 2.5.7
|
8
|
+
- 2.6.5
|
9
|
+
- 2.7.0
|
6
10
|
|
7
11
|
before_install:
|
8
|
-
|
12
|
+
# Bundler 2.0 requires at least Ruby 2.3. We need to explicitly install an
|
13
|
+
# older version of bundler for older Ruby versions since they can't / won't
|
14
|
+
# check their required versions on their own.
|
15
|
+
- |
|
16
|
+
if [[ "$(rvm current)" =~ ^ruby-2\.[012] ]]; then
|
17
|
+
gem install bundler -v '< 2.0'
|
18
|
+
else
|
19
|
+
gem install bundler
|
20
|
+
fi
|
9
21
|
|
10
22
|
cache: bundler
|
11
23
|
sudo: false
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -12,7 +12,7 @@ line tools by Aurélien Bompard are called **`x`**`html2odt`?
|
|
12
12
|
|
13
13
|
This project uses [nokogiri](http://www.nokogiri.org) to parse the HTML and
|
14
14
|
apply the XSLT transformations. Nokogiri implements a forgiving HTML parser and
|
15
|
-
tries be as forgiving as possible. Furthermore, the basic API expects HTML
|
15
|
+
tries to be as forgiving as possible. Furthermore, the basic API expects HTML
|
16
16
|
fragments, not full documents. We are not expecting the users of this library to
|
17
17
|
pass in a complete, valid XHTML document. A reasonably good piece of HTML should
|
18
18
|
be good enough. Therefore we skipped the `X` in the name as well.
|
data/html2odt.gemspec
CHANGED
data/lib/html2odt/document.rb
CHANGED
@@ -58,7 +58,7 @@ class Html2Odt::Document
|
|
58
58
|
xml = xslt_tranform(html, Html2Odt::XHTML2ODT_XSL)
|
59
59
|
|
60
60
|
xml = xml.sub('<?xml version="1.0" encoding="utf-8"?>', '')
|
61
|
-
xml = @tpl_content_xml.sub(CONTENT_REGEX
|
61
|
+
xml = @tpl_content_xml.sub(CONTENT_REGEX) { xml }
|
62
62
|
|
63
63
|
xml = xslt_tranform(xml, Html2Odt::XHTML2ODT_STYLES_XSL)
|
64
64
|
|
data/lib/html2odt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2odt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregor Schmidt (Planio)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dimensions
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: webmock
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -180,8 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
|
184
|
-
rubygems_version: 2.6.13
|
183
|
+
rubygems_version: 3.1.2
|
185
184
|
signing_key:
|
186
185
|
specification_version: 4
|
187
186
|
summary: html2odt generates ODT documents based on HTML fragments
|