obf 0.6.18 → 0.6.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/pdf.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7c3abd85b51992f1f4799c614b9bd9bbf7ebc4a
4
- data.tar.gz: bb987c80108a276f15cbd59df075a695f506bd2f
3
+ metadata.gz: b2815be4140640aaa622c43cb3fbbaf40519f998
4
+ data.tar.gz: 6b64fe415b61f20a67af3835bd8db7a3359ad22f
5
5
  SHA512:
6
- metadata.gz: 499b6a223fb47fdd8d69d0507aebe7948fbebaf008e259ae10fb3d2a4b252873ba51af9a32fa3ac847491ce78033be987a09ad3c573f1ce0e95b0cdb532ad1b9
7
- data.tar.gz: 8e68996c743a16a0cd64f3a0323f514bc090069ab9bd65a7987136ee504a880fbb446f375cd10245536b148b8ca3356756ed8caef030c97c29050bdff83c8c0a
6
+ metadata.gz: 39179bf47ea2a1066365340a089c1b2c1a101a93aec599aca2a1c1df5de7b6d462a69e93ca1ebb212d47f401559a346c34ad40b905e3783cd8090a2b13d130a5
7
+ data.tar.gz: 7009e29b6c7e865613ce199894010fb595407761d2283d3f1f9ec9fe8ab339ac3e9e33a3c6e4bcd3383740da22039da32a925f2b548a75ab4605620eebd5d4f4
@@ -141,8 +141,10 @@ module OBF::PDF
141
141
  pdf.fill_color "ffffff"
142
142
  pdf.stroke_color "eeeeee"
143
143
  pdf.fill_and_stroke_rounded_rectangle [button_width - 25, button_height - 5], 20, text_height, 5
144
- pdf.fill_color "000000"
145
- pdf.formatted_text_box [{:text => page, :anchor => "page#{page}"}], :at => [button_width - 25, button_height - 5], :width => 20, :height => text_height, :align => :center, :valign => :center
144
+ pdf.fill_color "000000"
145
+ if page
146
+ pdf.formatted_text_box [{:text => page, :anchor => "page#{page}"}], :at => [button_width - 25, button_height - 5], :width => 20, :height => text_height, :align => :center, :valign => :center
147
+ end
146
148
  end
147
149
 
148
150
  pdf.fill_color "000000"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.18
4
+ version: 0.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer