udrs 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/udrs/renderers/escp_renderer.rb +4 -4
- data/lib/udrs/renderers/pdf_renderer.rb +0 -2
- data/lib/udrs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d3374519f2ed65a926b1a97bd86b802b1768b74
|
4
|
+
data.tar.gz: 23dd10b0b2cc0198ef2c0f57ab2f063e912fd7a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c9f73a59c69fe4e7a6db65d28ef36baa6e9c8cef9f47e378fca833bf24aec3170923ba0faf53615290c211b22c1b7ab5a917a550f44292c3e3ce28621c0e865
|
7
|
+
data.tar.gz: 280bb5ea53a41c35cb105830983689cb89b97098639bc0f6b7b01428ff38f06c8cd9ed2c6961bfdabc54b6ec51185107f3fc63e849693411d5a870a56380bfa7
|
@@ -45,13 +45,13 @@ module UDRS
|
|
45
45
|
apply_bold(false)
|
46
46
|
apply_underline(:off)
|
47
47
|
|
48
|
+
# Open the cash drawer
|
49
|
+
@buffer << "#{ESC}p#{0.chr}#{100.chr}#{100.chr}"
|
50
|
+
|
48
51
|
# Render the items
|
49
52
|
render_item(container)
|
50
53
|
render_page_end(nil)
|
51
54
|
|
52
|
-
# Open the cash drawer
|
53
|
-
@buffer << "#{ESC}p#{0.chr}#{100.chr}#{100.chr}"
|
54
|
-
|
55
55
|
# Replace special characters
|
56
56
|
buffer = @buffer.dup
|
57
57
|
CHARACTER_MAP.each do |char_orig, char_new|
|
@@ -113,7 +113,7 @@ module UDRS
|
|
113
113
|
get_pl_ph = proc do |*params|
|
114
114
|
# From the docs:
|
115
115
|
# pL, pH specify the number of parameters after pH as (pL + pH*256)
|
116
|
-
|
116
|
+
next [params.size % 256, params.size / 256]
|
117
117
|
end
|
118
118
|
|
119
119
|
# The way to build a single line/setting of the code
|
data/lib/udrs/version.rb
CHANGED