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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +3 -0
- data/lib/esa/api_methods.rb +6 -2
- data/lib/esa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bd1ffc2820c7403537f4bb3a6297e1d10e35001
|
4
|
+
data.tar.gz: 2ed3370fa2fa196c62a902c54e2dbfc2b75795ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d06a51e5e1d2b19e074d4eb49ab466ca87b960343e654392c465b137bcb05075c53578796179845b220fa86774072ae58158926a3d44ff257ba3f3bb2b658be
|
7
|
+
data.tar.gz: f6784daa050a78c64cb46190b2e1db9a60a960d9ee2a1c80baf4b7ddddd106e464a6067bc5d1c2fbe10d86e45a139e2130435938852106f50cd6e788edc02324
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/esa/api_methods.rb
CHANGED
@@ -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,
|
47
|
-
|
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)
|
data/lib/esa/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|