lita-yandex-domains 0.1.0 → 0.1.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: fc217e9272589c57bae5d1c92afeba46dfe55275
4
- data.tar.gz: 2bffa086fafacd6bd8b82c6f371c3e7adf11f281
3
+ metadata.gz: 927d195517041c6f88962751fbb94bad3524854e
4
+ data.tar.gz: 05e0590388e6694fd202d371a3f5f3b3a3072b03
5
5
  SHA512:
6
- metadata.gz: 8e23c5407b2eb05ff525858854b44a8f1f8bea5508b295bacd05a7a2d6c15eae787e482ad4077e0929745fc50d940e7bb9c5dbc3eede4a8b7768351a30b6bab1
7
- data.tar.gz: 2f2be7c5110f34b7d249699a1dd8925839c16419367a7be3550eb7bd7c904cf3a04d8dea2e0ac6aeb06b4d820bb404581bc152d511bd25c18ea95d6d0c4c7a88
6
+ metadata.gz: 52c66161ac15e1cd22013e336881d94da1e518f007fe0e3985e0e48087003f5ffd620d1281cb95cb23cad8954f6a301197cedac095f57d5a729d973a3e5efa32
7
+ data.tar.gz: a33c8e97cf81e80d588b2d63ae3805d9b58ac5e58811adc7737042dcb9273f16b81a120ff8db3bdd09c364805d86b2c995014e2d1be6dde62dfae76c7a9088ec
data/README.md CHANGED
@@ -29,7 +29,6 @@ gem 'lita-yandex-domains'
29
29
  Lita.configure do |config|
30
30
  config.handlers.yandex_domains.pdd_token = 'XXXXXXX'
31
31
  config.handlers.yandex_domains.domain = 'example.com'
32
- config.robot.yandex_admins = ["XXXXX"]
33
32
  end
34
33
  ```
35
34
 
@@ -48,7 +47,8 @@ yandex add <email> to maillist <email> - Add subcriber to maillist
48
47
  yandex delete <email> from maillist <email> - Remove subcriber from maillist
49
48
  ```
50
49
 
51
- *Note:* The above commands except show commands require that the user be a member of the `:yandex_admins` authorization group.
50
+ *Note:* The above commands except "show" commands require that the user be a member of the `:yandex_admins` authorization group.
51
+ For example: to add admin for ```lita yandex domain``` run the following command - ``` Lita, auth add username yandex_admins ```
52
52
 
53
53
  ## License
54
54
 
@@ -2,8 +2,8 @@ module Lita
2
2
  module Handlers
3
3
  class YandexDomains < Handler
4
4
 
5
- config :pdd_token, required: false, type: String, default: 'NAHCRSUVLHFRSILELDIJGPK2KTAWD5K7RTKYKPOG2XIB462LKTRQ'
6
- config :domain, required: false, type: String, default: 'devico.io'
5
+ config :pdd_token, required: false, type: String
6
+ config :domain, required: false, type: String
7
7
 
8
8
  include ::YandexHelper::Regex
9
9
 
@@ -164,7 +164,7 @@ module Lita
164
164
  accounts['accounts'].each do |account|
165
165
  emails.push(account['login']) if account['maillist'] == maillist
166
166
  end
167
- response.reply(emails)
167
+ response.reply(emails.sort)
168
168
  end
169
169
 
170
170
  def error_message(domain)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-yandex-domains"
3
- spec.version = "0.1.0"
3
+ spec.version = "0.1.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"
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devico Solutions