nofakemail 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,10 +20,10 @@ Or install it yourself as:
20
20
 
21
21
  Simple use anywhere in your Application
22
22
 
23
- Nofakemail.is_trashmail "test@trash-mail.com"
23
+ Nofakemail.is_valid? "test@trash-mail.com"
24
24
  #=> true
25
25
 
26
26
  or to check several E-Mail-Addresses
27
27
 
28
- Nofakemail.are_trashmails ["as@trash-mail.com", "qw@trash-mail.com", "asd@googlemail.com"]
28
+ Nofakemail.are_valid? ["as@trash-mail.com", "qw@trash-mail.com", "asd@googlemail.com"]
29
29
  #=> {"as@trash-mail.com"=>true, "qw@trash-mail.com"=>true, "asd@googlemail.com"=>false}
@@ -1,3 +1,3 @@
1
1
  module Nofakemail
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/nofakemail.rb CHANGED
@@ -3,13 +3,13 @@ require "open-uri"
3
3
 
4
4
  module Nofakemail
5
5
  class << self
6
- def is_trashmail input_email
6
+ def is_valid? input_email
7
7
  body = open("http://nofakemail.net/webservice/isTrashmail/json?email=#{input_email}").read rescue ""
8
8
  json_body = ActiveSupport::JSON.decode body
9
9
  json_body["valid"]
10
10
  end
11
11
 
12
- def are_trashmails email_array
12
+ def are_valid? email_array
13
13
  email_array.each_with_index do |email,key|
14
14
  email_array[key] = "email[]=#{email}"
15
15
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nofakemail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -26,6 +26,7 @@ files:
26
26
  - lib/nofakemail.rb
27
27
  - lib/nofakemail/version.rb
28
28
  - nofakemail-0.0.1.gem
29
+ - nofakemail-0.0.2.gem
29
30
  - nofakemail.gemspec
30
31
  homepage: ''
31
32
  licenses: []