extface 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/models/extface/driver/datecs/fp550.rb +11 -4
- data/lib/extface/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6ac009d832ffa37b301bb919347d453ccbbe5a6ffc39320693132bdae2a39e30
|
4
|
+
data.tar.gz: 22af9b02d3cbe48d96e558e80861ad8d75a5ba3fb662ae254473ff75c866de8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b2aab08c3471736845866598540912d312f9b856500a7a31671e6174f13a4b86a8db97bea15d23b04781f7035d86699dddf6072fecedce1b5fe3dde4cd95d3
|
7
|
+
data.tar.gz: 14be7adba1c7bd42f727f5a7a2414904338156ee568ed82aa88458faeb9786e81af9a114d5d4ab93f8b8da78a0a1b3d45e70bb2dbc70c2fccd092878e084fcf6
|
@@ -269,12 +269,19 @@ module Extface
|
|
269
269
|
end
|
270
270
|
|
271
271
|
def build_sale_data(item)
|
272
|
-
encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
|
273
|
-
encoded_text1 = encoded_text1.mb_chars.slice!(0..27).to_s.b + '...' if encoded_text1 && encoded_text1.b.length > 30
|
272
|
+
# encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
|
273
|
+
# encoded_text1 = encoded_text1.mb_chars.slice!(0..27).to_s.b + '...' if encoded_text1 && encoded_text1.b.length > 30
|
274
274
|
|
275
|
-
encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
|
276
|
-
encoded_text2 = encoded_text2.mb_chars.slice!(0..27).to_s.b + '...' if encoded_text2 && encoded_text2.b.length > 30
|
275
|
+
# encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
|
276
|
+
# encoded_text2 = encoded_text2.mb_chars.slice!(0..27).to_s.b + '...' if encoded_text2 && encoded_text2.b.length > 30
|
277
277
|
|
278
|
+
#http://extface.com/pos/fpi/bills/171257
|
279
|
+
encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding) : item.text1
|
280
|
+
encoded_text1 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text1 && encoded_text1.b.length > 30
|
281
|
+
|
282
|
+
encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding) : item.text2
|
283
|
+
encoded_text2 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text2 && encoded_text2.b.length > 30
|
284
|
+
|
278
285
|
"".b.tap() do |data|
|
279
286
|
data << encoded_text1 unless encoded_text1.blank?
|
280
287
|
data << "\x0a#{encoded_text2}" unless encoded_text2.blank?
|
data/lib/extface/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Vangelov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
291
|
version: '0'
|
292
292
|
requirements: []
|
293
293
|
rubyforge_project:
|
294
|
-
rubygems_version: 2.
|
294
|
+
rubygems_version: 2.7.8
|
295
295
|
signing_key:
|
296
296
|
specification_version: 4
|
297
297
|
summary: External Interfaces for Cloud-Based Applications (Rails 4)
|