researchable-freedcamp-api 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.gitignore +1 -0
  4. data/Gemfile +7 -0
  5. data/Gemfile.lock +69 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +39 -0
  8. data/Rakefile +12 -0
  9. data/bin/console +15 -0
  10. data/bin/setup +8 -0
  11. data/lib/researchable/freedcamp_api/create_task.rb +22 -0
  12. data/lib/researchable/freedcamp_api/endpoint.rb +34 -0
  13. data/lib/researchable/freedcamp_api/list_milestones.rb +1 -0
  14. data/lib/researchable/freedcamp_api/list_projects.rb +1 -0
  15. data/lib/researchable/freedcamp_api/list_tasks.rb +36 -0
  16. data/lib/researchable/freedcamp_api/sessions/session.rb +28 -0
  17. data/lib/researchable/freedcamp_api/sessions/signed_session.rb +128 -0
  18. data/lib/researchable/freedcamp_api/sessions.rb +17 -0
  19. data/lib/researchable/freedcamp_api/structs/signature.rb +11 -0
  20. data/lib/researchable/freedcamp_api/structs/task.rb +48 -0
  21. data/lib/researchable/freedcamp_api/structs.rb +8 -0
  22. data/lib/researchable/freedcamp_api/update_task.rb +27 -0
  23. data/lib/researchable/freedcamp_api/version.rb +8 -0
  24. data/lib/researchable/freedcamp_api.rb +21 -0
  25. data/lib/researchable-freedcamp-api.rb +6 -0
  26. data/output/62d1c67bf1eebc3456f9cc8879519700b2a0fc45 +1 -0
  27. data/researchable_freedcamp_api.gemspec +44 -0
  28. data/sorbet/config +3 -0
  29. data/sorbet/rbi/gems/active_interaction.rbi +304 -0
  30. data/sorbet/rbi/gems/activemodel.rbi +342 -0
  31. data/sorbet/rbi/gems/activesupport.rbi +1023 -0
  32. data/sorbet/rbi/gems/concurrent-ruby.rbi +1662 -0
  33. data/sorbet/rbi/gems/httparty.rbi +446 -0
  34. data/sorbet/rbi/gems/i18n.rbi +133 -0
  35. data/sorbet/rbi/gems/mime-types-data.rbi +17 -0
  36. data/sorbet/rbi/gems/mime-types.rbi +225 -0
  37. data/sorbet/rbi/gems/multi_xml.rbi +35 -0
  38. data/sorbet/rbi/gems/researchable-freedcamp-api.rbi +25 -0
  39. data/sorbet/rbi/gems/rspec-core.rbi +1915 -0
  40. data/sorbet/rbi/gems/rspec-expectations.rbi +1151 -0
  41. data/sorbet/rbi/gems/rspec-mocks.rbi +1110 -0
  42. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  43. data/sorbet/rbi/gems/rspec.rbi +15 -0
  44. data/sorbet/rbi/gems/tzinfo.rbi +586 -0
  45. data/sorbet/rbi/hidden-definitions/errors.txt +4251 -0
  46. data/sorbet/rbi/hidden-definitions/hidden.rbi +8306 -0
  47. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +715 -0
  48. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi +37 -0
  49. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1850 -0
  50. data/sorbet/rbi/sorbet-typed/lib/httparty/all/httparty.rbi +566 -0
  51. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  52. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
  53. data/sorbet/rbi/todo.rbi +7 -0
  54. data/test.rb +41 -0
  55. metadata +198 -0
