qiita 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77ad705b845e426474f821cfa0ea698d1a936d1b
4
- data.tar.gz: d85dc4d9927f8d642fc8bf95cdcd1c0f24371df8
3
+ metadata.gz: 5d6f903a8cf66c0b673315c00fc081d98136ad46
4
+ data.tar.gz: bea16f9b728b52b207f1003d61bb30f4e9e3db4f
5
5
  SHA512:
6
- metadata.gz: 0f47b689c3d96475f5e6b100318da9c0a4bd352de3389ae80e7fc417c0ab7467307c741f6330dfe15238ac4a0cf33bbc184b9ec52399ecee491c21ec754860c4
7
- data.tar.gz: a022b4966b4c098b7e0b211eacda3a93fee66f6ffae217a5b8e871b27223a4d5e86bfbc28fdf58dac823941223ca55e9c365e8e5ea711bb3ffc33b34b0c902af
6
+ metadata.gz: 9dbf9f4377337d5e48facf0ec3b61f6c8178c5a01548d5a8c63e1e40d991db1ebad75ef3cbe533d5add04f2ed9d7de30f01e36a5baac694bb26e77b56937b75b
7
+ data.tar.gz: f68c8c59c44d70b28b4625594d96040b0e0ab455e67f3398e062db084baf473f50617b15c03c4597c98c19295dde5760262046e23b23ac4a02432e936bf4be00
@@ -1,3 +1,7 @@
1
+ ## v1.3.4
2
+
3
+ - Add new methods about emoji reactions
4
+
1
5
  ## v1.3.3
2
6
 
3
7
  - Add `#get_item_like` method
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Qiita API v2 client library and CLI tool, written in Ruby.
7
7
 
8
- ### Install
8
+ ## Install
9
9
 
10
10
  Note: requires Ruby 2.0.0 or higher.
11
11
 
@@ -231,6 +231,48 @@ module Qiita
231
231
  patch("/api/v2/projects/#{project_id}", params, headers)
232
232
  end
233
233
 
234
+ # ### Qiita::Client#create_comment_reaction(comment_id, params = nil, headers = nil)
235
+ # Add an emoji reaction to a comment.
236
+ #
237
+ def create_comment_reaction(comment_id, params = nil, headers = nil)
238
+ post("/api/v2/comments/#{comment_id}/reactions", params, headers)
239
+ end
240
+
241
+ # ### Qiita::Client#create_item_reaction(item_id, params = nil, headers = nil)
242
+ # Add an emoji reaction to an item.
243
+ #
244
+ def create_item_reaction(item_id, params = nil, headers = nil)
245
+ post("/api/v2/items/#{item_id}/reactions", params, headers)
246
+ end
247
+
248
+ # ### Qiita::Client#delete_comment_reaction(comment_id, reaction_name, params = nil, headers = nil)
249
+ # Delete an emoji reaction from a comment.
250
+ #
251
+ def delete_comment_reaction(comment_id, reaction_name, params = nil, headers = nil)
252
+ delete("/api/v2/comments/#{comment_id}/reactions/#{reaction_name}", params, headers)
253
+ end
254
+
255
+ # ### Qiita::Client#delete_item_reaction(item_id, reaction_name, params = nil, headers = nil)
256
+ # Delete an emoji reaction from an item.
257
+ #
258
+ def delete_item_reaction(item_id, reaction_name, params = nil, headers = nil)
259
+ delete("/api/v2/items/#{item_id}/reactions/#{reaction_name}", params, headers)
260
+ end
261
+
262
+ # ### Qiita::Client#list_comment_reactions(comment_id, params = nil, headers = nil)
263
+ # List emoji reactions of an comment.
264
+ #
265
+ def list_comment_reactions(comment_id, params = nil, headers = nil)
266
+ get("/api/v2/comments/#{comment_id}/reactions", params, headers)
267
+ end
268
+
269
+ # ### Qiita::Client#list_item_reactions(item_id, params = nil, headers = nil)
270
+ # List emoji reactions of an item.
271
+ #
272
+ def list_item_reactions(item_id, params = nil, headers = nil)
273
+ get("/api/v2/items/#{item_id}/reactions", params, headers)
274
+ end
275
+
234
276
  # ### Qiita::Client#list_tags(params = nil, headers = nil)
235
277
  # List tags in newest order.
236
278
  #
@@ -1,3 +1,3 @@
1
1
  module Qiita
2
- VERSION = "1.3.3"
2
+ VERSION = "1.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-25 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport