esa 1.11.0 → 1.12.0

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: de9f4d6bea6629f66867738d68d03d8c00140cb1
4
- data.tar.gz: 31d87aeac8f8648a0710707e39de0cbd58be158c
3
+ metadata.gz: 5bd1ffc2820c7403537f4bb3a6297e1d10e35001
4
+ data.tar.gz: 2ed3370fa2fa196c62a902c54e2dbfc2b75795ce
5
5
  SHA512:
6
- metadata.gz: 0eda2bf8da962bcbc9cfc22bfe951fcbe5429012945478bb2df461b452aae9abe7c5795cfa74497f39fc60d9cbf6fe384c6fb4fb2bcb0815fe260005adeb0df3
7
- data.tar.gz: ec26545a4a158cea810ec6df83717241730d2dfdf202b7300ba3f28e9a345f8667ab1753be6361d5fd1b05ef93aec1d81a979a89f5df7e6e5c6bf473c263af7b
6
+ metadata.gz: 2d06a51e5e1d2b19e074d4eb49ab466ca87b960343e654392c465b137bcb05075c53578796179845b220fa86774072ae58158926a3d44ff257ba3f3bb2b658be
7
+ data.tar.gz: f6784daa050a78c64cb46190b2e1db9a60a960d9ee2a1c80baf4b7ddddd106e464a6067bc5d1c2fbe10d86e45a139e2130435938852106f50cd6e788edc02324
@@ -1,3 +1,6 @@
1
+ ## 1.12.0 (2017-10-03)
2
+ - add: [Support /api/v1/comments API by ppworks · Pull Request #29 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/29)
3
+
1
4
  ## 1.11.0 (2017-09-04)
2
5
  - add: [Support emoji API by ppworks · Pull Request #28 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/28)
3
6
 
data/README.md CHANGED
@@ -81,6 +81,9 @@ client.update_comment(comment_id, body_md: 'bazbaz')
81
81
  client.delete_comment(comment_id)
82
82
  #=> DELETE /v1/teams/foobar/comments/123
83
83
 
84
+ client.comments
85
+ #=> GET /v1/teams/foobar/comments
86
+
84
87
  client.create_sharing(post_number)
85
88
  #=> POST /v1/teams/foobar/posts/1/sharing
86
89
 
@@ -43,8 +43,12 @@ module Esa
43
43
  send_delete("/v1/teams/#{current_team!}/posts/#{post_number}", params, headers)
44
44
  end
45
45
 
46
- def comments(post_number, params = nil, headers = nil)
47
- send_get("/v1/teams/#{current_team!}/posts/#{post_number}/comments", params, headers)
46
+ def comments(post_number = nil, params = nil, headers = nil)
47
+ if post_number.nil?
48
+ send_get("/v1/teams/#{current_team!}/comments", params, headers)
49
+ else
50
+ send_get("/v1/teams/#{current_team!}/posts/#{post_number}/comments", params, headers)
51
+ end
48
52
  end
49
53
 
50
54
  def comment(comment_id, params = nil, headers = nil)
@@ -1,3 +1,3 @@
1
1
  module Esa
2
- VERSION = '1.11.0'
2
+ VERSION = '1.12.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fukayatsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-04 00:00:00.000000000 Z
11
+ date: 2017-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday