obf 0.6.11 → 0.6.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/external.rb +3 -0
  3. data/lib/obf/pdf.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e83da660c4f714d20fd7ace74c23534b0895d008
4
- data.tar.gz: 66f9206f95df5e47d1f38b4051269469ce3a46da
3
+ metadata.gz: 7106e269118fbe4503639ae2c3576f7bd5294b18
4
+ data.tar.gz: 715d0814dd43a7454ee3790c7729ee1148c15b1f
5
5
  SHA512:
6
- metadata.gz: 0596cd2785b684881e874fa24c9ec8c2be5795f357caaf543d4ff22b6558735040f3acee3fcc18fc08b29eb46d51fe7bc8147c2e7214e4e6270290c1377d0cbc
7
- data.tar.gz: 3f1088994d71cef23e77267ee1fe929c34d072f5e820a72a31c2aae41e523d3824d34d2fce61b1baabcc0eefc117915944231afddcd272d48c6977ff6c4540ec
6
+ metadata.gz: 6ff1e06cef534aa4a6fe125993a9bb393efcefdda7580236c9399cf819589e51cb8f082467a7945c93775dc97a08f56b11e2dcd1d66aa9c29b29b87a928f763f
7
+ data.tar.gz: f97890e6e41f782d5769c16e0a2dd9f0cb35cf37ca4c225eccf28926b466d119af86441573b4655c5a946dfc01bb57bc4e08785ce5b388175034b52767ce1e41
@@ -292,6 +292,9 @@ module OBF::External
292
292
  end
293
293
 
294
294
  def self.to_pdf(board, dest_path, opts)
295
+ if board && board['boards']
296
+ opts['packet'] = true
297
+ end
295
298
  tmp_path = OBF::Utils.temp_path("stash")
296
299
  if opts['packet']
297
300
  OBF::Utils.as_progress_percent(0, 0.3) do
@@ -80,7 +80,7 @@ module OBF::PDF
80
80
  pdf.fill_color "6D81D1"
81
81
  pdf.fill_and_stroke_polygon([5, 50], [35, 85], [35, 70], [95, 70], [95, 30], [35, 30], [35, 15])
82
82
  pdf.fill_color "ffffff"
83
- pdf.text_box "Go Back", :at => [10, 90], :width => 80, :height => 80, :align => :center, :valign => :center, :overflow => :shrink_to_fit
83
+ pdf.formatted_text_box [{:text => "Go Back", :anchor => "page1"}], :at => [10, 90], :width => 80, :height => 80, :align => :center, :valign => :center, :overflow => :shrink_to_fit
84
84
  pdf.fill_color "ffffff"
85
85
  pdf.fill_and_stroke_rounded_rectangle [110, 100], (doc_width - 200 - 20), 100, default_radius
86
86
  pdf.fill_color "DDDB54"
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.11
4
+ version: 0.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer