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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 67d0f7c76e86cb16aa718ed1b4868ff957878227
4
- data.tar.gz: efde21663754a80ab324d80bfb04935fbd712bb2
2
+ SHA256:
3
+ metadata.gz: 464efb77c678a0b0e3e0027fcb31008ab6df1a2e78b9d9ae0ecfc39f173863ba
4
+ data.tar.gz: f2d86c56e5e8671cdfeec2df5d48b6011b35580245201f62a78328fadbcaa2f1
5
5
  SHA512:
6
- metadata.gz: 4f47e1fddc20d3967cefbb9ee8397e49ef52e2a94479fecc9393f55ff49e7ed5ad4def7cc47ebfb6814b5f321484e5cf008230ba55226d3240a0c8206e7e2145
7
- data.tar.gz: 5edbcb7ce66dafa336a02baee0dbe41fda7faf332db8579e6c7bf591fe1617c28f4e8378c9a6f059a6e7b610665aca57387165395f5db5072d4a317c4f90abda
6
+ metadata.gz: '0289085cedecd1c97daf05fbdbe507d88324bc301435abbc30dde0c873f991ab284840ec65fa31c778de87dfd8f3d12cfc9a75dd59e0bc246b69a74ebcd46011'
7
+ data.tar.gz: 745d2fc688b79c66ca747b75022af33e78f93f6d4e2be223d06e8137355c2bcb50046265cacdafaf6c4cb6886538ec50e78d155bfedd7419b76ee40b76063fce
@@ -1,11 +1,23 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.1.10
4
- - 2.2.8
5
- - 2.3.5
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
- - gem install bundler
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
@@ -1,3 +1,7 @@
1
+ # v0.4.4 - 2020-01-06
2
+
3
+ Fix exception occurring with some document contents
4
+
1
5
  # v0.4.3 - 2017-12-15
2
6
 
3
7
  Handle files smaller than 6144 bytes. Relaxed version requirements.
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.
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "bundler"
27
27
  spec.add_development_dependency "rake"
28
28
  spec.add_development_dependency "minitest"
29
- spec.add_development_dependency "fakeweb"
29
+ spec.add_development_dependency "webmock"
30
30
  end
@@ -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, xml)
61
+ xml = @tpl_content_xml.sub(CONTENT_REGEX) { xml }
62
62
 
63
63
  xml = xslt_tranform(xml, Html2Odt::XHTML2ODT_STYLES_XSL)
64
64
 
@@ -1,3 +1,3 @@
1
1
  module Html2Odt
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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: 2017-12-15 00:00:00.000000000 Z
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: fakeweb
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
- rubyforge_project:
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