Skip to content

Commit

Permalink
version of yandex domain lib was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry authored and Dmitry committed Jan 12, 2017
1 parent f67d0da commit a33afd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/lita/handlers/yandex_domains.rb
Expand Up @@ -143,7 +143,12 @@ def delete_maillist(response)
end

def show_all_maillists(response)
show_emails(response, maillist='yes')
emails = []
message = yandex_client.maillist_list(domain=config.domain)
message['maillists'].each do |maillist|
emails.push(maillist['maillist'])
end
response.reply(emails)
end

def add_subscriber(response)
Expand Down
4 changes: 2 additions & 2 deletions lita-yandex-domains.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = "lita-yandex-domains"
spec.version = "0.2.0"
spec.version = "0.2.1"
spec.authors = ["Devico Solutions"]
spec.email = ["info@devico.io"]
spec.description = "Lita handler to interact with yandex domain API"
Expand All @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.3.0'

spec.add_runtime_dependency 'lita', '>= 4.7'
spec.add_runtime_dependency 'yandex-pdd-2', '~> 0.1.3'
spec.add_runtime_dependency 'yandex-pdd-2', '~> 0.1.4'

spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'pry-byebug'
Expand Down

0 comments on commit a33afd5

Please sign in to comment.