esa 1.5.0 → 1.6.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: 7ad8f1ae7ea01801648babf0a505149f4aac9f95
4
- data.tar.gz: 0d688dd113247228280a1ae7283040f79cc62695
3
+ metadata.gz: 625dd73a63970ae4126ae92f8813293506bcba1d
4
+ data.tar.gz: ff118170fb60513acbe430eeb149c020d03a8ad6
5
5
  SHA512:
6
- metadata.gz: 8609f4c5b3e4bd4eb623757098f28a45564d9492f46468f7f36f5d0e5cc28eeeb53b8f6ba516d4d3d26e0692750ce9766bf6862c6c8a0f69d7134531f8fb9a5a
7
- data.tar.gz: 9ed0be20c50a41ebe42b9a04c60db074a22b0cf3255c7cf69c6497791ba0035be136c70fe09c7a3dcb8e601732364ef2f6da227c4b2e5522d05c43219f904ebf
6
+ metadata.gz: 6697088587919feb45dd3407570ae630f12f9a5f6f2db7ce71c94820d53b24905c28296944601370ff44d4324e140844d56da4d82026ba6f589cce4badac6551
7
+ data.tar.gz: a792c397551d0efecf65ba5e405c567727051a9e6d42410e167ce5f35af412e1c11198ceebe8a96d5c914ee36c689d60a0834438223362e9d2e3ef3e68c88d98
@@ -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
  [![Build Status](https://travis-ci.org/esaio/esa-ruby.svg)](https://travis-ci.org/esaio/esa-ruby)
3
3
 
4
- [WIP] esa API v1 client library, written in Ruby
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
@@ -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{[WIP] esa API v1 client library, written in Ruby}
12
- spec.description = %q{[WIP] esa API v1 client library, written in Ruby}
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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Esa
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.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.5.0
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-05-05 00:00:00.000000000 Z
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: "[WIP] esa API v1 client library, written in Ruby"
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: "[WIP] esa API v1 client library, written in Ruby"
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