From d656a1d6e4aa85615bb7db12af950c2414acafba Mon Sep 17 00:00:00 2001 From: Vladimir Tamara Date: Thu, 26 Sep 2019 08:55:28 -0500 Subject: [PATCH] Allows rubyzip >= 1.3.0 and fixes tests --- README.md | 3 +-- lib/odf-report/version.rb | 2 +- odf-report.gemspec | 2 +- spec/fields_spec.rb | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 024c88f..eae517f 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,7 @@ Gem for generating .odt files by making strings, images, tables and sections rep ### NEW -* you can provide an `io:` param to the report, so you can use templates stored in the database. -* now uses rubyzip ~> **1.2.0** +* uses newer rubyzip >= **1.3.0** ## INSTALL diff --git a/lib/odf-report/version.rb b/lib/odf-report/version.rb index 21dc134..f6d1d9a 100644 --- a/lib/odf-report/version.rb +++ b/lib/odf-report/version.rb @@ -1,3 +1,3 @@ module ODFReport - VERSION = "0.6.0" + VERSION = "0.6.1" end diff --git a/odf-report.gemspec b/odf-report.gemspec index d1ec9a3..6aa7ac9 100644 --- a/odf-report.gemspec +++ b/odf-report.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |s| s.add_development_dependency "faker" s.add_development_dependency "launchy" - s.add_runtime_dependency('rubyzip', "~> 1.2.0") + s.add_runtime_dependency('rubyzip', ">= 1.3.0") s.add_runtime_dependency('nokogiri', ">= 1.5.0") end diff --git a/spec/fields_spec.rb b/spec/fields_spec.rb index dc3a75e..65a09cf 100644 --- a/spec/fields_spec.rb +++ b/spec/fields_spec.rb @@ -51,7 +51,7 @@ expect(table).not_to match(/\[COLUMN_02\]/) expect(table).to match(/\[COLUMN_03\]/) - expect(table).to match(item.id) + expect(table).to match(item.id.to_s) expect(table).to match(item.name) end @@ -67,7 +67,7 @@ section = @data.xml.xpath(".//text:section[@text:name='SECTION_01_#{idx+1}']").to_s - expect(section).to match(item.id) + expect(section).to match(item.id.to_s) expect(section).to match(item.name) end