odf-report 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -3
- data/lib/odf-report/version.rb +1 -1
- data/odf-report.gemspec +1 -1
- data/spec/fields_spec.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9603b557fe4954d39ebb8b15e64672a2fccf54a9
|
4
|
+
data.tar.gz: 0f7960beb896714a00d75d09db73781b176ede6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c31b6efa59a4563028c434738547fddd7bf9520b77c5020343b5c1e2bd3a24d4324ef77ea22328a487a86a8d261ef5784a066122de3d2368b34991a9c40f283a
|
7
|
+
data.tar.gz: f2c540d70f4562ede248beac9e7631c8e158cdfbb0f8de353e31760d3d6578a4ccf552f52f9cde6559a0b9763c9749425b071d20f85c0a14bb14384b8b74709c
|
data/README.md
CHANGED
@@ -5,8 +5,7 @@ Gem for generating .odt files by making strings, images, tables and sections rep
|
|
5
5
|
|
6
6
|
### NEW
|
7
7
|
|
8
|
-
*
|
9
|
-
* now uses rubyzip ~> **1.2.0**
|
8
|
+
* uses newer rubyzip >= **1.3.0**
|
10
9
|
|
11
10
|
## INSTALL
|
12
11
|
|
@@ -162,7 +161,7 @@ def print
|
|
162
161
|
|
163
162
|
@ticket = Ticket.find(params[:id])
|
164
163
|
|
165
|
-
report = ODFReport::Report.new(Rails.root.join("/app/reports/ticket.odt") do |r|
|
164
|
+
report = ODFReport::Report.new(Rails.root.join("/app/reports/ticket.odt")) do |r|
|
166
165
|
|
167
166
|
r.add_field(:id, @ticket.id.to_s)
|
168
167
|
r.add_field(:created_by, @ticket.created_by)
|
data/lib/odf-report/version.rb
CHANGED
data/odf-report.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_development_dependency "faker"
|
25
25
|
s.add_development_dependency "launchy"
|
26
26
|
|
27
|
-
s.add_runtime_dependency('rubyzip', "
|
27
|
+
s.add_runtime_dependency('rubyzip', ">= 1.3.0")
|
28
28
|
s.add_runtime_dependency('nokogiri', ">= 1.5.0")
|
29
29
|
|
30
30
|
end
|
data/spec/fields_spec.rb
CHANGED
@@ -51,7 +51,7 @@ RSpec.describe "Fields" do
|
|
51
51
|
expect(table).not_to match(/\[COLUMN_02\]/)
|
52
52
|
expect(table).to match(/\[COLUMN_03\]/)
|
53
53
|
|
54
|
-
expect(table).to match(item.id)
|
54
|
+
expect(table).to match(item.id.to_s)
|
55
55
|
expect(table).to match(item.name)
|
56
56
|
|
57
57
|
end
|
@@ -67,7 +67,7 @@ RSpec.describe "Fields" do
|
|
67
67
|
|
68
68
|
section = @data.xml.xpath(".//text:section[@text:name='SECTION_01_#{idx+1}']").to_s
|
69
69
|
|
70
|
-
expect(section).to match(item.id)
|
70
|
+
expect(section).to match(item.id.to_s)
|
71
71
|
expect(section).to match(item.name)
|
72
72
|
|
73
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odf-report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Duarte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rubyzip
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.
|
89
|
+
version: 1.3.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.
|
96
|
+
version: 1.3.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: nokogiri
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.6.2
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Generates ODF files, given a template (.odt) and data, replacing tags
|