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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73c24bb0187f21839f9a1e104f73ec21f9ff0f79
4
- data.tar.gz: 820003083f5e313efd6913abb1465ab62a9e1b63
3
+ metadata.gz: aaf0a44f932f98b9336ef026f2cad0d69834f850
4
+ data.tar.gz: 546b34dd03f0153cfdec9b3202a4d4acd8736fab
5
5
  SHA512:
6
- metadata.gz: a74557d010bd475902bd3573603b5dee1388da8b93fbfda060fbb812ed1afd478015fb1cf1e3b5421d4c4fee636722cce23c142bfc6535ebea08c46e738deb59
7
- data.tar.gz: e8a267a4224022385f80889711043e589fc065713fe66f65782fa87d40852779f679978c95186e03919cf33ce81f815b082cece0be5c69fd32b7526b1427f43e
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
 
@@ -1,3 +1,3 @@
1
1
  module Escpos
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-08-27 00:00:00.000000000 Z
11
+ date: 2016-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler