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 +4 -4
- data/README.md +2 -2
- data/lib/lita/handlers/yandex_domains.rb +3 -3
- data/lita-yandex-domains.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 927d195517041c6f88962751fbb94bad3524854e
|
4
|
+
data.tar.gz: 05e0590388e6694fd202d371a3f5f3b3a3072b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
6
|
-
config :domain, required: false, type: String
|
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)
|
data/lita-yandex-domains.gemspec
CHANGED