obf 0.8.7 → 0.8.8

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 +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a24c6f88d3866605e099d601217d1679d85ca109
4
- data.tar.gz: eb49209bd5d474cecf64ffbd3e5af029e5bbff60
3
+ metadata.gz: fe29351cb9dbcd697ff6aaa20e6989e52b3e6c0d
4
+ data.tar.gz: fa30e3203fb42f03822d7aa5dd476dd6a85c28e7
5
5
  SHA512:
6
- metadata.gz: 0c515cdba421eca70481804d796e6679dcaf992a2028871320586eb9a90317c2423c534e127792858f0169462469035c32ab95ed578aa1c8a81cdb87fae6db1b
7
- data.tar.gz: 8b6ca823246ec74748cceded855952d150600a771ae9d9f4129b972f5924662c822d9127ffdb70f882b64e5d0c1d28e767c4d62c11b6011ba5515ebb00b12a4b
6
+ metadata.gz: f7d431ebd7f27dd87cad0f2a2dc9d4f623aff96493ad3be651ca56db150329fad791cdaf5f390ad994619841a4eed4fcab9712e81f29aa585d0dab7f74531647
7
+ data.tar.gz: b929d215542ea4844186cca30aa2d4bac5dfc01d33d36d80698d33141255fa78b4bb50a36054c4ef3bbc83ccf8960e9dc145100cc31b7b50df126d49510d2ad2
@@ -156,12 +156,12 @@ module OBF::PDF
156
156
  pdf.fill_and_stroke_rounded_rectangle [0, button_height], button_width, button_height, default_radius
157
157
  vertical = options['text_on_top'] ? button_height - text_height : button_height - 5
158
158
 
159
+ text = (button['label'] || button['vocalization']).to_s
159
160
  font = options['font']
160
161
  if text.match(/\p{Thai}/)
161
162
  font = File.expand_path('../../THFahKwangBold.ttf', __FILE__)
162
163
  end
163
164
  pdf.font(font) if font && File.exists?(font)
164
- text = (button['label'] || button['vocalization']).to_s
165
165
  direction = text.match(rtl_regex) ? :rtl : :ltr
166
166
  if options['text_case'] == 'upper'
167
167
  text = text.upcase
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.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Whitmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-16 00:00:00.000000000 Z
11
+ date: 2018-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json