regxlib 0.1.0 → 0.1.1
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/Gemfile.lock +35 -0
- data/README.md +18 -1
- data/docs/regex_library/regxlib_email_co_uk.md +1 -0
- data/docs/regex_library/regxlib_email_com.md +1 -0
- data/docs/regex_library/regxlib_email_edu.md +1 -0
- data/docs/regex_library/regxlib_email_org.md +1 -0
- data/docs/regex_library/regxlib_email_standard.md +1 -0
- data/lib/regxlib/version.rb +1 -1
- data/lib/regxlib.rb +31 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a968fd428d3f1c066d5892e82e7c65da243a4a4
|
|
4
|
+
data.tar.gz: 5c1d6888931567114c7da30790aca5de12bbf9a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51621881af671be36457a83be2aa17167648a4364cc48764fef6f78fb8b31ab9b92cb640253cbff72202256dbb909e57a926659a8581e717a834077f74cbb035
|
|
7
|
+
data.tar.gz: edeb89e78258dd8e8f33f73d2e848e0fc30b1136b27957416b0e6557935af1695629c67d6754e1698a89c2b7f0129b1474e3d8009fb464192293bfd4e90e442a
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
regxlib (0.1.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
diff-lcs (1.3)
|
|
10
|
+
rake (10.5.0)
|
|
11
|
+
rspec (3.8.0)
|
|
12
|
+
rspec-core (~> 3.8.0)
|
|
13
|
+
rspec-expectations (~> 3.8.0)
|
|
14
|
+
rspec-mocks (~> 3.8.0)
|
|
15
|
+
rspec-core (3.8.0)
|
|
16
|
+
rspec-support (~> 3.8.0)
|
|
17
|
+
rspec-expectations (3.8.2)
|
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
+
rspec-support (~> 3.8.0)
|
|
20
|
+
rspec-mocks (3.8.0)
|
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
+
rspec-support (~> 3.8.0)
|
|
23
|
+
rspec-support (3.8.0)
|
|
24
|
+
|
|
25
|
+
PLATFORMS
|
|
26
|
+
x86-mingw32
|
|
27
|
+
|
|
28
|
+
DEPENDENCIES
|
|
29
|
+
bundler (~> 2.0)
|
|
30
|
+
rake (~> 10.0)
|
|
31
|
+
regxlib!
|
|
32
|
+
rspec (~> 3.0)
|
|
33
|
+
|
|
34
|
+
BUNDLED WITH
|
|
35
|
+
2.0.1
|
data/README.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Regxlib
|
|
2
2
|

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
##### Code Climate
|
|
7
|
+
[](https://codeclimate.com/github/zviaz/regxlib/maintainability)
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
3
11
|
|
|
4
12
|
## License
|
|
5
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
13
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
14
|
+
|
|
15
|
+
## Regex List
|
|
16
|
+
|
|
17
|
+
### Email
|
|
18
|
+
* [Regxlib::Email.standard](/docs/regex_library/regxlib_email_standard.md)
|
|
19
|
+
* [Regxlib::Email.org](/docs/regex_library/regxlib_email_org.md)
|
|
20
|
+
* [Regxlib::Email.edu](/docs/regex_library/regxlib_email_edu.md)
|
|
21
|
+
* [Regxlib::Email.com](/docs/regex_library/regxlib_email_com.md)
|
|
22
|
+
* [Regxlib::Email.co_uk](/docs/regex_library/regxlib_email_co_uk.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Regxlib::Email.co_uk
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Regxlib::Email.com
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Regxlib::Email.edu
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Regxlib::Email.org
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Regxlib::Email.standard
|
data/lib/regxlib/version.rb
CHANGED
data/lib/regxlib.rb
CHANGED
|
@@ -4,4 +4,35 @@ module Regxlib
|
|
|
4
4
|
|
|
5
5
|
class Error < StandardError; end
|
|
6
6
|
|
|
7
|
+
# [START] Regxlib::Email ###########
|
|
8
|
+
class Email
|
|
9
|
+
|
|
10
|
+
# Regxlib::Email.standard
|
|
11
|
+
def self.standard
|
|
12
|
+
/\A[\w+-.]+@[a-z\d\-.]+\.[a-z]+\z/i
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Regxlib::Email.org
|
|
16
|
+
def self.org
|
|
17
|
+
/\A[\w+-.]+@[a-z\d\-.]+\.[o]+[r]+[g]+\z/i
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Regxlib::Email.edu
|
|
21
|
+
def self.edu
|
|
22
|
+
/\A[\w+-.]+@[a-z\d\-.]+\.[e]+[d]+[u]+\z/i
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Regxlib::Email.com
|
|
26
|
+
def self.com
|
|
27
|
+
/\A[\w+-.]+@[a-z\d\-.]+\.[c]+[o]+[m]+\z/i
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Regxlib::Email.co.uk
|
|
31
|
+
def self.co_uk
|
|
32
|
+
/\A[\w+-.]+@[a-z\d\-.]+\.[c]+[o]+\.[u]+[k]+\z/i
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
# [END] Regxlib::Email ##############
|
|
37
|
+
|
|
7
38
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: regxlib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Speight
|
|
@@ -63,11 +63,17 @@ files:
|
|
|
63
63
|
- ".rspec"
|
|
64
64
|
- ".travis.yml"
|
|
65
65
|
- Gemfile
|
|
66
|
+
- Gemfile.lock
|
|
66
67
|
- LICENSE.txt
|
|
67
68
|
- README.md
|
|
68
69
|
- Rakefile
|
|
69
70
|
- bin/console
|
|
70
71
|
- bin/setup
|
|
72
|
+
- docs/regex_library/regxlib_email_co_uk.md
|
|
73
|
+
- docs/regex_library/regxlib_email_com.md
|
|
74
|
+
- docs/regex_library/regxlib_email_edu.md
|
|
75
|
+
- docs/regex_library/regxlib_email_org.md
|
|
76
|
+
- docs/regex_library/regxlib_email_standard.md
|
|
71
77
|
- lib/regxlib.rb
|
|
72
78
|
- lib/regxlib/version.rb
|
|
73
79
|
- regxlib.gemspec
|