extface 0.6.6 → 0.6.7

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: 8b93c795a3f2f8b7f8f5c751103f46c28cc9b257
4
- data.tar.gz: 5ff144d0e3d8fdb457c6b86e5b6db104e2eb8dbd
3
+ metadata.gz: a0d81988e166e4bed2bb9801a475fe1fbacfb69d
4
+ data.tar.gz: b44a790931db9e171fa733df008fd1d14a855d6b
5
5
  SHA512:
6
- metadata.gz: c010301a5e28fc1f8446280e11fe731ffc3104d7ff2fa3ca50f041f0ad809df2fd0f8d865fffc3149e9f55400d7df577655c83248d252279693645ae3e7dc02f
7
- data.tar.gz: fcfef079afd9fc3e68487de38a28a08a5dcac4405b72d8af7d719ffea83681d9affd65d44d658d43ea2c28535599e8ecede2c931d8e6f026262eb16a382df25b
6
+ metadata.gz: d3a7e50abaabcbdd820172028fe34da3fcc94c355346f2a97e0edf49e1f60606db318bb36c2906b059a2c9d66d87812634f579b92407e5d3e7cea1160629c869
7
+ data.tar.gz: f7ab12384f35d2e3a5df936f7bb22277a32562059bc451952694729f6846f3978ba4f222967289f572bfc729235292c7e2e9c836146e0162a917c79d575da346
@@ -295,10 +295,10 @@ module Extface
295
295
  private
296
296
  def build_sale_data(item)
297
297
  encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
298
- encoded_text1 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text1 && encoded_text1.b.length > 30
298
+ encoded_text1 = encoded_text1.mb_chars.slice!(0..27).to_s + '...' if encoded_text1 && encoded_text1.b.length > 30
299
299
 
300
300
  encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
301
- encoded_text2 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text2 && encoded_text2.b.length > 30
301
+ encoded_text2 = encoded_text1.mb_chars.slice!(0..27).to_s + '...' if encoded_text2 && encoded_text2.b.length > 30
302
302
 
303
303
  "".b.tap() do |data|
304
304
  data << encoded_text1 unless encoded_text1.blank?
@@ -271,10 +271,10 @@ module Extface
271
271
  private
272
272
  def build_sale_data(item)
273
273
  encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
274
- encoded_text1 = encoded_text1.mb_chars.limit(19).to_s + '...' if encoded_text1 && encoded_text1.b.length > 22
274
+ encoded_text1 = encoded_text1.mb_chars.slice!(0..19).to_s + '...' if encoded_text1 && encoded_text1.b.length > 22
275
275
 
276
276
  encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
277
- encoded_text2 = encoded_text1.mb_chars.limit(19).to_s + '...' if encoded_text2 && encoded_text2.b.length > 22
277
+ encoded_text2 = encoded_text1.mb_chars.slice!(0..19).to_s + '...' if encoded_text2 && encoded_text2.b.length > 22
278
278
 
279
279
  "".b.tap() do |data|
280
280
  data << encoded_text1 unless encoded_text1.blank?
@@ -271,10 +271,10 @@ module Extface
271
271
  private
272
272
  def build_sale_data(item)
273
273
  encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
274
- encoded_text1 = encoded_text1.mb_chars.limit(19).to_s + '...' if encoded_text1 && encoded_text1.b.length > 22
274
+ encoded_text1 = encoded_text1.mb_chars.slice!(0..19).to_s + '...' if encoded_text1 && encoded_text1.b.length > 22
275
275
 
276
276
  encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
277
- encoded_text2 = encoded_text1.mb_chars.limit(19).to_s + '...' if encoded_text2 && encoded_text2.b.length > 22
277
+ encoded_text2 = encoded_text1.mb_chars.slice!(0..19).to_s + '...' if encoded_text2 && encoded_text2.b.length > 22
278
278
 
279
279
  "".b.tap() do |data|
280
280
  data << encoded_text1 unless encoded_text1.blank?
@@ -270,10 +270,10 @@ module Extface
270
270
 
271
271
  def build_sale_data(item)
272
272
  encoded_text1 = device.encoding.present? ? item.text1.encode(device.encoding).b : item.text1
273
- encoded_text1 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text1 && encoded_text1.b.length > 30
273
+ encoded_text1 = encoded_text1.mb_chars.slice!(0..27).to_s + '...' if encoded_text1 && encoded_text1.b.length > 30
274
274
 
275
275
  encoded_text2 = device.encoding.present? ? item.text2.encode(device.encoding).b : item.text2
276
- encoded_text2 = encoded_text1.mb_chars.limit(27).to_s + '...' if encoded_text2 && encoded_text2.b.length > 30
276
+ encoded_text2 = encoded_text1.mb_chars.slice!(0..27).to_s + '...' if encoded_text2 && encoded_text2.b.length > 30
277
277
 
278
278
  "".b.tap() do |data|
279
279
  data << encoded_text1 unless encoded_text1.blank?
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
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.6.6
4
+ version: 0.6.7
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-11-19 00:00:00.000000000 Z
11
+ date: 2018-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis