string_tools 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/string_tools.rb +9 -0
- data/lib/string_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDQ2ZDU3YmE2YTdhZGQzNWUxYWFkODQwNmUzODg0MTJlYmJlM2Y5OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjFiMTk3MDE2OTg2YmVkMjBjNDQwM2FjMGUzNjU4OTdjM2ZhZDViMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWQ3NGRhMmVmZDUxZmEyZWQzNTZhY2Q5OGJkYzdiN2Q1NDk1NjFhMTc4YmU5
|
10
|
+
MTE5ZTg2Yjk2MWJkOWY0MTgxMDY1YjYzNDkyODFkNDdkNWYwMTJkYjg5NGQ4
|
11
|
+
NzM1NmM0OWFhZGY1MTIwNGI4MzgyMTZlOGY0NDk5ZjY0ZDc5YTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDVmNmE5NWQyMjk3ZWJjMjEyMDc4OGE3YzQ1OTMwODg5MjdjYjdjMWExMjU2
|
14
|
+
NjI5YWM1ZTc3M2ZlMWQ1MzczYjQ3ODRkZjZiOWRlZjBiZWQ0ZmQ5YTkwYWQ4
|
15
|
+
MmM0MTE2ZmFlN2VjZmIzYjM1MWZhNzdjODEyZmZkOTk4ZjNiMjE=
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
|
2
2
|
#### [Current]
|
3
|
+
* 2016-06-02 [697be2c](../../commit/697be2c) - __(Korotaev Danil)__ feat: add clearing deprecated unicode characters
|
4
|
+
|
5
|
+
#### v0.5.0
|
6
|
+
* 2016-03-10 [b3cbd16](../../commit/b3cbd16) - __(Dmitry Bochkarev)__ Release 0.5.0
|
3
7
|
* 2016-03-10 [c23456a](../../commit/c23456a) - __(Dmitry Bochkarev)__ fix(sanitizers): подменять невалидные ссылки своим содержимым
|
4
8
|
|
5
9
|
#### v0.4.0
|
data/lib/string_tools.rb
CHANGED
@@ -106,6 +106,15 @@ module StringTools
|
|
106
106
|
string.tr("\u0000-\u001f", '')
|
107
107
|
end
|
108
108
|
|
109
|
+
# Public: вычищает устаревшие Unicode символы из строки
|
110
|
+
#
|
111
|
+
# string - String строка, из которой удаляем символы
|
112
|
+
#
|
113
|
+
# Returns String
|
114
|
+
def clear_deprecated_unicode_characters(string)
|
115
|
+
string.tr("\u2028-\u2029", '')
|
116
|
+
end
|
117
|
+
|
109
118
|
# Public: вычищает все html тэги и пробельные символы
|
110
119
|
#
|
111
120
|
# string - String строка для очистки
|
data/lib/string_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: string_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey D.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|