qiita 1.3.0 → 1.3.1
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/lib/qiita/resource_based_methods.rb +40 -40
- data/lib/qiita/version.rb +1 -1
- data/script/generate +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: 635619c25deb32bd52e9a4edb75d258892e96d5b
|
4
|
+
data.tar.gz: d40ac99991080f59fedc478eb2820364fef00907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c310f3e853506827d6c5cd903d068d6a638d357fcbe03b4ecd9cfe441cac35f7422a05fccb45768a1c863ff149dd8bceae28612bdb657574f91182bd25df690d
|
7
|
+
data.tar.gz: e6b31c825fdf7eb50a4f3319d3efa2631ea81c63b6dd24fa6e6922c77a5cfa947c9638ab5920bfd0b83ec3636e5a83aaea4e7ef64efec975c392b3723b21e08c
|
data/CHANGELOG.md
CHANGED
@@ -11,7 +11,7 @@ module Qiita
|
|
11
11
|
# Deactivate an access token.
|
12
12
|
#
|
13
13
|
def delete_access_token(params = nil, headers = nil)
|
14
|
-
delete("/api/v2/access_tokens
|
14
|
+
delete("/api/v2/access_tokens/#{access_token}", params, headers)
|
15
15
|
end
|
16
16
|
|
17
17
|
# ### Qiita::Client#get_authenticated_user(params = nil, headers = nil)
|
@@ -25,49 +25,49 @@ module Qiita
|
|
25
25
|
# Delete a comment.
|
26
26
|
#
|
27
27
|
def delete_comment(params = nil, headers = nil)
|
28
|
-
delete("/api/v2/comments
|
28
|
+
delete("/api/v2/comments/#{comment_id}", params, headers)
|
29
29
|
end
|
30
30
|
|
31
31
|
# ### Qiita::Client#get_comment(params = nil, headers = nil)
|
32
32
|
# Get a comment.
|
33
33
|
#
|
34
34
|
def get_comment(params = nil, headers = nil)
|
35
|
-
get("/api/v2/comments
|
35
|
+
get("/api/v2/comments/#{comment_id}", params, headers)
|
36
36
|
end
|
37
37
|
|
38
38
|
# ### Qiita::Client#update_comment(params = nil, headers = nil)
|
39
39
|
# Update a comment.
|
40
40
|
#
|
41
41
|
def update_comment(params = nil, headers = nil)
|
42
|
-
patch("/api/v2/comments
|
42
|
+
patch("/api/v2/comments/#{comment_id}", params, headers)
|
43
43
|
end
|
44
44
|
|
45
45
|
# ### Qiita::Client#unthank_comment(params = nil, headers = nil)
|
46
46
|
# Delete a thank from a comment.
|
47
47
|
#
|
48
48
|
def unthank_comment(params = nil, headers = nil)
|
49
|
-
delete("/api/v2/comments
|
49
|
+
delete("/api/v2/comments/#{comment_id}/thank", params, headers)
|
50
50
|
end
|
51
51
|
|
52
52
|
# ### Qiita::Client#thank_comment(params = nil, headers = nil)
|
53
53
|
# Send a thank to a comment.
|
54
54
|
#
|
55
55
|
def thank_comment(params = nil, headers = nil)
|
56
|
-
put("/api/v2/comments
|
56
|
+
put("/api/v2/comments/#{comment_id}/thank", params, headers)
|
57
57
|
end
|
58
58
|
|
59
59
|
# ### Qiita::Client#list_item_comments(params = nil, headers = nil)
|
60
60
|
# List comments on an item in newest order.
|
61
61
|
#
|
62
62
|
def list_item_comments(params = nil, headers = nil)
|
63
|
-
|
63
|
+
get("/api/v2/items/#{item_id}/comments", params, headers)
|
64
64
|
end
|
65
65
|
|
66
66
|
# ### Qiita::Client#create_item_comment(params = nil, headers = nil)
|
67
67
|
# Post a comment on an item.
|
68
68
|
#
|
69
69
|
def create_item_comment(params = nil, headers = nil)
|
70
|
-
post("/api/v2/items
|
70
|
+
post("/api/v2/items/#{item_id}/comments", params, headers)
|
71
71
|
end
|
72
72
|
|
73
73
|
# ### Qiita::Client#create_expanded_template(params = nil, headers = nil)
|
@@ -102,84 +102,84 @@ module Qiita
|
|
102
102
|
# Delete an item.
|
103
103
|
#
|
104
104
|
def delete_item(params = nil, headers = nil)
|
105
|
-
get("/api/v2/items
|
105
|
+
get("/api/v2/items/#{item_id}", params, headers)
|
106
106
|
end
|
107
107
|
|
108
108
|
# ### Qiita::Client#get_item(params = nil, headers = nil)
|
109
109
|
# Get an item.
|
110
110
|
#
|
111
111
|
def get_item(params = nil, headers = nil)
|
112
|
-
get("/api/v2/items
|
112
|
+
get("/api/v2/items/#{item_id}", params, headers)
|
113
113
|
end
|
114
114
|
|
115
115
|
# ### Qiita::Client#update_item(params = nil, headers = nil)
|
116
116
|
# Update an item.
|
117
117
|
#
|
118
118
|
def update_item(params = nil, headers = nil)
|
119
|
-
patch("/api/v2/items
|
119
|
+
patch("/api/v2/items/#{item_id}", params, headers)
|
120
120
|
end
|
121
121
|
|
122
122
|
# ### Qiita::Client#unlike_item(params = nil, headers = nil)
|
123
123
|
# Unlike an item (only available on Qiita:Team).
|
124
124
|
#
|
125
125
|
def unlike_item(params = nil, headers = nil)
|
126
|
-
delete("/api/v2/items
|
126
|
+
delete("/api/v2/items/#{item_id}/like", params, headers)
|
127
127
|
end
|
128
128
|
|
129
129
|
# ### Qiita::Client#like_item(params = nil, headers = nil)
|
130
130
|
# Like an item (only available on Qiita:Team).
|
131
131
|
#
|
132
132
|
def like_item(params = nil, headers = nil)
|
133
|
-
put("/api/v2/items
|
133
|
+
put("/api/v2/items/#{item_id}/like", params, headers)
|
134
134
|
end
|
135
135
|
|
136
136
|
# ### Qiita::Client#unstock_item(params = nil, headers = nil)
|
137
137
|
# Unstock an item.
|
138
138
|
#
|
139
139
|
def unstock_item(params = nil, headers = nil)
|
140
|
-
delete("/api/v2/items
|
140
|
+
delete("/api/v2/items/#{item_id}/stock", params, headers)
|
141
141
|
end
|
142
142
|
|
143
143
|
# ### Qiita::Client#get_item_stock(params = nil, headers = nil)
|
144
144
|
# Check if you stocked an item.
|
145
145
|
#
|
146
146
|
def get_item_stock(params = nil, headers = nil)
|
147
|
-
get("/api/v2/items
|
147
|
+
get("/api/v2/items/#{item_id}/stock", params, headers)
|
148
148
|
end
|
149
149
|
|
150
150
|
# ### Qiita::Client#stock_item(params = nil, headers = nil)
|
151
151
|
# Stock an item.
|
152
152
|
#
|
153
153
|
def stock_item(params = nil, headers = nil)
|
154
|
-
put("/api/v2/items
|
154
|
+
put("/api/v2/items/#{item_id}/stock", params, headers)
|
155
155
|
end
|
156
156
|
|
157
157
|
# ### Qiita::Client#stock_item(params = nil, headers = nil)
|
158
158
|
# Stock an item.
|
159
159
|
#
|
160
160
|
def stock_item(params = nil, headers = nil)
|
161
|
-
put("/api/v2/items
|
161
|
+
put("/api/v2/items/#{item_id}/stock", params, headers)
|
162
162
|
end
|
163
163
|
|
164
164
|
# ### Qiita::Client#list_tag_items(params = nil, headers = nil)
|
165
165
|
# List tagged items in recently-tagged order.
|
166
166
|
#
|
167
167
|
def list_tag_items(params = nil, headers = nil)
|
168
|
-
get("/api/v2/tags
|
168
|
+
get("/api/v2/tags/#{tag_id}/items", params, headers)
|
169
169
|
end
|
170
170
|
|
171
171
|
# ### Qiita::Client#list_user_items(params = nil, headers = nil)
|
172
172
|
# List a user's items in newest order.
|
173
173
|
#
|
174
174
|
def list_user_items(params = nil, headers = nil)
|
175
|
-
get("/api/v2/users
|
175
|
+
get("/api/v2/users/#{user_id}/items", params, headers)
|
176
176
|
end
|
177
177
|
|
178
178
|
# ### Qiita::Client#list_user_stocks(params = nil, headers = nil)
|
179
179
|
# List a user's stocked items in recently-stocked order.
|
180
180
|
#
|
181
181
|
def list_user_stocks(params = nil, headers = nil)
|
182
|
-
get("/api/v2/users
|
182
|
+
get("/api/v2/users/#{user_id}/stocks", params, headers)
|
183
183
|
end
|
184
184
|
|
185
185
|
# ### Qiita::Client#list_projects(params = nil, headers = nil)
|
@@ -200,21 +200,21 @@ module Qiita
|
|
200
200
|
# Delete a project.
|
201
201
|
#
|
202
202
|
def delete_project(params = nil, headers = nil)
|
203
|
-
delete("/api/v2/projects
|
203
|
+
delete("/api/v2/projects/#{project_id}", params, headers)
|
204
204
|
end
|
205
205
|
|
206
206
|
# ### Qiita::Client#get_project(params = nil, headers = nil)
|
207
207
|
# Get a project.
|
208
208
|
#
|
209
209
|
def get_project(params = nil, headers = nil)
|
210
|
-
get("/api/v2/projects
|
210
|
+
get("/api/v2/projects/#{project_id}", params, headers)
|
211
211
|
end
|
212
212
|
|
213
213
|
# ### Qiita::Client#patch_project(params = nil, headers = nil)
|
214
214
|
# Update a project
|
215
215
|
#
|
216
216
|
def patch_project(params = nil, headers = nil)
|
217
|
-
patch("/api/v2/projects
|
217
|
+
patch("/api/v2/projects/#{project_id}", params, headers)
|
218
218
|
end
|
219
219
|
|
220
220
|
# ### Qiita::Client#list_tags(params = nil, headers = nil)
|
@@ -228,49 +228,49 @@ module Qiita
|
|
228
228
|
# Get a tag.
|
229
229
|
#
|
230
230
|
def get_tag(params = nil, headers = nil)
|
231
|
-
get("/api/v2/tags
|
231
|
+
get("/api/v2/tags/#{tag_id}", params, headers)
|
232
232
|
end
|
233
233
|
|
234
234
|
# ### Qiita::Client#list_user_following_tags(params = nil, headers = nil)
|
235
235
|
# List tags a user is following to in recently-tagged order.
|
236
236
|
#
|
237
237
|
def list_user_following_tags(params = nil, headers = nil)
|
238
|
-
get("/api/v2/users
|
238
|
+
get("/api/v2/users/#{user_id}/following_tags", params, headers)
|
239
239
|
end
|
240
240
|
|
241
241
|
# ### Qiita::Client#unfollow_tag(params = nil, headers = nil)
|
242
242
|
# Unfollow a tag.
|
243
243
|
#
|
244
244
|
def unfollow_tag(params = nil, headers = nil)
|
245
|
-
delete("/api/v2/tags
|
245
|
+
delete("/api/v2/tags/#{tag_id}/following", params, headers)
|
246
246
|
end
|
247
247
|
|
248
248
|
# ### Qiita::Client#get_tag_following(params = nil, headers = nil)
|
249
249
|
# Check if you are following a tag or not.
|
250
250
|
#
|
251
251
|
def get_tag_following(params = nil, headers = nil)
|
252
|
-
get("/api/v2/tags
|
252
|
+
get("/api/v2/tags/#{tag_id}/following", params, headers)
|
253
253
|
end
|
254
254
|
|
255
255
|
# ### Qiita::Client#follow_tag(params = nil, headers = nil)
|
256
256
|
# Follow a tag.
|
257
257
|
#
|
258
258
|
def follow_tag(params = nil, headers = nil)
|
259
|
-
put("/api/v2/tags
|
259
|
+
put("/api/v2/tags/#{tag_id}/following", params, headers)
|
260
260
|
end
|
261
261
|
|
262
262
|
# ### Qiita::Client#create_tagging(params = nil, headers = nil)
|
263
263
|
# Add a tag to an item (only available on Qiita:Team)
|
264
264
|
#
|
265
265
|
def create_tagging(params = nil, headers = nil)
|
266
|
-
post("/api/v2/items
|
266
|
+
post("/api/v2/items/#{item_id}/taggings", params, headers)
|
267
267
|
end
|
268
268
|
|
269
269
|
# ### Qiita::Client#delete_tagging(params = nil, headers = nil)
|
270
270
|
# Remove a tag from an item (only available on Qiita:Team)
|
271
271
|
#
|
272
272
|
def delete_tagging(params = nil, headers = nil)
|
273
|
-
delete("/api/v2/items
|
273
|
+
delete("/api/v2/items/#{item_id}/taggings/#{tagging_id}", params, headers)
|
274
274
|
end
|
275
275
|
|
276
276
|
# ### Qiita::Client#list_teams(params = nil, headers = nil)
|
@@ -291,14 +291,14 @@ module Qiita
|
|
291
291
|
# Delete a template.
|
292
292
|
#
|
293
293
|
def delete_template(params = nil, headers = nil)
|
294
|
-
delete("/api/v2/templates
|
294
|
+
delete("/api/v2/templates/#{template_id}", params, headers)
|
295
295
|
end
|
296
296
|
|
297
297
|
# ### Qiita::Client#get_template(params = nil, headers = nil)
|
298
298
|
# Get a template.
|
299
299
|
#
|
300
300
|
def get_template(params = nil, headers = nil)
|
301
|
-
get("/api/v2/templates
|
301
|
+
get("/api/v2/templates/#{template_id}", params, headers)
|
302
302
|
end
|
303
303
|
|
304
304
|
# ### Qiita::Client#create_template(params = nil, headers = nil)
|
@@ -312,14 +312,14 @@ module Qiita
|
|
312
312
|
# Update a template.
|
313
313
|
#
|
314
314
|
def update_template(params = nil, headers = nil)
|
315
|
-
patch("/api/v2/templates
|
315
|
+
patch("/api/v2/templates/#{template_id}", params, headers)
|
316
316
|
end
|
317
317
|
|
318
318
|
# ### Qiita::Client#list_item_stockers(params = nil, headers = nil)
|
319
319
|
# List users who stocked an item in recent-stocked order.
|
320
320
|
#
|
321
321
|
def list_item_stockers(params = nil, headers = nil)
|
322
|
-
get("/api/v2/items
|
322
|
+
get("/api/v2/items/#{item_id}/stockers", params, headers)
|
323
323
|
end
|
324
324
|
|
325
325
|
# ### Qiita::Client#list_users(params = nil, headers = nil)
|
@@ -333,42 +333,42 @@ module Qiita
|
|
333
333
|
# Get a user.
|
334
334
|
#
|
335
335
|
def get_user(params = nil, headers = nil)
|
336
|
-
get("/api/v2/users
|
336
|
+
get("/api/v2/users/#{user_id}", params, headers)
|
337
337
|
end
|
338
338
|
|
339
339
|
# ### Qiita::Client#list_user_followees(params = nil, headers = nil)
|
340
340
|
# List users a user is following.
|
341
341
|
#
|
342
342
|
def list_user_followees(params = nil, headers = nil)
|
343
|
-
get("/api/v2/users
|
343
|
+
get("/api/v2/users/#{user_id}/followees", params, headers)
|
344
344
|
end
|
345
345
|
|
346
346
|
# ### Qiita::Client#list_user_followers(params = nil, headers = nil)
|
347
347
|
# List users who are following a user.
|
348
348
|
#
|
349
349
|
def list_user_followers(params = nil, headers = nil)
|
350
|
-
get("/api/v2/users
|
350
|
+
get("/api/v2/users/#{user_id}/followers", params, headers)
|
351
351
|
end
|
352
352
|
|
353
353
|
# ### Qiita::Client#unfollow_user(params = nil, headers = nil)
|
354
354
|
# Unfollow a user.
|
355
355
|
#
|
356
356
|
def unfollow_user(params = nil, headers = nil)
|
357
|
-
delete("/api/v2/users
|
357
|
+
delete("/api/v2/users/#{user_id}/following", params, headers)
|
358
358
|
end
|
359
359
|
|
360
360
|
# ### Qiita::Client#get_user_following(params = nil, headers = nil)
|
361
361
|
# Check if the current user is following a user.
|
362
362
|
#
|
363
363
|
def get_user_following(params = nil, headers = nil)
|
364
|
-
get("/api/v2/users
|
364
|
+
get("/api/v2/users/#{user_id}/following", params, headers)
|
365
365
|
end
|
366
366
|
|
367
367
|
# ### Qiita::Client#follow_user(params = nil, headers = nil)
|
368
368
|
# Follow a user.
|
369
369
|
#
|
370
370
|
def follow_user(params = nil, headers = nil)
|
371
|
-
put("/api/v2/users
|
371
|
+
put("/api/v2/users/#{user_id}/following", params, headers)
|
372
372
|
end
|
373
373
|
end
|
374
374
|
end
|
data/lib/qiita/version.rb
CHANGED
data/script/generate
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.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|