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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac05d025ab65ef8dd9fb2278790f0dab205be681
4
- data.tar.gz: 67c8559871fa796d7487d3a79277d2757d950dc3
3
+ metadata.gz: d7165fab00e2e63d9ad351738c1a29464cbc88bc
4
+ data.tar.gz: 6a3d7ee1695d7a5d8d7e50c3dc58e56377a0cebb
5
5
  SHA512:
6
- metadata.gz: 56796b87c006557ec287bada3822c8e61ca3164253e24c0c64112b9bb8bbd0ac02279dc6a001b51efd53be9fe44db7afcf77d66d669a3c2721bfd5e9d40bf1e2
7
- data.tar.gz: ccd72a1a78758f3412a62e1f19a3f314be896731aa73fd3f6ca14ee94fc94e6c1a0090934c27ad85b15388aecd67ff7c74c5b06a30db24bf13d0cecff6064a7f
6
+ metadata.gz: 07e39de6ba72a6c5eadeadbb19bd9fbe6acc8292646a05892d58b89b3b602bd3018e4fcdffc93124490433e09de4f91d34d3fa4559837782c406acaab906f723
7
+ data.tar.gz: 57f330239960af2d9d3fefc788c9a98249aadb3786b1eedffd1abc3394fc5e5f1f3b2d6ba5c99ba80e595177203f5b0da560331d379ef2d127bd27a968120e5f
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Taskworld
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
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.3
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-14 00:00:00.000000000 Z
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