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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fd08bd2e1d46486af353613c52f00c4dbfdc9bf8
4
- data.tar.gz: e600848ddbbf561134a44eb02d106c06d4c11385
2
+ SHA256:
3
+ metadata.gz: 6ac009d832ffa37b301bb919347d453ccbbe5a6ffc39320693132bdae2a39e30
4
+ data.tar.gz: 22af9b02d3cbe48d96e558e80861ad8d75a5ba3fb662ae254473ff75c866de8e
5
5
  SHA512:
6
- metadata.gz: bf234e62813ac46a1ad7ebef2cd04e63204a610eb2586c567e8e75bd15a246b9599e66d3a9afdc47d5c65b5c1b323ebe5c686f5c59d762b07eb39220c7c9174d
7
- data.tar.gz: d44e2740f650992dab29951da8b5d01db5f35a54014c9cfe65a5be84c42d6acc45d82cc03a46b3a73bf78eb42d3ad2dc06f18b42acceb40553f32a970a8cb19f
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?
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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.0
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: 2018-12-02 00:00:00.000000000 Z
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.6.14
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)