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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d5c727e9a21b2596930b6b24926f6bfc170d6699967bbfeb4524da9cb7368e4
4
- data.tar.gz: 5966aab9385578ef07128226926e2963521ba7fdd414852035223c422ff29f09
3
+ metadata.gz: aedf4eb918ab317a694a0456d80df2d94e6b61f07d3625960114e0730f13e017
4
+ data.tar.gz: e19c2d0657a5bcd59539094f1614269a00e03a6cb7c6b909c22f94677f8f13b5
5
5
  SHA512:
6
- metadata.gz: 6bda3f7557010898f2891974a9c78f076be86371a22b9054e422ef7fe12f203883cac9340cb56f814ebf58ec1cae7cec143e3b7b3476937826cff571e7dca524
7
- data.tar.gz: 9bcf1de06d029d21f15aa31f9dead13e5a442ca5f5e340795f074ff3d06ab00d28f189d3551c90b7241fc56e4767d2e385a0ae1751cb585937964ed582b71ee9
6
+ metadata.gz: 2df6eca0fe93c6adf4df7e2b98553399093d2272873412a057e91da0f131af75198d8c027923e314e91703ea51c732bf7a5b98e4a2cc80ef004052d77bd37444
7
+ data.tar.gz: 8b3fb5fd5706898157c4907aaebb3f805d3ac81e318ab6eda562148b1e3d7dd775adc3f5d87d2e491dc24305e7b4d5d0478115bfe6d1f584813589fbf62a750d
data/.rubocop.yml CHANGED
@@ -1,86 +1,30 @@
1
- AllCops:
2
- TargetRubyVersion: 2.4
3
- TargetRailsVersion: 5.2
1
+ ---
2
+ inherit_gem:
3
+ rubocop-fnando: .rubocop.yml
4
4
 
5
- Exclude:
6
- - db/schema.rb
7
- - db/seeds.rb
8
- - config/environments/**/*.rb
9
- - bin/**/*
10
- - vendor/**/*
5
+ AllCops:
6
+ TargetRubyVersion: 2.6
11
7
 
12
- Style/Documentation:
8
+ Style/AsciiComments:
13
9
  Enabled: false
14
10
 
15
- Style/StringLiterals:
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/MethodLength:
14
+ Metrics/CyclomaticComplexity:
49
15
  Enabled: false
50
16
 
51
- Style/EmptyMethod:
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/AbcSize:
23
+ Metrics/LineLength:
70
24
  Enabled: false
71
25
 
72
- Metrics/PerceivedComplexity:
26
+ Style/IfUnlessModifier:
73
27
  Enabled: false
74
28
 
75
- Style/AsciiComments:
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
@@ -16,4 +16,4 @@ Rake::TestTask.new(:test) do |t|
16
16
  t.warning = false
17
17
  end
18
18
 
19
- task :default => [:test, :rubocop]
19
+ task default: %i[test rubocop]
@@ -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 += JSON.parse(open("https://raw.githubusercontent.com/FGRibreau/mailchecker/master/list.json").read).flatten
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!
data/bin/sync-tld CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "open-uri"
4
5
  require "json"