nexus-invision 1.4.0 → 1.6.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: bb7f4dd7508c2bf74120eba302eb5ef420fc6addc1311a5a1724a276dfa9800f
4
- data.tar.gz: e310ad149e4dbf3266317bdcd5de47c629f9b72efa3529e158d0cec482766cc7
3
+ metadata.gz: 4dfe908216cd6c5097306852f51e36e97e2f61ac0e84c6cc6675e3882d3f9ae9
4
+ data.tar.gz: f4eb93a2e69ef9e3db92bf26be396a4af78ab1476e0bb2bd60b0252c0d5bd060
5
5
  SHA512:
6
- metadata.gz: 7e6993e879605622f22b5c1d379324314e83dd52d017f07c420e25f6fcec4885abeac2f82b78b6fe6b9309639d10030ae1e64e549b1a3addb8a258bf36bd3a5f
7
- data.tar.gz: c673134f613edd339ceb8e1d721d8a487b9ba305ef71f26ffa9e21f56db492291d2bc08d21013b7c181e15dc61a2585a7103ad5f2f620c48c484f07e9adabfb2
6
+ metadata.gz: 80e290bf0f4b831dccab40a49cb5bac753227b361ac5cda351f5f1639d046d74c9faca68e84a76b4258370ce559a75022a4d44e80e04ded4ab3bc1a436290f85
7
+ data.tar.gz: 55b1795f58a87b3036336998bef703b26163e434ae4de055b6fcc397a566277e6a1c11160a032d91dc53c0bbf3e196bb1ae762b319cfd47751a17682ff559821
@@ -64,6 +64,32 @@ module Nexus
64
64
  end
65
65
  end
66
66
 
67
+ sig { params(post_id: Integer).void }
68
+ def delete_post(post_id)
69
+ request(
70
+ http_method: HTTPMethod::DELETE,
71
+ endpoint: URI("forums/posts/#{post_id}"),
72
+ )
73
+ end
74
+
75
+ sig { params(topic_id: Integer).void }
76
+ def delete_topic(topic_id)
77
+ request(
78
+ http_method: HTTPMethod::DELETE,
79
+ endpoint: URI("forums/topics/#{topic_id}"),
80
+ )
81
+ end
82
+
83
+ sig { params(post_id: Integer).returns(Resources::Post) }
84
+ def get_post(post_id)
85
+ response = request(
86
+ http_method: HTTPMethod::GET,
87
+ endpoint: URI("forums/posts/#{post_id}"),
88
+ )
89
+
90
+ Resources::Post.from_hash(response.body)
91
+ end
92
+
67
93
  sig { params(request: Requests::ListForumTopics).returns(Resources::Page[Resources::Topic]) }
68
94
  def list_forum_topics(request)
69
95
  response = request(
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Nexus
5
5
  module Invision
6
- # Leave this as 1.4.0 in order for CI process to replace with the tagged version.
7
- VERSION = "1.4.0"
6
+ # Leave this as 1.6.0 in order for CI process to replace with the tagged version.
7
+ VERSION = "1.6.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.4.0
4
+ version: 1.6.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: 2023-12-13 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.4.22
111
+ rubygems_version: 3.5.5
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: A client for the Invision Community REST API.