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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d81988e166e4bed2bb9801a475fe1fbacfb69d
|
4
|
+
data.tar.gz: b44a790931db9e171fa733df008fd1d14a855d6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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?
|
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.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-
|
11
|
+
date: 2018-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|