asana 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.swagger-codegen-ignore +0 -1
- data/.travis.yml +1 -0
- data/Gemfile +2 -0
- data/VERSION +1 -0
- data/asana.gemspec +1 -1
- data/examples/Gemfile.lock +10 -10
- data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
- data/lib/asana/resources/gen/projects_base.rb +1 -1
- data/lib/asana/resources/gen/tags_base.rb +14 -0
- data/lib/asana/resources/gen/tasks_base.rb +3 -2
- data/lib/asana/resources/gen/users_base.rb +1 -1
- data/lib/asana/version.rb +1 -1
- data/samples/attachments_sample.yaml +41 -0
- data/samples/batch_api_sample.yaml +11 -0
- data/samples/custom_field_settings_sample.yaml +21 -0
- data/samples/custom_fields_sample.yaml +81 -0
- data/samples/events_sample.yaml +11 -0
- data/samples/jobs_sample.yaml +11 -0
- data/samples/organization_exports_sample.yaml +21 -0
- data/samples/portfolio_memberships_sample.yaml +31 -0
- data/samples/portfolios_sample.yaml +121 -0
- data/samples/project_memberships_sample.yaml +21 -0
- data/samples/project_statuses_sample.yaml +41 -0
- data/samples/projects_sample.yaml +181 -0
- data/samples/sections_sample.yaml +71 -0
- data/samples/stories_sample.yaml +51 -0
- data/samples/tags_sample.yaml +81 -0
- data/samples/tasks_sample.yaml +261 -0
- data/samples/team_memberships_sample.yaml +41 -0
- data/samples/teams_sample.yaml +51 -0
- data/samples/typeahead_sample.yaml +11 -0
- data/samples/user_task_lists_sample.yaml +21 -0
- data/samples/users_sample.yaml +51 -0
- data/samples/webhooks_sample.yaml +41 -0
- data/samples/workspace_memberships_sample.yaml +31 -0
- data/samples/workspaces_sample.yaml +51 -0
- data/swagger_templates/api_doc.mustache +12 -0
- data/swagger_templates/ruby-config.json +1 -2
- metadata +34 -9
@@ -0,0 +1,31 @@
|
|
1
|
+
workspacememberships:
|
2
|
+
get_workspace_membership: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.workspace_memberships.get_workspace_membership(workspace_membership_gid: 'workspace_membership_gid', param: "value", param: "value", options: {pretty: true})
|
12
|
+
get_workspace_memberships_for_user: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.workspace_memberships.get_workspace_memberships_for_user(user_gid: 'user_gid', param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_workspace_memberships_for_workspace: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.workspace_memberships.get_workspace_memberships_for_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
@@ -0,0 +1,51 @@
|
|
1
|
+
workspaces:
|
2
|
+
add_user_for_workspace: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.workspaces.add_user_for_workspace(workspace_gid: 'workspace_gid', field: "value", field: "value", options: {pretty: true})
|
12
|
+
get_workspace: >-
|
13
|
+
require 'asana'
|
14
|
+
|
15
|
+
|
16
|
+
client = Asana::Client.new do |c|
|
17
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
result = client.workspaces.get_workspace(workspace_gid: 'workspace_gid', param: "value", param: "value", options: {pretty: true})
|
22
|
+
get_workspaces: >-
|
23
|
+
require 'asana'
|
24
|
+
|
25
|
+
|
26
|
+
client = Asana::Client.new do |c|
|
27
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
result = client.workspaces.get_workspaces(param: "value", param: "value", options: {pretty: true})
|
32
|
+
remove_user_for_workspace: >-
|
33
|
+
require 'asana'
|
34
|
+
|
35
|
+
|
36
|
+
client = Asana::Client.new do |c|
|
37
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
result = client.workspaces.remove_user_for_workspace(workspace_gid: 'workspace_gid', field: "value", field: "value", options: {pretty: true})
|
42
|
+
update_workspace: >-
|
43
|
+
require 'asana'
|
44
|
+
|
45
|
+
|
46
|
+
client = Asana::Client.new do |c|
|
47
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
result = client.workspaces.update_workspace(workspace_gid: 'workspace_gid', field: "value", field: "value", options: {pretty: true})
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{{#operations}}{{toLowerCase classname}}: {{#operation}}{{#contents}}
|
2
|
+
{{operationId}}: >-
|
3
|
+
require 'asana'
|
4
|
+
|
5
|
+
|
6
|
+
client = Asana::Client.new do |c|
|
7
|
+
c.authentication :access_token, 'PERSONAL_ACCESS_TOKEN'
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
result = client.{{toLowerCase baseName}}.{{operationId}}({{#pathParams}}{{paramName}}: '{{paramName}}', {{/pathParams}}{{#queryParams}}{{#eq required true}}{{paramName}}: '{{example}}', {{/eq}}{{/queryParams}}{{#eq httpMethod 'GET'}}param: "value", param: "value", {{/eq}}{{#eq httpMethod 'POST' 'PUT'}}field: "value", field: "value", {{/eq}}options: {pretty: true}){{/contents}}{{/operation}}
|
12
|
+
{{/operations}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Txus
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -98,20 +98,20 @@ dependencies:
|
|
98
98
|
name: appraisal
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '2.1'
|
104
|
-
- - "
|
104
|
+
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '2.1'
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
|
-
- - "
|
111
|
+
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '2.1'
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '2.1'
|
117
117
|
description: Official Ruby client for the Asana API
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- LICENSE.txt
|
137
137
|
- README.md
|
138
138
|
- Rakefile
|
139
|
+
- VERSION
|
139
140
|
- asana.gemspec
|
140
141
|
- bin/console
|
141
142
|
- bin/setup
|
@@ -220,7 +221,32 @@ files:
|
|
220
221
|
- lib/templates/index.js
|
221
222
|
- lib/templates/resource.ejs
|
222
223
|
- package.json
|
224
|
+
- samples/attachments_sample.yaml
|
225
|
+
- samples/batch_api_sample.yaml
|
226
|
+
- samples/custom_field_settings_sample.yaml
|
227
|
+
- samples/custom_fields_sample.yaml
|
228
|
+
- samples/events_sample.yaml
|
229
|
+
- samples/jobs_sample.yaml
|
230
|
+
- samples/organization_exports_sample.yaml
|
231
|
+
- samples/portfolio_memberships_sample.yaml
|
232
|
+
- samples/portfolios_sample.yaml
|
233
|
+
- samples/project_memberships_sample.yaml
|
234
|
+
- samples/project_statuses_sample.yaml
|
235
|
+
- samples/projects_sample.yaml
|
236
|
+
- samples/sections_sample.yaml
|
237
|
+
- samples/stories_sample.yaml
|
238
|
+
- samples/tags_sample.yaml
|
239
|
+
- samples/tasks_sample.yaml
|
240
|
+
- samples/team_memberships_sample.yaml
|
241
|
+
- samples/teams_sample.yaml
|
242
|
+
- samples/typeahead_sample.yaml
|
243
|
+
- samples/user_task_lists_sample.yaml
|
244
|
+
- samples/users_sample.yaml
|
245
|
+
- samples/webhooks_sample.yaml
|
246
|
+
- samples/workspace_memberships_sample.yaml
|
247
|
+
- samples/workspaces_sample.yaml
|
223
248
|
- swagger_templates/api.mustache
|
249
|
+
- swagger_templates/api_doc.mustache
|
224
250
|
- swagger_templates/ruby-config.json
|
225
251
|
homepage: https://github.com/asana/ruby-asana
|
226
252
|
licenses:
|
@@ -232,7 +258,7 @@ require_paths:
|
|
232
258
|
- lib
|
233
259
|
required_ruby_version: !ruby/object:Gem::Requirement
|
234
260
|
requirements:
|
235
|
-
- - "
|
261
|
+
- - ">"
|
236
262
|
- !ruby/object:Gem::Version
|
237
263
|
version: '2.0'
|
238
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -241,8 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
241
267
|
- !ruby/object:Gem::Version
|
242
268
|
version: '0'
|
243
269
|
requirements: []
|
244
|
-
|
245
|
-
rubygems_version: 2.7.7
|
270
|
+
rubygems_version: 3.0.8
|
246
271
|
signing_key:
|
247
272
|
specification_version: 4
|
248
273
|
summary: Official Ruby client for the Asana API
|