pfa 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pfa/table_builder.rb +5 -4
- data/lib/pfa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bfb7e09164010d3d807e9628023cf47f21a479e8737242c2f17df9b689bc11f
|
4
|
+
data.tar.gz: 4e0c56a56ad4033149026324c88718ef3944b71035a13c51cd7d6c733c7a6576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bee78bbe42fd523238fe060b14cca90334ef8ba682098bbc5e28782327f35ae1c11f4070310db5bb4ba72a9097091340371921ed837fd18ea89ec013259a5ab
|
7
|
+
data.tar.gz: 4828e97db0bed2878d08df99e0733c1ffdd6d7690f069fe4cc77a9ea34b7fed141bb38a060a7593f60b2c1bf4fc1217fed978f8365520fc418639876564fbc63
|
data/lib/pfa/table_builder.rb
CHANGED
@@ -80,12 +80,13 @@ class TableBuilder < AnyBuilder
|
|
80
80
|
#
|
81
81
|
# Une fonte est-elle définie ?
|
82
82
|
#
|
83
|
-
options.key?(:font) || options.merge!(font: {name:'Arial', size:8})
|
84
|
-
options[:font][:name]
|
85
|
-
options[:font][:size]
|
83
|
+
options.key?(:font) || options.merge!(font: {name:'Arial', size:8, style: :normal})
|
84
|
+
options[:font][:name] ||= 'Arial'
|
85
|
+
options[:font][:size] ||= 8
|
86
|
+
options[:font][:style] ||= :normal
|
86
87
|
|
87
88
|
pdf.update do
|
88
|
-
font(options[:font][:name], **{size: options[:font][:size]})
|
89
|
+
font(options[:font][:name], **{size: options[:font][:size], style:options[:font][:style]})
|
89
90
|
if options[:rotated]
|
90
91
|
#
|
91
92
|
# Il faut écrire la table de travers
|
data/lib/pfa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhilippePerret
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yaml
|