summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-30 11:25:15 +0200
committerAzul <azul@riseup.net>2016-08-30 11:25:15 +0200
commit494e6f32daf0f6bf37321507b83848b4be087100 (patch)
tree6a32037ed51cfe2e36fa00853b4caefb4bfff553 /lib
parentcd1bbe970ca17034b0e380ff2996542e3af81e31 (diff)
refactor: rename EmailHandler to HkpEmailHandler
Diffstat (limited to 'lib')
-rw-r--r--lib/nickserver/dispatcher.rb4
-rw-r--r--lib/nickserver/request_handlers/hkp_email_handler.rb (renamed from lib/nickserver/request_handlers/email_handler.rb)2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/nickserver/dispatcher.rb b/lib/nickserver/dispatcher.rb
index 8bcfd05..e461f12 100644
--- a/lib/nickserver/dispatcher.rb
+++ b/lib/nickserver/dispatcher.rb
@@ -16,7 +16,7 @@
require 'nickserver/request'
require 'nickserver/request_handlers/invalid_email_handler'
require 'nickserver/request_handlers/local_email_handler'
-require 'nickserver/request_handlers/email_handler'
+require 'nickserver/request_handlers/hkp_email_handler'
require 'nickserver/request_handlers/fingerprint_handler'
module Nickserver
@@ -49,7 +49,7 @@ module Nickserver
[
RequestHandlers::InvalidEmailHandler.new,
RequestHandlers::LocalEmailHandler.new,
- RequestHandlers::EmailHandler.new,
+ RequestHandlers::HkpEmailHandler.new,
RequestHandlers::FingerprintHandler.new,
Proc.new { Nickserver::Response.new(404, "Not Found\n") }
]
diff --git a/lib/nickserver/request_handlers/email_handler.rb b/lib/nickserver/request_handlers/hkp_email_handler.rb
index 96fcaf3..799e138 100644
--- a/lib/nickserver/request_handlers/email_handler.rb
+++ b/lib/nickserver/request_handlers/hkp_email_handler.rb
@@ -3,7 +3,7 @@ require 'nickserver/hkp/source'
module Nickserver
module RequestHandlers
- class EmailHandler
+ class HkpEmailHandler
def call(request)
return unless request.email