obf 0.7.4 → 0.7.5

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 +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5992f6fc960d3d4337df1a88894f5496ff1c2a2
4
- data.tar.gz: 856ec0599db1efd0af42a404918bc5f80240dfe6
3
+ metadata.gz: a27fdff7261fbbfe6858eb43c17d1002cc4ec334
4
+ data.tar.gz: 19ec68d9b18b28e450e9168104baf467fcdcadc2
5
5
  SHA512:
6
- metadata.gz: e228924a1faa5d18e1bf5bffab042e29cddb4602724a2e1b4d5b2718154277d48b99c81da8a6220dd6af9a3155b1d985781b68d38b23e6d6addc6dcd11f45def
7
- data.tar.gz: ec827f287ed2a3f3b21276e8af846c6f5228233f7608f5fa61d903832c15abbf477c25de87bd8471fde1004d38b86f2ca4299d1748fc4cc8d5da9a7e82915be3
6
+ metadata.gz: ba3b5347b52726daebe6ef9922b10b78a3d70991815f1f6ce9e56f50b90994cc34a573f8750cc348d5295ad6ed05027afba4472c4df1d7803fc060ca9ebbf9fc
7
+ data.tar.gz: f0df2604eef61c2ffea95a4f71c7fbdcd6a51bcbf07c734196a34c46f2d9ceb47763b56ae96bf485b11d9f65c8dc292badc4314bab0e1b48e4fa451ccb3826eb
data/lib/obf/pdf.rb CHANGED
@@ -130,7 +130,7 @@ module OBF::PDF
130
130
  pdf.fill_color fill
131
131
  pdf.stroke_color border
132
132
  pdf.fill_and_stroke_rounded_rectangle [0, button_height], button_width, button_height, default_radius
133
- vertical = options['text_on_top'] ? 5 + text_height : button_height - 5
133
+ vertical = options['text_on_top'] ? button_height - text_height : button_height - 5
134
134
  pdf.bounding_box([5, vertical], :width => button_width - 10, :height => button_height - text_height - 5) do
135
135
  image = (obj['images_hash'] || {})[button['image_id']]
136
136
  if image
@@ -144,10 +144,10 @@ module OBF::PDF
144
144
  if options['pages'] && button['load_board']
145
145
  page = options['pages'][button['load_board']['id']]
146
146
  if page
147
- vertical = options['text_on_top'] ? 5 + text_height : button_height - 5
147
+ page_vertical = options['text_on_top'] ? 5 + text_height : button_height - 5
148
148
  pdf.fill_color "ffffff"
149
149
  pdf.stroke_color "eeeeee"
150
- pdf.fill_and_stroke_rounded_rectangle [button_width - 25, vertical], 20, text_height, 5
150
+ pdf.fill_and_stroke_rounded_rectangle [button_width - 25, page_vertical], 20, text_height, 5
151
151
  pdf.fill_color "000000"
152
152
  pdf.formatted_text_box [{:text => page, :anchor => "page#{page}"}], :at => [button_width - 25, vertical], :width => 20, :height => text_height, :align => :center, :valign => :center
153
153
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: obf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json