clubhouse_ruby 0.3.0 → 0.8.0

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
- SHA1:
3
- metadata.gz: fd8a31fc213799a4c32148450916cff148edac46
4
- data.tar.gz: 2371dce1a6e09504a6880b6fb41f1f87825c28fc
2
+ SHA256:
3
+ metadata.gz: 13cb0f9caf06ac43539370c7dfdd923f529957f5103fc302703bb62539f34cce
4
+ data.tar.gz: 98ae28e3b8901eb8e04c097f0d4594a1a9f76311cd15f5d0c068e768bed659da
5
5
  SHA512:
6
- metadata.gz: dfbd67e65e330094531a4c7652e42e774557126b7bf486de3e37d285d4d75d6147c88ea725736030dd7cc8c73a2caa4ee23cd036022a3fcd6e3453ea426acd6e
7
- data.tar.gz: 6666f1370c5b9491a172cf60fd8760dbd53658e7f4613b7fd2b6309a7b6f5809235a489c94f10161342f0f40f204d9f5d202b2ce596986aa566701463f5d586c
6
+ metadata.gz: c2c5adc1c0e876d8b06c1bbc6e4c0cb5eb04fe237a4eebc61e30a41406f5ff65fede491eb378e44284197c8e23c86d7165d5e31492920ef733b35456f9b536e1
7
+ data.tar.gz: 41246481a44cdd266054da35c31bd455a8746ef9e8b1aa819843ef2ce5e576e18eab42e9c15bd3420b38d77cf617c83deaa0f1de04268f959939b6bc2308349a
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ClubhouseRuby
2
2
 
3
3
  ClubhouseRuby is a lightweight Ruby wrapper of the
