easyzpl 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easyzpl/label.rb +1 -0
- data/lib/easyzpl/label_template.rb +1 -0
- data/lib/easyzpl/stored_label.rb +2 -1
- data/lib/easyzpl/version.rb +1 -1
- data/spec/easyzpl_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef8ad2ea61a36f82d5d1fec32ff292b6106e4a79
|
4
|
+
data.tar.gz: f0da9e778f7a121f3e308470ca02a89efffc38e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b0df0d107bf75a08c801c806d7b85ae765f5731bde307706aabf33777f4ffe3ca2910463ce5dcb4a0750297661b8d7093ec0f51e725878d63276b654d1ee38b
|
7
|
+
data.tar.gz: a4430ecf71b870b326c5b50b62bbf90664bf7450fb181a62fa9cb5658936ecc6c67cb7372df3fbcc5e5cb9718e4352badfa9a51c6f2403e2a87c05d9ef57f0ac
|
data/lib/easyzpl/label.rb
CHANGED
@@ -44,6 +44,7 @@ module Easyzpl
|
|
44
44
|
options[:height].to_s + ',' + options[:width].to_s +
|
45
45
|
'^FN' + variable_fields_count.to_s + '^FS')
|
46
46
|
|
47
|
+
return unless label_height > 0 && label_width > 0
|
47
48
|
pdf.text_box '{Variable Field ' + variable_fields_count.to_s + '}',
|
48
49
|
at: [x, label_width - y - Integer(options[:height] / 10)],
|
49
50
|
size: options[:height] if label_height && label_width
|
data/lib/easyzpl/stored_label.rb
CHANGED
data/lib/easyzpl/version.rb
CHANGED
data/spec/easyzpl_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe 'Testing easyzpl Gem' do
|
|
26
26
|
label.draw_border(0, 0, 400, 300)
|
27
27
|
label.variable_text_field(10, 10)
|
28
28
|
label.variable_bar_code_39(10, 30)
|
29
|
-
expect(label.to_s).to eq('^XA^DFTemplate1^FS^LH30,30^FO0,0^GB400,300,1^FS^FO10,10^FN1^FS^FO10,30^B3N,Y,20,N,N^FN2^FS^PQ1^XZ')
|
29
|
+
expect(label.to_s).to eq('^XA^DFTemplate1^FS^LH30,30^FO0,0^GB400,300,1^FS^FO10,10^AFN,10,10^FN1^FS^FO10,30^B3N,Y,20,N,N^FN2^FS^PQ1^XZ')
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyzpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Grigajtis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|