pfa 1.4.2 → 1.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
2
  SHA256:
3
- metadata.gz: a1117156131b670d8c813d26c620add0828e2eb9912e87c4e0a5ae58069e864f
4
- data.tar.gz: f914a65c90a3913428916190d603b142273d737fbd0e0044ba921a1b394b7b50
3
+ metadata.gz: 1bfb7e09164010d3d807e9628023cf47f21a479e8737242c2f17df9b689bc11f
4
+ data.tar.gz: 4e0c56a56ad4033149026324c88718ef3944b71035a13c51cd7d6c733c7a6576
5
5
  SHA512:
6
- metadata.gz: 749899ac0955aae96f8fdff87d1c3b6a242c4107b8358985ecd9e513514593f387bef23e4e500c5c3c511f642583bad9a15d7627e6d2d91725a11c211a2717af
7
- data.tar.gz: 283d0c953edf40d5357e16b639fbcb9afd8ee77d4688fe8d5b4baeb183f4a28d467c61dceba9e9f69769b9d2c38a7f9c0b2df17392edb9a1807f1dd3ab64ce7e
6
+ metadata.gz: 7bee78bbe42fd523238fe060b14cca90334ef8ba682098bbc5e28782327f35ae1c11f4070310db5bb4ba72a9097091340371921ed837fd18ea89ec013259a5ab
7
+ data.tar.gz: 4828e97db0bed2878d08df99e0733c1ffdd6d7690f069fe4cc77a9ea34b7fed141bb38a060a7593f60b2c1bf4fc1217fed978f8365520fc418639876564fbc63
@@ -80,17 +80,18 @@ 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] ||= 'Arial'
85
- options[:font][:size] ||= 8
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
92
93
  #
93
- rotate(90, :origin => [bounds.width,bounds.height/2]) do
94
+ rotate(90, :origin => [bounds.width - 20,bounds.height/2 + 2]) do
94
95
  # text "La table complète du PFA"
95
96
  table(data_lines, data_table) do |tb|
96
97
  tb.row(0).style(borders:[:top, :left, :right], border_width:1, align: :center)
data/lib/pfa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module PFA
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.4"
3
3
  end
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.2
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-01 00:00:00.000000000 Z
11
+ date: 2023-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaml