qiita 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/doc/client.md +11 -0
- data/lib/qiita/resource_based_methods.rb +7 -0
- data/lib/qiita/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 556fe90882b3d40ba3e228890d997062e4626e66
|
4
|
+
data.tar.gz: d2b89caabd5c8f15270af0265fde8783e6ce9e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59f4f2eaa60d43ec1e00223cc748032b164f96cd7be16ed895adb98d9deab426268429305aee45781d5db35fb839722c763e5a0226e49f5eecdf959c37477090
|
7
|
+
data.tar.gz: f2358ca4572f1d88371f08ed798ba4e50448b9011a77889e9795efc7c330675c15a01f5b4b11082cd04232ce44df0393041803db9c088381f570707b614bb5fa
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/doc/client.md
CHANGED
@@ -4,11 +4,13 @@ Creates a new instance of `Qiita::Client` class.
|
|
4
4
|
|
5
5
|
* `access_token` - (String) Access token issued to authenticate and authorize user.
|
6
6
|
* `host` - (String) Hostname where this client accesses to.
|
7
|
+
* `team` - (String) Team name to be used as subdomain.
|
7
8
|
|
8
9
|
```rb
|
9
10
|
Qiita::Client.new
|
10
11
|
Qiita::Client.new(access_token: "...")
|
11
12
|
Qiita::Client.new(host: "my-team-name.qiita.com")
|
13
|
+
Qiita::Client.new(team: "my-team-name")
|
12
14
|
```
|
13
15
|
|
14
16
|
### Qiita::Client#get(path, params = nil, headers = nil)
|
@@ -64,6 +66,9 @@ client.connection.response :logger
|
|
64
66
|
### Qiita::Client#delete_access_token(token, params = nil, headers = nil)
|
65
67
|
与えられたアクセストークンを失効させ、それ以降利用されないようにします。
|
66
68
|
|
69
|
+
### Qiita::Client#get_comment(id, params = nil, headers = nil)
|
70
|
+
特定のコメントを返します。
|
71
|
+
|
67
72
|
### Qiita::Client#delete_comment(id, params = nil, headers = nil)
|
68
73
|
特定のコメントを削除します。
|
69
74
|
|
@@ -133,6 +138,9 @@ client.connection.response :logger
|
|
133
138
|
### Qiita::Client#update_project(id, params = nil, headers = nil)
|
134
139
|
特定のプロジェクトを編集します。
|
135
140
|
|
141
|
+
### Qiita::Client#create_expanded_template(params = nil, headers = nil)
|
142
|
+
受け取ったテンプレート用文字列の変数を展開して返します。
|
143
|
+
|
136
144
|
### Qiita::Client#list_tags(params = nil, headers = nil)
|
137
145
|
全てのタグ一覧を返します。
|
138
146
|
|
@@ -145,6 +153,9 @@ client.connection.response :logger
|
|
145
153
|
### Qiita::Client#list_templates(params = nil, headers = nil)
|
146
154
|
全てのテンプレート一覧を返します。
|
147
155
|
|
156
|
+
### Qiita::Client#get_template(id, params = nil, headers = nil)
|
157
|
+
特定のテンプレートを返します。
|
158
|
+
|
148
159
|
### Qiita::Client#delete_template(id, params = nil, headers = nil)
|
149
160
|
特定のテンプレートを削除します。
|
150
161
|
|
@@ -279,5 +279,12 @@ module Qiita
|
|
279
279
|
def list_user_followers(user_id, params = nil, headers = nil)
|
280
280
|
get("/api/v2/users/#{user_id}/followers", params, headers)
|
281
281
|
end
|
282
|
+
|
283
|
+
# ### Qiita::Client#list_item_stockers(item_id, params = nil, headers = nil)
|
284
|
+
# 特定の投稿をストックしているユーザ一覧を返します。
|
285
|
+
#
|
286
|
+
def list_item_stockers(item_id, params = nil, headers = nil)
|
287
|
+
get("/api/v2/items/#{item_id}/stockers", params, headers)
|
288
|
+
end
|
282
289
|
end
|
283
290
|
end
|
data/lib/qiita/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qiita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -201,6 +201,7 @@ extensions: []
|
|
201
201
|
extra_rdoc_files: []
|
202
202
|
files:
|
203
203
|
- ".gitignore"
|
204
|
+
- ".travis.yml"
|
204
205
|
- CHANGELOG.md
|
205
206
|
- Gemfile
|
206
207
|
- LICENSE.txt
|