email_validator_hcm 0.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/email_validator_hcm.rb +9 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c40383223c84f330ec7c074a71ea35b525cffefddd29c8c05bbfab8500b24827
4
+ data.tar.gz: 9c52b4af3ae87d69158b13da8290b5e1001b141dee68e66ef49b78f0cb7be622
5
+ SHA512:
6
+ metadata.gz: df90b4e829d34e8c0f9ccab0a5949de89c1b4ad1dbb4f91e301c4d47a2c0f36cb5c4ce20c16c663fb31da02252e5ad3d95bdcadf7e780d503ccb9afb36eeb1e0
7
+ data.tar.gz: d4b6fc56a9297b9bc1cac348ae9850a4aaf44ad7e4d971633761c313c66f0b4914e9a9a68d0e2817a2b4e25f4e2fdfd49409636bc410b5bf4cc743b21d976a40
@@ -0,0 +1,9 @@
1
+ # lib/email_validator.rb
2
+ module EmailValidatorHcm
3
+ EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
4
+
5
+ def self.valid?(email)
6
+ email.match?(EMAIL_REGEX)
7
+ end
8
+ end
9
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: email_validator_hcm
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - loinguyen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple Ruby gem that validates email addresses based on regular expressions.
14
+ email:
15
+ - itweb.hcm@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/email_validator_hcm.rb
21
+ homepage: https://github.com/rubyhcm/email_validator_hcm
22
+ licenses:
23
+ - Nonstandard
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.2.3
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: A Ruby gem to validate email addresses using regular expressions.
44
+ test_files: []