nexus-invision 1.10.2 → 1.11.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
2
  SHA256:
3
- metadata.gz: 6fbcb3cb66d480ad35a8b1098b2304280ec7335904dfcfd23678354a1223138e
4
- data.tar.gz: d79352c041faaf55387bf1a0dd2ba4beb81d6a524bfd88d133ce65faa86d239e
3
+ metadata.gz: c0b337b979579f1c60c832c5c26a537d53677e6f656af941079a083f3916849d
4
+ data.tar.gz: a845ba2c6b4ac3f1513ae9da46098893e64cd04e506c04435ed0ca52d9c0cc8f
5
5
  SHA512:
6
- metadata.gz: af3dcb05992c5e2e16d1b7fa773fea94eef6b55ed7f747b86b1fe31cfb7f20c7a64868e9ec78663e8484931399c1188c4bb8477954eb59003958c43d3f84ae35
7
- data.tar.gz: de36438d81f7b99a97c0c6b78dad40a1851bae56cd8dac25f27ca74e5dcd0bb14732c6404c1d00c710c059e8340490c4da4e895b150f72bc8f15b3e9e85bdb5f
6
+ metadata.gz: c143cb42c3a74a32bafaa18d48eb7290e6509c63b650873d3774942561c0172a2e112c7bb9c07ee7dec48997e2df57f60afc4d2707cd187f2d18ace388c8fa31
7
+ data.tar.gz: 4b96b0d6bc5e1b4a55cccc0609354e9f7ea89f6da2ea0582b201d9009ddc04da78e12ec5b72f2242b415b4ab07293033dfceeba0e7ff56d09a64193427f21da0
@@ -19,7 +19,6 @@ require "nexus/invision/requests/edit_member_primary_group"
19
19
  require "nexus/invision/requests/ensure_member"
20
20
  require "nexus/invision/requests/list_forum_topics"
21
21
  require "nexus/invision/requests/remove_member_from_secondary_group"
22
- require "nexus/invision/requests/unread_count"
23
22
  require "nexus/invision/resources/ensure_member"
24
23
  require "nexus/invision/resources/field"
25
24
  require "nexus/invision/resources/field_group"
@@ -33,7 +32,6 @@ require "nexus/invision/resources/post"
33
32
  require "nexus/invision/resources/question"
34
33
  require "nexus/invision/resources/rank"
35
34
  require "nexus/invision/resources/topic"
36
- require "nexus/invision/resources/unread_count"
37
35
  require "nexus/invision/resources/user"
38
36
  require "nexus/invision/resources/warning"
39
37
 
@@ -189,16 +187,6 @@ module Nexus
189
187
  )
190
188
  end
191
189
 
192
- sig { override.params(request: Requests::UnreadCount).returns(Resources::UnreadCount) }
193
- def unread_count(request)
194
- response = request(
195
- http_method: HTTPMethod::GET,
196
- endpoint: URI("core/unreadcount/#{request.id}"),
197
- )
198
-
199
- Resources::UnreadCount.from_response(response.body)
200
- end
201
-
202
190
  sig { override.params(request: Requests::EditMemberPrimaryGroup).returns(Resources::Member) }
203
191
  def edit_member_primary_group(request)
204
192
  response = request(
@@ -15,7 +15,6 @@ require "nexus/invision/requests/list_forum_topics"
15
15
  require "nexus/invision/requests/remove_member_from_secondary_group"
16
16
  require "nexus/invision/requests/edit_member_primary_group"
17
17
  require "nexus/invision/requests/ensure_member"
18
- require "nexus/invision/requests/unread_count"
19
18
  require "nexus/invision/resources/group"
20
19
  require "nexus/invision/resources/login_link"
21
20
  require "nexus/invision/resources/member"
@@ -25,7 +24,6 @@ require "nexus/invision/resources/topic"
25
24
  require "nexus/invision/resources/user"
26
25
  require "nexus/invision/resources/warning"
27
26
  require "nexus/invision/resources/ensure_member"
28
- require "nexus/invision/resources/unread_count"
29
27
  require "sorbet-runtime"
30
28
  require "uri"
31
29
 
@@ -66,9 +64,6 @@ module Nexus
66
64
  sig { abstract.params(request: Requests::CreateMessage).void }
67
65
  def create_message(request) end
68
66
 
69
- sig { abstract.params(request: Requests::UnreadCount).returns(Resources::UnreadCount) }
70
- def unread_count(request) end
71
-
72
67
  sig { abstract.params(request: Requests::EditMemberPrimaryGroup).returns(Resources::Member) }
73
68
  def edit_member_primary_group(request) end
74
69
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Nexus
5
5
  module Invision
6
- # Leave this as 1.10.2 in order for CI process to replace with the tagged version.
7
- VERSION = "1.10.2"
6
+ # Leave this as 1.11.0 in order for CI process to replace with the tagged version.
7
+ VERSION = "1.11.0"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus-invision
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Robertson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-25 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -38,7 +38,6 @@ files:
38
38
  - lib/nexus/invision/requests/ensure_member.rb
39
39
  - lib/nexus/invision/requests/list_forum_topics.rb
40
40
  - lib/nexus/invision/requests/remove_member_from_secondary_group.rb
41
- - lib/nexus/invision/requests/unread_count.rb
42
41
  - lib/nexus/invision/resources/ensure_member.rb
43
42
  - lib/nexus/invision/resources/field.rb
44
43
  - lib/nexus/invision/resources/field_group.rb
@@ -52,7 +51,6 @@ files:
52
51
  - lib/nexus/invision/resources/question.rb
53
52
  - lib/nexus/invision/resources/rank.rb
54
53
  - lib/nexus/invision/resources/topic.rb
55
- - lib/nexus/invision/resources/unread_count.rb
56
54
  - lib/nexus/invision/resources/user.rb
57
55
  - lib/nexus/invision/resources/warning.rb
58
56
  - lib/nexus/invision/value_object.rb
@@ -121,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
119
  - !ruby/object:Gem::Version
122
120
  version: '0'
123
121
  requirements: []
124
- rubygems_version: 3.5.7
122
+ rubygems_version: 3.5.23
125
123
  signing_key:
126
124
  specification_version: 4
127
125
  summary: A client for the Invision Community REST API.
@@ -1,17 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- require "nexus/invision/value_object"
5
- require "sorbet-runtime"
6
-
7
- module Nexus
8
- module Invision
9
- module Requests
10
- class UnreadCount < T::Struct
11
- include ValueObject
12
-
13
- const :id, Integer
14
- end
15
- end
16
- end
17
- end
@@ -1,28 +0,0 @@
1
- # typed: strict
2
- # frozen_string_literal: true
3
-
4
- require "nexus/invision/value_object"
5
- require "sorbet-runtime"
6
-
7
- module Nexus
8
- module Invision
9
- module Resources
10
- class UnreadCount < T::Struct
11
- include ValueObject
12
-
13
- const :count, Integer
14
-
15
- class << self
16
- extend T::Sig
17
-
18
- sig { params(response: T::Hash[String, T.untyped]).returns(UnreadCount) }
19
- def from_response(response)
20
- UnreadCount.new(
21
- count: response["count"],
22
- )
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end