data/test.rb ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+ # typed: false
3
+ # frozen_string_literal: true
4
+
5
+ require 'bundler/setup'
6
+ require 'researchable-freedcamp-api'
7
+
8
+ # You can add fixtures and/or initialization code here to make experimenting
9
+ # with your gem easier. You can also use a different console, if you like.
10
+
11
+ # (If you use this, don't forget to add pry to your Gemfile!)
12
+ # require "pry"
13
+ # Pry.start
14
+ #
15
+ # Researchable::FreedcampApi::ListTasks.run!
16
+ puts Researchable::FreedcampApi::ListTasks.run!(task_id: 44_509_132).to_json
17
+
18
+ progress = 2
19
+ task = Researchable::FreedcampApi::Structs::Task.new(
20
+ project_id: '3033558',
21
+ title: "hoi #{progress}",
22
+ status: progress,
23
+ status_title: 'Ready for review'
24
+ )
25
+ puts Researchable::FreedcampApi::UpdateTask.run!(task_id: 44_509_132, task: task)
26
+
27
+ comment = Researchable::FreedcampApi::Structs::Comment.new(
28
+ item_id: '44509132',
29
+ app_id: "2" ,
30
+ description: "this is a test"
31
+ )
32
+ puts Researchable::FreedcampApi::CreateComment.run!(comment: comment)
33
+
34
+ # task = Researchable::FreedcampApi::Structs::Task.new(
35
+ # project_id: '3033558',
36
+ # title: 'hoi',
37
+ # task_group_id: '4999322',
38
+ # due_date: '2022-01-31',
39
+ # assigned_ids: ['1018169']
40
+ # )
41
+ # Researchable::FreedcampApi::CreateTask.run!(task: task)
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: researchable-freedcamp-api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Frank Blaauw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-01-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active_interaction
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0.14'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sorbet-runtime
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">"
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sorbet
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: byebug
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Wrapper around the freedcamp api
112
+ email:
113
+ - f.j.blaauw@researchable.nl
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".bundle/config"
119
+ - ".gitignore"
120
+ - Gemfile
121
+ - Gemfile.lock
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - lib/researchable-freedcamp-api.rb
128
+ - lib/researchable/freedcamp_api.rb
129
+ - lib/researchable/freedcamp_api/create_task.rb
130
+ - lib/researchable/freedcamp_api/endpoint.rb
131
+ - lib/researchable/freedcamp_api/list_milestones.rb
132
+ - lib/researchable/freedcamp_api/list_projects.rb
133
+ - lib/researchable/freedcamp_api/list_tasks.rb
134
+ - lib/researchable/freedcamp_api/sessions.rb
135
+ - lib/researchable/freedcamp_api/sessions/session.rb
136
+ - lib/researchable/freedcamp_api/sessions/signed_session.rb
137
+ - lib/researchable/freedcamp_api/structs.rb
138
+ - lib/researchable/freedcamp_api/structs/signature.rb
139
+ - lib/researchable/freedcamp_api/structs/task.rb
140
+ - lib/researchable/freedcamp_api/update_task.rb
141
+ - lib/researchable/freedcamp_api/version.rb
142
+ - output/62d1c67bf1eebc3456f9cc8879519700b2a0fc45
143
+ - researchable_freedcamp_api.gemspec
144
+ - sorbet/config
145
+ - sorbet/rbi/gems/active_interaction.rbi
146
+ - sorbet/rbi/gems/activemodel.rbi
147
+ - sorbet/rbi/gems/activesupport.rbi
148
+ - sorbet/rbi/gems/concurrent-ruby.rbi
149
+ - sorbet/rbi/gems/httparty.rbi
150
+ - sorbet/rbi/gems/i18n.rbi
151
+ - sorbet/rbi/gems/mime-types-data.rbi
152
+ - sorbet/rbi/gems/mime-types.rbi
153
+ - sorbet/rbi/gems/multi_xml.rbi
154
+ - sorbet/rbi/gems/researchable-freedcamp-api.rbi
155
+ - sorbet/rbi/gems/rspec-core.rbi
156
+ - sorbet/rbi/gems/rspec-expectations.rbi
157
+ - sorbet/rbi/gems/rspec-mocks.rbi
158
+ - sorbet/rbi/gems/rspec-support.rbi
159
+ - sorbet/rbi/gems/rspec.rbi
160
+ - sorbet/rbi/gems/tzinfo.rbi
161
+ - sorbet/rbi/hidden-definitions/errors.txt
162
+ - sorbet/rbi/hidden-definitions/hidden.rbi
163
+ - sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi
164
+ - sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi
165
+ - sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi
166
+ - sorbet/rbi/sorbet-typed/lib/httparty/all/httparty.rbi
167
+ - sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi
168
+ - sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi
169
+ - sorbet/rbi/todo.rbi
170
+ - test.rb
171
+ homepage: https://researchable.nl
172
+ licenses:
173
+ - MIT
174
+ metadata:
175
+ allowed_push_host: https://rubygems.org
176
+ homepage_uri: https://researchable.nl
177
+ source_code_uri: https://gitlab.com/researchable/open-source/api-gems/freedcamp-api-gem
178
+ changelog_uri: https://gitlab.com/researchable/open-source/api-gems/freedcamp-api-gem
179
+ post_install_message:
180
+ rdoc_options: []
181
+ require_paths:
182
+ - lib
183
+ required_ruby_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 2.4.0
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ requirements: []
194
+ rubygems_version: 3.2.15
195
+ signing_key:
196
+ specification_version: 4
197
+ summary: Freedcamp API gem
198
+ test_files: []