escpos 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/escpos.rb +2 -2
- data/lib/escpos/version.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: aaf0a44f932f98b9336ef026f2cad0d69834f850
|
4
|
+
data.tar.gz: 546b34dd03f0153cfdec9b3202a4d4acd8736fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a458bbeb690f35295bcead26715fa87e3f6f19a0d12f9f507d0573807d723d337a7ba3b625690424390e98df0a188b6208258e54433efe4ff39e3a7676a6b53b
|
7
|
+
data.tar.gz: b5265780d6117b93873d51376ae140a641387f39f85e7e92927791a3b1b1a2cf20c09ca00616428c0912e529871d105c1655a5fbf6039c5a656fdeb49dbe17b4
|
data/lib/escpos.rb
CHANGED
@@ -112,8 +112,8 @@ module Escpos
|
|
112
112
|
IMAGE = [ 0x1d, 0x76, 0x30, 0x00 ] # Start image pixel data
|
113
113
|
|
114
114
|
# Transforms an array of codes into a string
|
115
|
-
def sequence(arr_sequence)
|
116
|
-
arr_sequence.pack('U*')
|
115
|
+
def sequence(*arr_sequence)
|
116
|
+
arr_sequence.flatten.pack('U*')
|
117
117
|
end
|
118
118
|
module_function :sequence
|
119
119
|
|
data/lib/escpos/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escpos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Svoboda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|