ruboty-qiita_police 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/ruboty/handlers/qiita_police.rb +4 -1
- data/lib/ruboty/qiita_police/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42856e4af1ef0fd06f8e91c9e12be0e87c69d283
|
4
|
+
data.tar.gz: 7d444d7b33aa50363c1d988f2d6bbf2f36990f0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc2e56d2c329d237574b90477513d04506cfb7775082a7e5705cad449f005b500703f2693ead81f85bc432a2d49829975474208343f098bb34193bfb1029612b
|
7
|
+
data.tar.gz: 245c84723e8726fae377b46feb83db0440963bdcba83ac66f185ba56ac48b6fd1a2fe6b5a36987630b8764e3b023ef88461336d0dd56694e4e45b268fab76d6c
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -32,7 +32,10 @@ module Ruboty
|
|
32
32
|
when !REASONS_TABLE.include?(message[:reason])
|
33
33
|
false
|
34
34
|
else
|
35
|
-
response = client.put(
|
35
|
+
response = client.put(
|
36
|
+
"/api/v2/items/#{message[:item_id]}/ban",
|
37
|
+
reason: REASONS_TABLE[message[:reason]],
|
38
|
+
)
|
36
39
|
if response.status == 204
|
37
40
|
message.reply("Banned")
|
38
41
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-qiita_police
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|