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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87557a90486344db08739c26fb5e8950e5938ad8
4
- data.tar.gz: d7fb8a3125d8fe9d2330788a14fe77620e288070
3
+ metadata.gz: 1a968fd428d3f1c066d5892e82e7c65da243a4a4
4
+ data.tar.gz: 5c1d6888931567114c7da30790aca5de12bbf9a7
5
5
  SHA512:
6
- metadata.gz: 567b34dd3ea75f4012c53206b5ba8a5eb2f05446fe08a05dc2905a8b8bc2395025092e6cb3cfa2df136dd0c65562022071d79f33b3f0873e2623e9dc0c92a216
7
- data.tar.gz: ec1deda32f4a6a7fa510b33138792a138c386f2155185a5133cf1a8f261c5803e5d809297c4b9e6ef315755c47a76022fcf672cab25a06bec27d41d63a470ecb
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
  ![](https://img.shields.io/badge/status-in%20development-orange.svg)
3
+ ![Gem](https://img.shields.io/gem/v/regxlib.svg?color=blue)
4
+ ![GitHub](https://img.shields.io/github/license/zviaz/regxlib.svg?color=blue)
5
+
6
+ ##### Code Climate
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/a4b7d56b3f4f356ea170/maintainability)](https://codeclimate.com/github/zviaz/regxlib/maintainability)
8
+ ![Code Climate maintainability (percentage)](https://img.shields.io/codeclimate/maintainability-percentage/zviaz/regxlib.svg)
9
+ ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/zviaz/regxlib.svg)
10
+ ![Code Climate issues](https://img.shields.io/codeclimate/issues/zviaz/regxlib.svg)
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
@@ -1,3 +1,3 @@
1
1
  module Regxlib
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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