taskworld 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/taskworld/endpoints.rb +2 -0
- data/lib/taskworld/endpoints/checklist.rb +17 -0
- data/lib/taskworld/endpoints/task.rb +16 -0
- data/lib/taskworld/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: d7165fab00e2e63d9ad351738c1a29464cbc88bc
|
4
|
+
data.tar.gz: 6a3d7ee1695d7a5d8d7e50c3dc58e56377a0cebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e39de6ba72a6c5eadeadbb19bd9fbe6acc8292646a05892d58b89b3b602bd3018e4fcdffc93124490433e09de4f91d34d3fa4559837782c406acaab906f723
|
7
|
+
data.tar.gz: 57f330239960af2d9d3fefc788c9a98249aadb3786b1eedffd1abc3394fc5e5f1f3b2d6ba5c99ba80e595177203f5b0da560331d379ef2d127bd27a968120e5f
|
data/lib/taskworld/endpoints.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require_relative 'endpoints/project'
|
2
2
|
require_relative 'endpoints/tasklist'
|
3
3
|
require_relative 'endpoints/task'
|
4
|
+
require_relative 'endpoints/checklist'
|
4
5
|
|
5
6
|
module Taskworld
|
6
7
|
module Endpoints
|
7
8
|
include Project
|
8
9
|
include Tasklist
|
9
10
|
include Task
|
11
|
+
include Checklist
|
10
12
|
end
|
11
13
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Taskworld
|
2
|
+
module Endpoints
|
3
|
+
module Checklist
|
4
|
+
def checklist_add_item(task_id:, title:, **options)
|
5
|
+
post('checklist.add-item', options.merge(task_id: task_id, title: title))
|
6
|
+
end
|
7
|
+
|
8
|
+
def checklist_delete_item(task_id:, checklist_item_id:, **options)
|
9
|
+
post('checklist.delete-item', options.merge(task_id: task_id, checklist_item_id: checklist_item_id))
|
10
|
+
end
|
11
|
+
|
12
|
+
def checklist_update_item(task_id:, checklist_item_id:, **options)
|
13
|
+
post('checklist.update-item', options.merge(task_id: task_id, checklist_item_id: checklist_item_id))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,9 +1,25 @@
|
|
1
1
|
module Taskworld
|
2
2
|
module Endpoints
|
3
3
|
module Task
|
4
|
+
def task_create(space_id:, project_id:, list_id:, title:, **options)
|
5
|
+
post('task.create',
|
6
|
+
options.merge(space_id: space_id,
|
7
|
+
project_id: project_id,
|
8
|
+
list_id: list_id,
|
9
|
+
title: title))
|
10
|
+
end
|
11
|
+
|
4
12
|
def task_get(space_id:, task_id:, **options)
|
5
13
|
post('task.get', options.merge(space_id: space_id, task_id: task_id))
|
6
14
|
end
|
15
|
+
|
16
|
+
def task_update(space_id:, task_id:, **options)
|
17
|
+
post('task.update', options.merge(space_id: space_id, task_id: task_id))
|
18
|
+
end
|
19
|
+
|
20
|
+
def task_delete(space_id:, task_id:, **options)
|
21
|
+
post('task.delete', options.merge(space_id: space_id, task_id: task_id))
|
22
|
+
end
|
7
23
|
end
|
8
24
|
end
|
9
25
|
end
|
data/lib/taskworld/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taskworld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shimada
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/taskworld/config.rb
|
132
132
|
- lib/taskworld/connection.rb
|
133
133
|
- lib/taskworld/endpoints.rb
|
134
|
+
- lib/taskworld/endpoints/checklist.rb
|
134
135
|
- lib/taskworld/endpoints/project.rb
|
135
136
|
- lib/taskworld/endpoints/task.rb
|
136
137
|
- lib/taskworld/endpoints/tasklist.rb
|