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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 561d0b3f786d5514b046221b73e9d9056b8ea4b41e74c91bb6ddfd41ce6919fc
4
- data.tar.gz: 062e1f340e3923cb3f5e977844a2bc9acc8de1d44496cd3a9dae19d08de92c83
2
+ SHA1:
3
+ metadata.gz: 9603b557fe4954d39ebb8b15e64672a2fccf54a9
4
+ data.tar.gz: 0f7960beb896714a00d75d09db73781b176ede6f
5
5
  SHA512:
6
- metadata.gz: c15b086a652768a8199d45ba92ad67f3d2f1d920757d2605b3903f0b41c2f05af8a23be7234c4ef5805f32f368e8a7c44180d133584216f65f49f8e6d50c0538
7
- data.tar.gz: 3b9b7907b90d3316dc63afa19e52df2c0d0b6e5e085f3454077cf78bd30916458b582093d403d998450123300e067a7ebf19bc69833bd6d0ddf2aff608b008f6
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
- * you can provide an `io:` param to the report, so you can use templates stored in the database.
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)
@@ -1,3 +1,3 @@
1
1
  module ODFReport
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -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', "~> 1.2.0")
27
+ s.add_runtime_dependency('rubyzip', ">= 1.3.0")
28
28
  s.add_runtime_dependency('nokogiri', ">= 1.5.0")
29
29
 
30
30
  end
@@ -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.0
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-01-28 00:00:00.000000000 Z
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.2.0
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.2.0
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.7.6
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