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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c8dd03cab7cc0399c0b8dec700c9e6afe61b926
4
- data.tar.gz: a080dacef20fe6031a9ac8468bc9679a10e31d83
3
+ metadata.gz: 42856e4af1ef0fd06f8e91c9e12be0e87c69d283
4
+ data.tar.gz: 7d444d7b33aa50363c1d988f2d6bbf2f36990f0d
5
5
  SHA512:
6
- metadata.gz: aea517190ee3504c2da078e7f8d0ce8d771c607c3d934d3587cd2c29b1061e185aa0bf65c91a99267b152b7586de5a454723a229a54e8037a07ea7cf0d739e02
7
- data.tar.gz: 1b7c4ff0f3ad5bd8cf0d80cfdc58dc9083834be54638285f02ad07438ae882e16421999b53092f5cd1249575602818ee2b76445859e5f668490cfb3e6b1bad8b
6
+ metadata.gz: fc2e56d2c329d237574b90477513d04506cfb7775082a7e5705cad449f005b500703f2693ead81f85bc432a2d49829975474208343f098bb34193bfb1029612b
7
+ data.tar.gz: 245c84723e8726fae377b46feb83db0440963bdcba83ac66f185ba56ac48b6fd1a2fe6b5a36987630b8764e3b023ef88461336d0dd56694e4e45b268fab76d6c
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.0.2
2
+ - Fix reason parameter to be sent to API server
3
+
4
+ ## 0.0.1
5
+ - 1st Release :police_car:
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Ruboty::QiitaPolice
2
- [Ruboty](https://github.com/r7kamura/ruboty) plug-in to police items by staff.
2
+ [Ruboty](https://github.com/r7kamura/ruboty) plug-in to police items by staff :police_car:
3
3
 
4
4
  ## Installation
5
5
  ```rb
@@ -32,7 +32,10 @@ module Ruboty
32
32
  when !REASONS_TABLE.include?(message[:reason])
33
33
  false
34
34
  else
35
- response = client.put("/api/v2/items/#{message[:item_id]}/ban", reason: message[:reason])
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
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module QiitaPolice
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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