obf 0.6.35 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/obf/pdf.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 228e90f86ce6db43787977a6bb7cd1f6f4d39900
4
- data.tar.gz: 203727214e253dd6a74d5a75447ae573e53b3aa7
3
+ metadata.gz: c07bb403d66fdbee42cbbb159cfd1a7ef5d271f7
4
+ data.tar.gz: 977bdf19ad21ddb9e91def65e541efd55b52134e
5
5
  SHA512:
6
- metadata.gz: 37fd4c26cef380a016a823e1aad43afa27a6a276b19e4bc84b411aac4cf05f1b9348780ede7ea9832582db17cd1987aa318bfd358a5ce496753724b084e6f0fe
7
- data.tar.gz: f2724e1433bdf347639f95502df4e56162bdff565f932c75ee6562a5aa9f8b1769afb736df20c0e456591db4171f723c323f9477725d7d61565959014546aedc
6
+ metadata.gz: 138e3f361e58a666a72da6ed3b6a6598798818727b361755d66ddbf46fce63b3f32b08be9ab6c989fa706cdb2b62f67d4f307974bbda878d500c4528c6b5438c
7
+ data.tar.gz: ffcb7320386592dba50c15bffe2a7dd2e379dff06f202b1e99c1c59a49c646f050b768a4ad5bfb8df7e91ff06dd1fc1e74b0606e60d90041532a6659ad068d2e
@@ -66,14 +66,14 @@ module OBF::PDF
66
66
  text_height = 20
67
67
  header_height = 0
68
68
 
69
+ if options['pages']
70
+ page_num = options['pages'][obj['id']]
71
+ pdf.add_dest("page#{page_num}", pdf.dest_fit)
72
+ end
69
73
  # header
70
74
  if !options['headerless']
71
75
  header_height = 100
72
76
  pdf.bounding_box([0, doc_height], :width => doc_width, :height => 100) do
73
- if options['pages']
74
- page_num = options['pages'][obj['id']]
75
- pdf.add_dest("page#{page_num}", pdf.dest_fit)
76
- end
77
77
  pdf.line_width = 2
78
78
  pdf.font_size 16
79
79
 
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.35
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer