Skip to content

Commit 601a3a0

Browse files
committed
Merge branch 'release/3.0.0'
* release/3.0.0: Updated version Updated to emailable
2 parents 28bf0e3 + d05f046 commit 601a3a0

21 files changed

Lines changed: 88 additions & 85 deletions

.ruby-gemset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
blazeverify-ruby
1+
emailable-ruby

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source "https://rubygems.org"
22

3-
# Specify your gem's dependencies in blazeverify-ruby.gemspec
3+
# Specify your gem's dependencies in emailable-ruby.gemspec
44
gemspec

Gemfile.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
blazeverify (1.3.2)
4+
emailable (2.0.2)
55
faraday
66
faraday_middleware
77
net-http-persistent
@@ -23,9 +23,11 @@ GEM
2323
coderay (1.1.2)
2424
concurrent-ruby (1.1.7)
2525
connection_pool (2.2.3)
26-
faraday (1.1.0)
26+
faraday (1.3.0)
27+
faraday-net_http (~> 1.0)
2728
multipart-post (>= 1.2, < 3)
2829
ruby2_keywords
30+
faraday-net_http (1.0.1)
2931
faraday_middleware (1.0.0)
3032
faraday (~> 1.0)
3133
i18n (1.8.5)
@@ -38,14 +40,14 @@ GEM
3840
minitest (>= 5.0)
3941
ruby-progressbar
4042
multipart-post (2.1.1)
41-
net-http-persistent (4.0.0)
43+
net-http-persistent (4.0.1)
4244
connection_pool (~> 2.2)
4345
pry (0.12.2)
4446
coderay (~> 1.1.0)
4547
method_source (~> 0.9.0)
4648
rake (13.0.1)
4749
ruby-progressbar (1.10.1)
48-
ruby2_keywords (0.0.2)
50+
ruby2_keywords (0.0.4)
4951
thread_safe (0.3.6)
5052
tzinfo (1.2.8)
5153
thread_safe (~> 0.1)
@@ -57,8 +59,8 @@ PLATFORMS
5759
DEPENDENCIES
5860
activemodel
5961
awesome_print
60-
blazeverify!
6162
bundler
63+
emailable!
6264
minitest (~> 5.0)
6365
minitest-reporters
6466
pry

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Blaze Verify. https://blazeverify.com
3+
Copyright (c) 2019 Emailable. https://emailable.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Blaze Verify Ruby Library
1+
# Emailable Ruby Library
22

3-
[![Build Status](https://travis-ci.com/blazeverify/blazeverify-ruby.svg)](https://travis-ci.com/blazeverify/blazeverify-ruby)
4-
[![Maintainability](https://api.codeclimate.com/v1/badges/2d74c69a9155109058a7/maintainability)](https://codeclimate.com/github/blazeverify/blazeverify-ruby/maintainability)
3+
[![Build Status](https://travis-ci.com/emailable/emailable-ruby.svg)](https://travis-ci.com/emailable/emailable-ruby)
4+
[![Maintainability](https://api.codeclimate.com/v1/badges/2d74c69a9155109058a7/maintainability)](https://codeclimate.com/github/emailable/emailable-ruby/maintainability)
55

6-
This is the official ruby wrapper for the Blaze Verify API.
6+
This is the official ruby wrapper for the Emailable API.
77

88
It also includes an Active Record (Rails) validator to verify email attributes.
99

1010
## Documentation
1111

12-
See the [Ruby API docs](https://blazeverify.com/docs/api/?ruby).
12+
See the [Ruby API docs](https://emailable.com/docs/api/?ruby).
1313

1414
## Installation
1515

1616
Add this line to your application's Gemfile:
1717

1818
```ruby
19-
gem 'blazeverify'
19+
gem 'emailable'
2020
```
2121

2222
And then execute:
@@ -25,34 +25,34 @@ And then execute:
2525

2626
Or install it yourself as:
2727

28-
$ gem install blazeverify
28+
$ gem install emailable
2929

3030
## Usage
3131

32-
The library needs to be configured with your account's API key which is available in your [Blaze Verify Dashboard](https://app.blazeverify.com/api). Set `BlazeVerify.api_key` to its value:
32+
The library needs to be configured with your account's API key which is available in your [Emailable Dashboard](https://app.emailable.com/api). Set `Emailable.api_key` to its value:
3333

3434
### Setup
3535

3636
```ruby
37-
require 'blazeverify'
37+
require 'emailable'
3838

3939
# set api key
40-
BlazeVerify.api_key = 'live_...'
40+
Emailable.api_key = 'live_...'
4141
```
4242

4343
### Verification
4444

4545
```ruby
4646
# verify an email address
47-
BlazeVerify.verify('jarrett@blazeverify.com')
47+
Emailable.verify('jarrett@emailable.com')
4848
```
4949

5050
#### Slow Email Server Handling
5151

5252
Some email servers are slow to respond. As a result, the timeout may be reached
5353
before we are able to complete the verification process. If this happens, the
5454
verification will continue in the background on our servers, and a
55-
`BlazeVerify::TimeoutError` will be raised. We recommend sleeping for at least
55+
`Emailable::TimeoutError` will be raised. We recommend sleeping for at least
5656
one second and trying your request again. Re-requesting the same verification
5757
with the same options will not impact your credit allocation within a 5 minute
5858
window. You can test this behavior using a test key and the special
@@ -63,12 +63,12 @@ email `slow@example.com`.
6363
#### Start a batch
6464

6565
```ruby
66-
emails = ['jarrett@blazeverify.com', 'support@blazeverify.com', ...]
67-
batch = BlazeVerify::Batch.new(emails)
66+
emails = ['jarrett@emailable.com', 'support@emailable.com', ...]
67+
batch = Emailable::Batch.new(emails)
6868

6969
# you can optionally pass in a callback url that we'll POST to when the
7070
# batch is complete.
71-
batch = BlazeVerify::Batch.new(emails, callback: 'https://blazeverify.com/')
71+
batch = Emailable::Batch.new(emails, callback: 'https://emailable.com/')
7272

7373
# start verifying the batch
7474
batch.verify
@@ -80,7 +80,7 @@ Calling `status` on a batch will return the status. It will contain the results
8080

8181
```ruby
8282
id = '5cfcbfdeede34200693c4319'
83-
batch = BlazeVerify::Batch.new(id)
83+
batch = Emailable::Batch.new(id)
8484

8585
# get status of batch
8686
batch.status
@@ -132,4 +132,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
132132

133133
## Contributing
134134

135-
Bug reports and pull requests are welcome on GitHub at https://github.com/blazeverify/blazeverify-ruby.
135+
Bug reports and pull requests are welcome on GitHub at https://github.com/emailable/emailable-ruby.

bin/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
require "bundler/setup"
4-
require "blazeverify/ruby"
4+
require "emailable/ruby"
55

66
# You can add fixtures and/or initialization code here to make experimenting
77
# with your gem easier. You can also use a different console, if you like.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
$LOAD_PATH.unshift(::File.join(::File.dirname(__FILE__), 'lib'))
44

5-
require 'blazeverify/version'
5+
require 'emailable/version'
66

77
Gem::Specification.new do |s|
8-
s.name = 'blazeverify'
9-
s.version = BlazeVerify::VERSION
10-
s.summary = 'Ruby bindings for the Blaze Verify API'
8+
s.name = 'emailable'
9+
s.version = Emailable::VERSION
10+
s.summary = 'Ruby bindings for the Emailable API'
1111
s.description = 'Email Verification that’s astonishingly easy and low-cost. '\
12-
'See https://blazeverify.com for details.'
13-
s.homepage = 'https://blazeverify.com'
14-
s.author = 'Blaze Verify'
15-
s.email = 'support@blazeverify.com'
12+
'See https://emailable.com for details.'
13+
s.homepage = 'https://emailable.com'
14+
s.author = 'Emailable'
15+
s.email = 'support@emailable.com'
1616
s.license = 'MIT'
1717
s.metadata = {
18-
"bug_tracker_uri" => "https://github.com/blazeverify/blazeverify-ruby/issues",
19-
"documentation_uri" => "https://docs.blazeverify.com/?ruby",
20-
"source_code_uri" => "https://github.com/blazeverify/blazeverify-ruby"
18+
"bug_tracker_uri" => "https://github.com/emailable/emailable-ruby/issues",
19+
"documentation_uri" => "https://docs.emailable.com/?ruby",
20+
"source_code_uri" => "https://github.com/emailable/emailable-ruby"
2121
}
22-
s.post_install_message = "Blaze Verify is now Emailable! Please switch to using the Emailable client library: https://emailable.com/docs/api?ruby"
22+
s.post_install_message = "Emailable is now Emailable! Please switch to using the Emailable client library: https://emailable.com/docs/api?ruby"
2323

2424
s.files = `git ls-files`.split("\n")
2525
s.test_files = `git ls-files -- test/*`.split("\n")

lib/blazeverify/version.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
require 'faraday'
22
require 'faraday_middleware'
3-
require 'blazeverify/version'
4-
require 'blazeverify/client'
5-
require 'blazeverify/batch'
6-
require 'blazeverify/resources/api_resource'
7-
require 'blazeverify/resources/account'
8-
require 'blazeverify/resources/batch_status'
9-
require 'blazeverify/resources/verification'
3+
require 'emailable/version'
4+
require 'emailable/client'
5+
require 'emailable/batch'
6+
require 'emailable/resources/api_resource'
7+
require 'emailable/resources/account'
8+
require 'emailable/resources/batch_status'
9+
require 'emailable/resources/verification'
1010
if defined?(ActiveModel)
11-
require 'blazeverify/email_validator'
11+
require 'emailable/email_validator'
1212
I18n.load_path += Dir.glob(File.expand_path('../../config/locales/**/*', __FILE__))
1313
end
1414

15-
module BlazeVerify
15+
module Emailable
1616
@max_network_retries = 1
1717

1818
class << self
@@ -26,11 +26,11 @@ def verify(email, smtp: nil, accept_all: nil, timeout: nil)
2626
email: email, smtp: smtp, accept_all: accept_all, timeout: timeout
2727
}
2828

29-
client = BlazeVerify::Client.new
29+
client = Emailable::Client.new
3030
response = client.request(:get, 'verify', opts)
3131

3232
if response.status == 249
33-
raise BlazeVerify::TimeoutError.new(
33+
raise Emailable::TimeoutError.new(
3434
code: response.status, message: response.body
3535
)
3636
else
@@ -39,7 +39,7 @@ def verify(email, smtp: nil, accept_all: nil, timeout: nil)
3939
end
4040

4141
def account
42-
client = BlazeVerify::Client.new
42+
client = Emailable::Client.new
4343
response = client.request(:get, 'account')
4444
Account.new(response.body)
4545
end
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module BlazeVerify
1+
module Emailable
22
class Batch
33
attr_accessor :id
44

@@ -12,7 +12,7 @@ def initialize(id_or_emails, callback: nil)
1212
raise ArgumentError, 'expected an array of emails or batch id'
1313
end
1414

15-
@client = BlazeVerify::Client.new
15+
@client = Emailable::Client.new
1616
end
1717

1818
def verify

0 commit comments

Comments
 (0)