esa 1.5.0 → 1.6.0
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +8 -1
- data/esa.gemspec +2 -2
- data/lib/esa/api_methods.rb +8 -0
- data/lib/esa/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 625dd73a63970ae4126ae92f8813293506bcba1d
|
4
|
+
data.tar.gz: ff118170fb60513acbe430eeb149c020d03a8ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6697088587919feb45dd3407570ae630f12f9a5f6f2db7ce71c94820d53b24905c28296944601370ff44d4324e140844d56da4d82026ba6f589cce4badac6551
|
7
|
+
data.tar.gz: a792c397551d0efecf65ba5e405c567727051a9e6d42410e167ce5f35af412e1c11198ceebe8a96d5c914ee36c689d60a0834438223362e9d2e3ef3e68c88d98
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 1.6.0 (2016-06-10)
|
2
|
+
- add: [Add Categories API and Tags API by fukayatsu · Pull Request #22 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/22)
|
3
|
+
|
1
4
|
## 1.5.0 (2016-05-05)
|
2
5
|
- add: [Add Reaction APIs: star&watch by fukayatsu · Pull Request #20 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/20)
|
3
6
|
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# esa-ruby
|
2
2
|
[](https://travis-ci.org/esaio/esa-ruby)
|
3
3
|
|
4
|
-
|
4
|
+
esa API v1 client library, written in Ruby
|
5
5
|
|
6
6
|
## Installation
|
7
7
|
|
@@ -118,6 +118,13 @@ client.add_watch(post_number)
|
|
118
118
|
client.delete_watch(post_number)
|
119
119
|
#=> DELETE /v1/teams/foobar/posts/1/watch
|
120
120
|
|
121
|
+
# Categories API
|
122
|
+
client.categories
|
123
|
+
#=> GET /v1/teams/foobar/categories
|
124
|
+
|
125
|
+
# Tags API
|
126
|
+
client.tags
|
127
|
+
#=> GET /v1/teams/foobar/tags
|
121
128
|
|
122
129
|
# Upload Attachment(beta)
|
123
130
|
client.upload_attachment('/Users/foo/Desktop/foo.png') # Path
|
data/esa.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Esa::VERSION
|
9
9
|
spec.authors = ["fukayatsu"]
|
10
10
|
spec.email = ["fukayatsu@gmail.com"]
|
11
|
-
spec.summary = %q{
|
12
|
-
spec.description = %q{
|
11
|
+
spec.summary = %q{esa API v1 client library, written in Ruby}
|
12
|
+
spec.description = %q{esa API v1 client library, written in Ruby}
|
13
13
|
spec.homepage = "https://github.com/esaio/esa-ruby/"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
data/lib/esa/api_methods.rb
CHANGED
@@ -106,6 +106,14 @@ module Esa
|
|
106
106
|
send_delete("/v1/teams/#{current_team!}/posts/#{post_number}/watch", params, headers)
|
107
107
|
end
|
108
108
|
|
109
|
+
def categories(params = nil, headers = nil)
|
110
|
+
send_get("/v1/teams/#{current_team!}/categories", params, headers)
|
111
|
+
end
|
112
|
+
|
113
|
+
def tags(params = nil, headers = nil)
|
114
|
+
send_get("/v1/teams/#{current_team!}/tags", params, headers)
|
115
|
+
end
|
116
|
+
|
109
117
|
class PathStringIO < StringIO
|
110
118
|
attr_accessor :path
|
111
119
|
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -192,7 +192,7 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
description:
|
195
|
+
description: esa API v1 client library, written in Ruby
|
196
196
|
email:
|
197
197
|
- fukayatsu@gmail.com
|
198
198
|
executables: []
|
@@ -241,7 +241,7 @@ rubyforge_project:
|
|
241
241
|
rubygems_version: 2.6.3
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
|
-
summary:
|
244
|
+
summary: esa API v1 client library, written in Ruby
|
245
245
|
test_files:
|
246
246
|
- spec/esa/client_spec.rb
|
247
247
|
- spec/esa/response_spec.rb
|