diff options
author | azul <azul@riseup.net> | 2017-09-23 14:44:56 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-09-23 14:44:56 +0000 |
commit | 787287318c54b019a12ef79525c9f5b10d93724d (patch) | |
tree | 653c56240d681e1aaf5f7f0ef00904d0bd24301f /lib/nickserver/wkd/source.rb | |
parent | bc48ac30c232f1e3fa5f5ad455f14d5fec17abeb (diff) | |
parent | c0410a5a5c5dbdd5fa182ac25d72ebb99e48bbb3 (diff) |
Merge branch 'wkd' into 'master'
Fetch keys from web key directory
See merge request leap/nickserver!18
Diffstat (limited to 'lib/nickserver/wkd/source.rb')
-rw-r--r-- | lib/nickserver/wkd/source.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/nickserver/wkd/source.rb b/lib/nickserver/wkd/source.rb new file mode 100644 index 0000000..01f376e --- /dev/null +++ b/lib/nickserver/wkd/source.rb @@ -0,0 +1,16 @@ +require 'nickserver/source' +require 'nickserver/response' + +module Nickserver + module Wkd + class Source < Nickserver::Source + + def query(email) + url = Url.new(email) + status, body = adapter.get url + return Nickserver::Response.new(status, body) + end + + end + end +end |