esa 1.3.0 → 1.4.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: c0f4eb82f87c5128c7c0ee12233472593c105148
4
- data.tar.gz: 2bd615eefe3fa27b5c8b5cc400d0699d592e0e81
3
+ metadata.gz: a940e532ad9c9940ce7ea342758fc40ac149381d
4
+ data.tar.gz: 2e5b75806f1f7fd5aae8a877b9d091e7f1553d86
5
5
  SHA512:
6
- metadata.gz: 9d6204aacd50bb2d654838f069c1a01131a72278b54926cacb13e431887e64199f98aceff62afe1e4d97af2fc527f8affb484c9d26eb3851fafd9e1f70fe9c23
7
- data.tar.gz: 6048692b89f1934d4327fa29c1ac7a4f7c4973a7c68df062fd8dfcf90eb90b5353c8dfd3297aed10013841cb5d9fe2ff573d594580b5a17ad3117a0f94a67d25
6
+ metadata.gz: 26c3aa5977def8be9166c1586644740db89ed5793c677a0ffcde2f8cbf0a9572ece1e3cacad3e490019edf2fd59a6a3c77b7defae21f5910987d98fa4d023db8
7
+ data.tar.gz: 73c60a6173fb1567d7f304fa9a81eb78c8ae8c0815796ad50d0243cd40f9b378244aea66786e849685176648d3a49b3dcc93cc858375b08962bd70606a94dec0
@@ -1,3 +1,6 @@
1
+ ## 1.4.0 (2016-04-17)
2
+ - add: [Add Authenticated User API by fukayatsu · Pull Request #19 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/19)
3
+
1
4
  ## 1.3.0 (2016-02-09)
2
5
  - add: [Add Sharing API by fukayatsu · Pull Request #17 · esaio/esa-ruby](https://github.com/esaio/esa-ruby/pull/17)
3
6
 
data/README.md CHANGED
@@ -25,6 +25,10 @@ Or install it yourself as:
25
25
  # Initialization
26
26
  client = Esa::Client.new(access_token: "<access_token>", current_team: 'foo')
27
27
 
28
+ # Authenticated User API
29
+ client.user
30
+ #=> GET /v1/user
31
+
28
32
  # Team API
29
33
  client.teams
30
34
  #=> GET /v1/teams
@@ -2,6 +2,10 @@ module Esa
2
2
  module ApiMethods
3
3
  HTTP_REGEX = %r{^https?://}
4
4
 
5
+ def user(params = nil, headers = nil)
6
+ send_get("/v1/user", params, headers)
7
+ end
8
+
5
9
  def teams(params = nil, headers = nil)
6
10
  send_get("/v1/teams", params, headers)
7
11
  end
@@ -1,3 +1,3 @@
1
1
  module Esa
2
- VERSION = '1.3.0'
2
+ VERSION = '1.4.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.3.0
4
+ version: 1.4.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-02-09 00:00:00.000000000 Z
11
+ date: 2016-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  requirements: []
240
240
  rubyforge_project:
241
- rubygems_version: 2.4.5.1
241
+ rubygems_version: 2.6.3
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: "[WIP] esa API v1 client library, written in Ruby"