validators 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -68
- data/.travis.yml +7 -7
- data/Rakefile +1 -1
- data/bin/sync-disposable-hostnames +2 -1
- data/bin/sync-tld +1 -0
- data/data/disposable.json +23606 -17
- data/data/tld.json +3 -18
- data/lib/validators/version.rb +1 -1
- data/test/test_helper.rb +4 -2
- data/validators.gemspec +2 -2
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aedf4eb918ab317a694a0456d80df2d94e6b61f07d3625960114e0730f13e017
|
4
|
+
data.tar.gz: e19c2d0657a5bcd59539094f1614269a00e03a6cb7c6b909c22f94677f8f13b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df6eca0fe93c6adf4df7e2b98553399093d2272873412a057e91da0f131af75198d8c027923e314e91703ea51c732bf7a5b98e4a2cc80ef004052d77bd37444
|
7
|
+
data.tar.gz: 8b3fb5fd5706898157c4907aaebb3f805d3ac81e318ab6eda562148b1e3d7dd775adc3f5d87d2e491dc24305e7b4d5d0478115bfe6d1f584813589fbf62a750d
|
data/.rubocop.yml
CHANGED
@@ -1,86 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
---
|
2
|
+
inherit_gem:
|
3
|
+
rubocop-fnando: .rubocop.yml
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
- db/seeds.rb
|
8
|
-
- config/environments/**/*.rb
|
9
|
-
- bin/**/*
|
10
|
-
- vendor/**/*
|
5
|
+
AllCops:
|
6
|
+
TargetRubyVersion: 2.6
|
11
7
|
|
12
|
-
Style/
|
8
|
+
Style/AsciiComments:
|
13
9
|
Enabled: false
|
14
10
|
|
15
|
-
|
16
|
-
EnforcedStyle: double_quotes
|
17
|
-
|
18
|
-
Layout/SpaceInsideBlockBraces:
|
19
|
-
EnforcedStyle: space
|
20
|
-
EnforcedStyleForEmptyBraces: space
|
21
|
-
SpaceBeforeBlockParameters: false
|
22
|
-
|
23
|
-
Layout/SpaceInsideHashLiteralBraces:
|
24
|
-
EnforcedStyle: no_space
|
25
|
-
EnforcedStyleForEmptyBraces: no_space
|
26
|
-
|
27
|
-
Layout/FirstArrayElementLineBreak:
|
28
|
-
Enabled: true
|
29
|
-
|
30
|
-
Layout/FirstHashElementLineBreak:
|
31
|
-
Enabled: true
|
32
|
-
|
33
|
-
Style/PercentLiteralDelimiters:
|
34
|
-
PreferredDelimiters:
|
35
|
-
'%': '[]'
|
36
|
-
'%i': '[]'
|
37
|
-
'%q': '[]'
|
38
|
-
'%Q': '[]'
|
39
|
-
'%r': '{}'
|
40
|
-
'%s': '[]'
|
41
|
-
'%w': '[]'
|
42
|
-
'%W': '[]'
|
43
|
-
'%x': '[]'
|
44
|
-
|
45
|
-
Metrics/LineLength:
|
11
|
+
Metrics/AbcSize:
|
46
12
|
Enabled: false
|
47
13
|
|
48
|
-
Metrics/
|
14
|
+
Metrics/CyclomaticComplexity:
|
49
15
|
Enabled: false
|
50
16
|
|
51
|
-
|
52
|
-
EnforcedStyle: expanded
|
53
|
-
|
54
|
-
Layout/IndentArray:
|
55
|
-
EnforcedStyle: consistent
|
56
|
-
|
57
|
-
Style/AccessModifierDeclarations:
|
58
|
-
EnforcedStyle: inline
|
59
|
-
|
60
|
-
Naming/UncommunicativeMethodParamName:
|
17
|
+
Metrics/PerceivedComplexity:
|
61
18
|
Enabled: false
|
62
19
|
|
63
20
|
Style/Alias:
|
64
|
-
EnforcedStyle: prefer_alias_method
|
65
|
-
|
66
|
-
Metrics/CyclomaticComplexity:
|
67
21
|
Enabled: false
|
68
22
|
|
69
|
-
Metrics/
|
23
|
+
Metrics/LineLength:
|
70
24
|
Enabled: false
|
71
25
|
|
72
|
-
|
26
|
+
Style/IfUnlessModifier:
|
73
27
|
Enabled: false
|
74
28
|
|
75
|
-
|
29
|
+
Metrics/MethodLength:
|
76
30
|
Enabled: false
|
77
|
-
|
78
|
-
Style/HashSyntax:
|
79
|
-
Exclude:
|
80
|
-
- Rakefile
|
81
|
-
- "**/*.rake"
|
82
|
-
|
83
|
-
Style/SymbolArray:
|
84
|
-
Exclude:
|
85
|
-
- Rakefile
|
86
|
-
- "**/*.rake"
|
data/.travis.yml
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
+
---
|
1
2
|
language: ruby
|
2
3
|
cache: bundler
|
3
4
|
sudo: false
|
4
5
|
script: bundle exec rake
|
5
6
|
before_script:
|
6
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
7
|
-
- chmod +x ./cc-test-reporter
|
8
|
-
- "./cc-test-reporter before-build"
|
7
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
8
|
+
- chmod +x ./cc-test-reporter
|
9
|
+
- "./cc-test-reporter before-build"
|
9
10
|
after_script:
|
10
|
-
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
|
11
|
+
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
|
11
12
|
notifications:
|
12
13
|
email: false
|
13
14
|
rvm:
|
14
|
-
- 2.6.1
|
15
|
-
- 2.5.3
|
16
|
-
- 2.4.5
|
15
|
+
- 2.6.1
|
16
|
+
- 2.5.3
|
17
17
|
env:
|
18
18
|
global:
|
19
19
|
secure: P3k49Psmw9C7Z0FL0A93H/aD4Xsu+VEccD51FmP2Cw0oeGHpReafU07izyYkQ/Y8jmxOiPiLS29b39PNuGa0DF1MnbW9Tmr9eSrct3v4B0WTj+SA8ZcBEKwS/SQMgJnfEJq6jeWS9gpRtCrDHFGGFHJvtVYGHragwfY+evlN2MI=
|
data/Rakefile
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require "open-uri"
|
4
5
|
require "json"
|
5
6
|
|
6
7
|
domains = JSON.parse(open("https://raw.githubusercontent.com/ivolo/disposable-email-domains/master/index.json").read)
|
7
8
|
domains += JSON.parse(open("https://raw.githubusercontent.com/andreis/disposable-email-domains/master/domains.json").read)
|
8
|
-
domains +=
|
9
|
+
domains += open("https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.txt").read.lines.map(&:chomp)
|
9
10
|
|
10
11
|
domains.map!(&:downcase)
|
11
12
|
domains.uniq!
|