researchable-freedcamp-api 0.1.7 → 0.1.8

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
  SHA256:
3
- metadata.gz: 11f12801b1a72e9d12e6b00df889dcc75a94b1a4575faa8b50ec2930165ee1e6
4
- data.tar.gz: 0bfd8c06d163eb9e5a4c822ad6dde5d06128ef76ec7b311cdbc0958c716a6331
3
+ metadata.gz: 77bb6dfffc6fce9c8d4a7636182781955b49b11f1507d0d50dc8974eb88ba7fa
4
+ data.tar.gz: 7a0fbb253039d096f2bc282e5363ba53f433132b02dec6f555891cdc9067ab4e
5
5
  SHA512:
6
- metadata.gz: 0c80ecb8f21cc98e516c2df31be6183cfb317f732a6ce711ac286118e092b7b1083795bafdcd203494489e3b08c0828c94386bbfd20fd6b982bfbae95ce3f451
7
- data.tar.gz: 155b549f426c4fce1e0f2d56208361f5488082a6b3d07196b169a8ad09ec7c79aa51c357fae40abd9b41d0e65aedb5db761572ce739477a08231432442ef0e4e
6
+ metadata.gz: 34ff2ec76464026a977b6dedb4cbf5b99b8f411ce5fcd504cb89c4de5d5ddbc1017210dbd93cdbe6a87d7340f897c9d812031f8026fd2fcd2ceb181c990363ce
7
+ data.tar.gz: '09bcc82ef7455a191b7cc20dc8ee5fba4c0acac1285e4ff918606466de3dad4595d167610ca52588d893043d53dd64e2d71a2e17611952c0a4ed1eefd6f1e25c'
@@ -0,0 +1,28 @@
1
+ # typed: false
2
+ module Researchable
3
+ module FreedcampApi
4
+ class ListDiscussions < Endpoint
5
+ integer :discussion_id, default: nil
6
+ integer :project_id, default: nil
7
+
8
+ def execute
9
+ list_discussions(discussion_id)
10
+ end
11
+
12
+ # sig do
13
+ # params(
14
+ # task_id: T.nilable(Integer)
15
+ # ).returns(
16
+ # T::Array[Researchable::FreedcampApi::Structs::Task]
17
+ # )
18
+ # end
19
+ def list_discussions(discussion_id)
20
+ discussion_query = discussion_id ? "/#{discussion_id}" : '/'
21
+ project_query = project_id ? "?project_id=#{project_id}" : ''
22
+ url = "/discussions#{discussion_query}
23
+ #{project_query}"
24
+ session.get(url)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Researchable
5
5
  module FreedcampApi
6
- VERSION = "0.1.7"
6
+ VERSION = "0.1.8"
7
7
  end
8
8
  end
@@ -9,6 +9,7 @@ require_relative 'freedcamp_api/sessions'
9
9
  require_relative 'freedcamp_api/endpoint'
10
10
 
11
11
  require_relative 'freedcamp_api/list_projects'
12
+ require_relative 'freedcamp_api/list_discussions'
12
13
 
13
14
 
14
15
  require_relative 'freedcamp_api/list_tasks'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: researchable-freedcamp-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Blaauw
@@ -131,6 +131,7 @@ files:
131
131
  - lib/researchable/freedcamp_api/create_task.rb
132
132
  - lib/researchable/freedcamp_api/endpoint.rb
133
133
  - lib/researchable/freedcamp_api/get_user.rb
134
+ - lib/researchable/freedcamp_api/list_discussions.rb
134
135
  - lib/researchable/freedcamp_api/list_lists.rb
135
136
  - lib/researchable/freedcamp_api/list_milestones.rb
136
137
  - lib/researchable/freedcamp_api/list_projects.rb