regex_data 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/regex_data/test.rb +16 -16
- data/lib/regex_data/version.rb +1 -1
- data/regex_data-0.1.1.gem +0 -0
- data/regex_data-0.1.2.gem +0 -0
- data/regex_data.gemspec +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37a3dd61be49b0cf884923723751a03aea44edcf
|
4
|
+
data.tar.gz: 231b9be03e9b51472dde1e624bf249bdd3d0b512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57863beb54808ad5ea28d622fb7dffa4f5c6009a13015b739ab739c8faff725ade2809bc672c9459871a51063913fed5327c98a05e1cffe105b1eead83d68657
|
7
|
+
data.tar.gz: '097f606920b63afa1546c50baab05a1e59695df66c5c059ad8eea9122b19d3576aae9e2d0d5612fc243c460d5264d28503202d47a9313cf3fcf3d3eac077579b'
|
data/README.md
CHANGED
@@ -32,23 +32,23 @@ Methods:
|
|
32
32
|
+ Remove all empty line: `remove_empty_line`
|
33
33
|
```
|
34
34
|
str =" aaa aaa aa a a a "
|
35
|
-
puts
|
35
|
+
puts RegexData::remove_extra_space(str)
|
36
36
|
#=> aaa aaa aa a a a
|
37
37
|
|
38
38
|
email = "abc-def@insta.com"
|
39
|
-
puts
|
39
|
+
puts RegexData::email?(email)
|
40
40
|
#=> true
|
41
41
|
|
42
42
|
html = "<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</span>"
|
43
|
-
puts
|
43
|
+
puts RegexData::remove_html_tag(html)
|
44
44
|
#=> Lorem Ipsum is simply dummy text of the printing and typesetting industry.
|
45
45
|
|
46
46
|
date = "21.12.1995"
|
47
|
-
puts
|
47
|
+
puts RegexData::date?(date)
|
48
48
|
#=> true
|
49
49
|
|
50
50
|
str = "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
|
51
|
-
puts
|
51
|
+
puts RegexData::ban_word( str, "is", "text", "and")
|
52
52
|
#=> Lorem Ipsum **** simply dummy **** of the printing **** typesetting industry
|
53
53
|
|
54
54
|
```
|
data/lib/regex_data/test.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
|
1
|
+
require "regex_data"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
class FilterkData
|
4
|
+
def check
|
5
|
+
str = " asd as asd asd asd as d asd "
|
6
|
+
puts RegexData::remove_extra_space(str)
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
email = "abc-def@insta.com"
|
9
|
+
puts RegexData::email?(email)
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
html = "<span>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</span>"
|
12
|
+
puts RegexData::remove_html_tag(html)
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
date = "21.12.1995"
|
15
|
+
puts RegexData::date?(date)
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
str = "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
|
18
|
+
puts RegexData::ban_word( str, "is", "text", "and")
|
19
|
+
end
|
20
|
+
end
|
21
21
|
|
22
|
-
|
22
|
+
FilterkData.new.check
|
data/lib/regex_data/version.rb
CHANGED
Binary file
|
Binary file
|
data/regex_data.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Filter data or check format data}
|
13
13
|
spec.description = %q{Filter and check format data}
|
14
|
-
spec.homepage = "https://github.com/at-hoangnguyen3/
|
14
|
+
spec.homepage = "https://github.com/at-hoangnguyen3/Regex_Data"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: regex_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- at-hoangnguyen3
|
@@ -57,8 +57,10 @@ files:
|
|
57
57
|
- lib/regex_data/test.rb
|
58
58
|
- lib/regex_data/version.rb
|
59
59
|
- regex_data-0.1.0.gem
|
60
|
+
- regex_data-0.1.1.gem
|
61
|
+
- regex_data-0.1.2.gem
|
60
62
|
- regex_data.gemspec
|
61
|
-
homepage: https://github.com/at-hoangnguyen3/
|
63
|
+
homepage: https://github.com/at-hoangnguyen3/Regex_Data
|
62
64
|
licenses:
|
63
65
|
- MIT
|
64
66
|
metadata: {}
|