email_check 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7c384b32cc78272ad768535980c995665b24c613
4
- data.tar.gz: 11aec3c8fd337b34006c02ff22bef775b6428678
2
+ SHA256:
3
+ metadata.gz: be0cba5ca74845cdd02da6697b576bd3a38947116123179123dae393fd0247e3
4
+ data.tar.gz: 865c687b2a7c627da107d4157057d9a3dbb6d9de0203b94c90b0ccd40abf6578
5
5
  SHA512:
6
- metadata.gz: 0ce60c3432399275a53d8130202624c5f5d6a9896f2f8b9e5399c844ecf442eb3ae9b618191a01fec033562563657477366b9a6a49ce17d0555636d99053ef85
7
- data.tar.gz: b42b6ac975837ca7013e5f6da45ead2b3d2bab7c288c5ee1dae364c0a5cb8408dbbd8f45394d435af89922cb8cbe36f088bc0e72d46abbbfc4f0947c2c1a4eb2
6
+ metadata.gz: c1afee8e164514a3f5f74dddf556b494be9a4fffc459322765a808bd4a944b4e8452b308016d864299d50bb15dc40a10ec513d38c12971577d246fec69e2aaa0
7
+ data.tar.gz: 90c4f836d99891b514b9aee8da286af6ffa3910bc10d5312df949dde633cb7c13c76733cf023b70224f608abfc195934bdf8f216cf6ab989976769b6d3a2eb3c
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ master ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ master ]
20
+ schedule:
21
+ - cron: '16 2 * * 5'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v3
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
data/.travis.yml CHANGED
@@ -1,20 +1,18 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.3.0
4
- - 2.2.2
5
- - 2.1.0
6
- - 2.0.0
4
+ - 2.5.0
7
5
 
8
6
  gemfile:
9
7
  - gemfiles/activemodel4.gemfile
10
8
  - gemfiles/activemodel5.gemfile
9
+ - gemfiles/activemodel6.gemfile
11
10
 
12
11
  matrix:
13
12
  exclude:
14
- - rvm: 2.1.0
15
- gemfile: gemfiles/activemodel5.gemfile
16
- - rvm: 2.0.0
17
- gemfile: gemfiles/activemodel5.gemfile
13
+ - rvm: 2.3.0
14
+ gemfile: gemfiles/activemodel6.gemfile
15
+ - rvm: 2.5.0
16
+ gemfile: gemfiles/activemodel4.gemfile
18
17
 
19
18
  before_install: gem install bundler
20
-
data/README.md CHANGED
@@ -26,7 +26,7 @@ You can also block certain usernames from creating accounts. Examples: admin, ro
26
26
  ## Installation
27
27
  Add this line to your application's Gemfile:
28
28
  ```ruby
29
- gem "check_email"
29
+ gem "email_check"
30
30
  ```
31
31
 
32
32
  ## Usage
@@ -94,14 +94,13 @@ EmailCheck.blocked_usernames << 'anonymous'
94
94
 
95
95
  ## Requirements
96
96
  This gem is tested with Rails 4.0+. Ruby versions tested:
97
- - Ruby 2.0
98
- - Ruby 2.1
99
- - Ruby 2.2
100
97
  - Ruby 2.3
98
+ - Ruby 2.5
101
99
 
102
100
  Rails versions tested:
103
101
  Rails 4.0
104
102
  Rails 5.0
103
+ Rails 6.0
105
104
 
106
105
  ## Credits
107
106
  - This code is heavily based upon: [lisinge/valid_email2](https://github.com/lisinge/valid_email2)
data/SECURITY.md ADDED
@@ -0,0 +1,14 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ Use this section to tell people about which versions of your project are
6
+ currently being supported with security updates.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 1.0.2 | :white_check_mark: |
11
+ | 1.0.1 | :x: |
12
+ | 1.0.0 | :x: |
13
+
14
+
data/email_check.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = ">= 2.0.0"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.9"
25
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "bundler", "~> 2.3"
25
+ spec.add_development_dependency "rake", "~> 12.3.3"
26
26
  spec.add_development_dependency "rspec","~> 3.2"
27
27
  spec.add_development_dependency "simplecov", "~> 0.10.0"
28
28
  spec.add_development_dependency "coveralls", "~> 0.8.1"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activemodel", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -23,7 +23,7 @@ module EmailCheck
23
23
 
24
24
  def blacklisted_domain?
25
25
  EmailCheck.blacklisted_domains.each do |domain|
26
- return true if @email.domain.include?(domain)
26
+ return true if @email.domain&.include?(domain)
27
27
  end
28
28
 
29
29
  false
@@ -1,3 +1,3 @@
1
1
  module EmailCheck
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darshan Patil
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
11
+ date: 2022-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '2.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.9'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 12.3.3
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: 12.3.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -116,6 +116,7 @@ executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
+ - ".github/workflows/codeql-analysis.yml"
119
120
  - ".gitignore"
120
121
  - ".rspec"
121
122
  - ".travis.yml"
@@ -123,11 +124,13 @@ files:
123
124
  - LICENSE.txt
124
125
  - README.md
125
126
  - Rakefile
127
+ - SECURITY.md
126
128
  - bin/console
127
129
  - bin/setup
128
130
  - email_check.gemspec
129
131
  - gemfiles/activemodel4.gemfile
130
132
  - gemfiles/activemodel5.gemfile
133
+ - gemfiles/activemodel6.gemfile
131
134
  - lib/email_check.rb
132
135
  - lib/email_check/email_address.rb
133
136
  - lib/email_check/email_validator.rb
@@ -141,7 +144,7 @@ homepage: https://github.com/dapatil/email_check
141
144
  licenses:
142
145
  - MIT
143
146
  metadata: {}
144
- post_install_message:
147
+ post_install_message:
145
148
  rdoc_options: []
146
149
  require_paths:
147
150
  - lib
@@ -156,9 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
159
  - !ruby/object:Gem::Version
157
160
  version: '0'
158
161
  requirements: []
159
- rubyforge_project:
160
- rubygems_version: 2.5.1
161
- signing_key:
162
+ rubygems_version: 3.0.9
163
+ signing_key:
162
164
  specification_version: 4
163
165
  summary: ActiveModel email validator. Checks MX records. Ships with lists of free,
164
166
  disposable email providers