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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MGI2YTg1ZWI2YjAwOTkxNzlhMTg2M2FmY2VmYzZhMTk4ZjRhYzZjNA==
4
+ NDQ2ZDU3YmE2YTdhZGQzNWUxYWFkODQwNmUzODg0MTJlYmJlM2Y5OA==
5
5
  data.tar.gz: !binary |-
6
- YTE0NGJiYjdhOTFhMGNhNDQxNWZhN2E4YmI3NmIwZmEyNThjNWYyMQ==
6
+ MjFiMTk3MDE2OTg2YmVkMjBjNDQwM2FjMGUzNjU4OTdjM2ZhZDViMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmE1ZjE1OTI1NzkzNDFkZDIxMjdjY2NhMmUwNGRmNDkwZjE3MDlmZGIzZGRm
10
- ZTFkMDg2NGViYWUxYTJjZTJkNGJmNTYyZGIxZTFmMDJjYmM1MjQ1MjhjYTI5
11
- ZjZjYTljNTVmZjk2ODU0ODBjYTI5MGQ1M2VkMTc3Njg0MzI5Nzg=
9
+ OWQ3NGRhMmVmZDUxZmEyZWQzNTZhY2Q5OGJkYzdiN2Q1NDk1NjFhMTc4YmU5
10
+ MTE5ZTg2Yjk2MWJkOWY0MTgxMDY1YjYzNDkyODFkNDdkNWYwMTJkYjg5NGQ4
11
+ NzM1NmM0OWFhZGY1MTIwNGI4MzgyMTZlOGY0NDk5ZjY0ZDc5YTE=
12
12
  data.tar.gz: !binary |-
13
- NGY2YjA5ODA5MzU4NTZhNzU4YmM0MjE4ODk5N2Q1MWEwMThlYjY1ZmMzODM3
14
- OTVjNzVkY2FjODcyZjg0NTkzNTY5NzU4MTI1ZmI2NTUwMjRjNmQ0NThkMzFi
15
- NGEzMTczNmFkMGY1M2Y5MTVmZGVhY2QxMzYzNDU3OGEyOGQyODU=
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 строка для очистки
@@ -1,3 +1,3 @@
1
1
  module StringTools
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
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.5.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-04-28 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord