email_typo 0.1.1 → 0.1.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
2
  SHA256:
3
- metadata.gz: 1b2bb8b32af16302a1fbc103c69d81fc49b8586eaf04828f6f5805b060ad319e
4
- data.tar.gz: 415393c2f3fe10f979641799f75735b0ac89ed1ee020d898e2d5f2d52f9fd87c
3
+ metadata.gz: 8d425440669c8ea1663c905191c1748c765b6dcc83d5bb1011f82d176f48e182
4
+ data.tar.gz: 8b83a3d9aca571a9e3f26db7229bd8f9debf27dda0d5ac46a4f402a179b8946a
5
5
  SHA512:
6
- metadata.gz: a6ec7d969ce82f3f10e6fbdd5b1da4a592a2cdfa8c734064d9618a4186d59d406d61fbb0a83bdc74ab92087004865579ac566bb41302d9293abdb6db6da7918c
7
- data.tar.gz: 4b920c7ceb864f4976d266174d65f8b141e376dd842d9ea4bffb513e08dd5d9718fa0b77f46825c0664daedef1402efe886a3a955ee63a74ebb4c5e298913b61
6
+ metadata.gz: bf2b5ed00b8c5457a5c7ee4ecf6bc35fe646e3115557a4c55464d5758be4a4e98be1bdf63c82f110685828a479df5a26b3baa84700835105a5dc442505c1e175
7
+ data.tar.gz: bd540060d6afa7e3fdf4675279679b3bb097f397b5e9a83811e559d24894547ae7181185980e4baabe095b3a015a4ef07109efce09d4e2488b65b215cc4b8992
data/lib/email_typo.rb CHANGED
@@ -12,6 +12,7 @@ require_relative "./email_typo/dot_org"
12
12
  require_relative "./email_typo/gmail"
13
13
  require_relative "./email_typo/googlemail"
14
14
  require_relative "./email_typo/hotmail"
15
+ require_relative "./email_typo/icloud"
15
16
  require_relative "./email_typo/known_dot_com"
16
17
  require_relative "./email_typo/period_around_at_sign"
17
18
  require_relative "./email_typo/providers"
@@ -42,6 +43,7 @@ module EmailTypo
42
43
  Gmail,
43
44
  Googlemail,
44
45
  Hotmail,
46
+ Icloud,
45
47
  KnownDotCom,
46
48
  Yahoo
47
49
  ]
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EmailTypo
4
+ Icloud = lambda do |email|
5
+ email.gsub(/@icl{0,2}(?:uo|u|o)d\./, "@icloud.")
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EmailTypo
4
- VERSION = "0.1.1".freeze
4
+ VERSION = "0.1.2".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_typo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-09 00:00:00.000000000 Z
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,6 +109,7 @@ files:
109
109
  - lib/email_typo/gmail.rb
110
110
  - lib/email_typo/googlemail.rb
111
111
  - lib/email_typo/hotmail.rb
112
+ - lib/email_typo/icloud.rb
112
113
  - lib/email_typo/known_dot_com.rb
113
114
  - lib/email_typo/period_around_at_sign.rb
114
115
  - lib/email_typo/providers.rb
@@ -136,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
137
  - !ruby/object:Gem::Version
137
138
  version: '0'
138
139
  requirements: []
139
- rubygems_version: 3.0.1
140
+ rubygems_version: 3.0.3
140
141
  signing_key:
141
142
  specification_version: 4
142
143
  summary: Clean up e-mail strings when the user's made a typo (like 'gmail.cmo').