asana 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.swagger-codegen-ignore +0 -1
  3. data/.travis.yml +1 -0
  4. data/Gemfile +2 -0
  5. data/VERSION +1 -0
  6. data/asana.gemspec +1 -1
  7. data/examples/Gemfile.lock +10 -10
  8. data/lib/asana/resource_includes/attachment_uploading.rb +14 -7
  9. data/lib/asana/resources/gen/projects_base.rb +1 -1
  10. data/lib/asana/resources/gen/tags_base.rb +14 -0
  11. data/lib/asana/resources/gen/tasks_base.rb +3 -2
  12. data/lib/asana/resources/gen/users_base.rb +1 -1
  13. data/lib/asana/version.rb +1 -1
  14. data/samples/attachments_sample.yaml +41 -0
  15. data/samples/batch_api_sample.yaml +11 -0
  16. data/samples/custom_field_settings_sample.yaml +21 -0
  17. data/samples/custom_fields_sample.yaml +81 -0
  18. data/samples/events_sample.yaml +11 -0
  19. data/samples/jobs_sample.yaml +11 -0
  20. data/samples/organization_exports_sample.yaml +21 -0
  21. data/samples/portfolio_memberships_sample.yaml +31 -0
  22. data/samples/portfolios_sample.yaml +121 -0
  23. data/samples/project_memberships_sample.yaml +21 -0
  24. data/samples/project_statuses_sample.yaml +41 -0
  25. data/samples/projects_sample.yaml +181 -0
  26. data/samples/sections_sample.yaml +71 -0
  27. data/samples/stories_sample.yaml +51 -0
  28. data/samples/tags_sample.yaml +81 -0
  29. data/samples/tasks_sample.yaml +261 -0
  30. data/samples/team_memberships_sample.yaml +41 -0
  31. data/samples/teams_sample.yaml +51 -0
  32. data/samples/typeahead_sample.yaml +11 -0
  33. data/samples/user_task_lists_sample.yaml +21 -0
  34. data/samples/users_sample.yaml +51 -0
  35. data/samples/webhooks_sample.yaml +41 -0
  36. data/samples/workspace_memberships_sample.yaml +31 -0
  37. data/samples/workspaces_sample.yaml +51 -0
  38. data/swagger_templates/api_doc.mustache +12 -0
  39. data/swagger_templates/ruby-config.json +1 -2
  40. 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}}
@@ -2,6 +2,5 @@
2
2
  "packageName" : "asana",
3
3
  "templateDir": "swagger_templates",
4
4
  "hideGenerationTimestamp": true,
5
- "apiTests": false,
6
- "apiDocs": false
5
+ "apiTests": false
7
6
  }
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.2
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: 2020-05-08 00:00:00.000000000 Z
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
- rubyforge_project:
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