4
- [Clubhouse REST API](https://clubhouse.io/api/rest/v2/).
4
+ [Clubhouse REST API](https://clubhouse.io/api/rest/v3/).
5
5
 
6
6
  [Clubhouse](https://clubhouse.io) is a radical project management tool
7
7
  particularly well suited to software development. If you're not familiar with
@@ -41,10 +41,10 @@ operates as an effective turing machine when lubricated with oil.
41
41
  ## Usage
42
42
 
43
43
  This gem is a lightweight API wrapper. That means you'll need to refer to the
44
- [API documentation](https://clubhouse.io/api/rest/v2/) to figure out what resources
44
+ [API documentation](https://clubhouse.io/api/rest/v3/) to figure out what resources
45
45
  and actions exist.
46
46
 
47
- On the plus side, once you know what you want to do, using this gem should be
47
+ On the plus side, once you know what you want to do, using this gem should be
48
48
  simple.
49
49
 
50
50
  Instantiate an object to interface with the API:
@@ -61,7 +61,7 @@ clubhouse = ClubhouseRuby::Clubhouse.new(<YOUR CLUBHOUSE API TOKEN>, response_fo
61
61
 
62
62
  Then, call methods on the object matching the resource(s) and action you are
63
63
  interested in. For example, if you want to list all available epics, you need to
64
- access the endpoint at https://api.clubhouse.io/api/v1/epics. The
64
+ access the endpoint at https://api.clubhouse.io/api/v1/epics. The
65
65
  clubhouse_ruby gem uses an explicit action:
66
66
 
67
67
  ```ruby
@@ -147,6 +147,28 @@ clubhouse.projects(<project_id>).stories.list
147
147
  # }
148
148
  ```
149
149
 
150
+ You can search stories, using standard Clubhouse [search operators](https://help.clubhouse.io/hc/en-us/articles/360000046646-Search-Operators):
151
+
152
+ ```ruby
153
+ clubhouse.search_stories(page_size: 25, query: 'state:500000016')
154
+ # => {
155
+ # code: "200",
156
+ # status: "OK",
157
+ # content: {
158
+ # "next" => "/api/v3/search/stories?query=state%3A500000016&page_size=25&next=a8acc6577548df7a213272f7f9f617bcb1f8a831~24",
159
+ # "data" => [
160
+ # {
161
+ # "entity_type" => "story",
162
+ # "archived" => false,
163
+ # "created_at" => "...",
164
+ # "updated_at" => "...",
165
+ # ...
166
+ # }, ...
167
+ # ]
168
+ # }
169
+ # }
170
+ ```
171
+
150
172
  You can build a path in steps rather than all at once, and execution is deferred
151
173
  until the action call:
152
174
 
@@ -234,9 +256,13 @@ clubhouse.projects.stories.list
234
256
 
235
257
  ## Version
236
258
 
237
- The currenet version of the clubhouse_ruby gem supports the current version of
238
- the API, version 2. If you want something that definitely works with v1, use
239
- version 0.2.0 of clubhouse_ruby.
259
+ The current version of the clubhouse_ruby gem supports the current version of
260
+ the API, version 3.
261
+
262
+ If you want something that definitely works with:
263
+
264
+ * v1, use version 0.2.0 of clubhouse_ruby
265
+ * v2, use version 0.3.0 of clubhouse_ruby
240
266
 
241
267
  ## Development
242
268
 
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.12"
22
- spec.add_development_dependency "rake", "~> 10.0"
21
+ spec.add_development_dependency "bundler", "~> 2.1"
22
+ spec.add_development_dependency "rake", "~> 13.0"
23
23
  spec.add_development_dependency "rspec", "~> 3.0"
24
24
  spec.add_development_dependency "dotenv", "~> 2.1"
25
- spec.add_development_dependency "webmock", "~> 2.1"
26
- spec.add_development_dependency "vcr", "~> 3.0"
25
+ spec.add_development_dependency "webmock", "~> 3.7"
26
+ spec.add_development_dependency "vcr", "~> 6.0"
27
27
  end
@@ -2,7 +2,7 @@ require 'json'
2
2
  require 'csv'
3
3
 
4
4
  module ClubhouseRuby
5
- API_URL = "https://api.clubhouse.io/api/v2/".freeze
5
+ API_URL = "https://api.clubhouse.io/api/v3/".freeze
6
6
 
7
7
  # Response formats the clubhouse api knows about
8
8
  FORMATS = {
@@ -28,8 +28,10 @@ module ClubhouseRuby
28
28
  # These are the resource for the clubhouse api and can form part of the path
29
29
  RESOURCES = [
30
30
  :categories,
31
+ :entity_templates,
31
32
  :epics,
32
33
  :files,
34
+ :iterations,
33
35
  :labels,
34
36
  :linked_files,
35
37
  :members,
@@ -39,7 +41,9 @@ module ClubhouseRuby
39
41
  :stories,
40
42
  :story_links,
41
43
  :teams,
42
- :workflows
44
+ :workflows,
45
+ :tasks,
46
+ :comments
43
47
  ].freeze
44
48
 
45
49
  # These are the annoying edge cases in the clubhouse api that are don't fit
@@ -51,6 +55,10 @@ module ClubhouseRuby
51
55
  bulk_update: {
52
56
  path: :bulk,
53
57
  action: :Put
58
+ },
59
+ search_stories: {
60
+ path: 'search/stories',
61
+ action: :Get
54
62
  }
55
63
  }.freeze
56
64
  end
@@ -16,7 +16,7 @@ module ClubhouseRuby
16
16
  #
17
17
  # This example will execute a call to:
18
18
  #
19
- # `https://api.clubhouse.io/api/v2/stories/{story-id}/comments/{comment-id}`
19
+ # `https://api.clubhouse.io/api/v3/stories/{story-id}/comments/{comment-id}`
20
20
  #
21
21
  # with arguments:
22
22
  #
@@ -1,3 +1,3 @@
1
1
  module ClubhouseRuby
2
- VERSION = "0.3.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clubhouse_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Castiglione
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-28 00:00:00.000000000 Z
11
+ date: 2020-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.12'
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.12'
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.1'
75
+ version: '3.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.1'
82
+ version: '3.7'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: vcr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.0'
89
+ version: '6.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.0'
96
+ version: '6.0'
97
97
  description:
98
98
  email:
99
99
  - philipcastiglione@gmail.com
@@ -135,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubyforge_project:
139
- rubygems_version: 2.6.8
138
+ rubygems_version: 3.0.3
140
139
  signing_key:
141
140
  specification_version: 4
142
141
  summary: A lightweight Ruby wrapper for the Clubhouse REST API.