lita-yandex-domains 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1686b579d2a7699ec448bbbe8efdb7ffc803115e
4
- data.tar.gz: 582d4dbace104895ff17e5f3ab50c2355b9afef8
3
+ metadata.gz: 298f2d4cf830fda01f4a40b7cb629507df52cff3
4
+ data.tar.gz: 0ec097ad27afb48e551dee05a871dde999f4ec95
5
5
  SHA512:
6
- metadata.gz: b927a2e6635dc6131794e79744c239a7d613d80064916fcf90b51af9a8ace113f4a4a3393c30ed559349e89567a12abf0de636ccd6044c1986ea85f28f11a0a7
7
- data.tar.gz: 32c820f55efcba6917f904c2226a3e016c7c0d195ee6c1654982b4dbed94c8da7ef9314bcafe37a9361637cb8aee10126be5b2a9c58669ea8744a6c3aa5cd740
6
+ metadata.gz: 575f801c0d8e77b3c5f1ab046f8e054149dec6893549d42f0962abc4fb24f349a20838eea072cdf20acfb2c3726fbe9e933e1ade854d10bf577e366479ad22ab
7
+ data.tar.gz: df4b8cfcb3e51ddc9dd27cda5cd00d2fff1321c8acc19679cc73944b0012883bdab22196c959c1ce6263179e425181d6ca4c291c32b30c353754eaac74bae90d
@@ -143,7 +143,12 @@ module Lita
143
143
  end
144
144
 
145
145
  def show_all_maillists(response)
146
- show_emails(response, maillist='yes')
146
+ emails = []
147
+ message = yandex_client.maillist_list(domain=config.domain)
148
+ message['maillists'].each do |maillist|
149
+ emails.push(maillist['maillist'])
150
+ end
151
+ response.reply(emails)
147
152
  end
148
153
 
149
154
  def add_subscriber(response)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-yandex-domains"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.authors = ["Devico Solutions"]
5
5
  spec.email = ["info@devico.io"]
6
6
  spec.description = "Lita handler to interact with yandex domain API"
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.required_ruby_version = '>= 2.3.0'
18
18
 
19
19
  spec.add_runtime_dependency 'lita', '>= 4.7'
20
- spec.add_runtime_dependency 'yandex-pdd-2', '~> 0.1.3'
20
+ spec.add_runtime_dependency 'yandex-pdd-2', '~> 0.1.4'
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 1.3'
23
23
  spec.add_development_dependency 'pry-byebug'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-yandex-domains
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devico Solutions
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.3
33
+ version: 0.1.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.3
40
+ version: 0.1.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement