nexus-invision 1.5.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: d42a3e042b3714f972c3679c1402e94b8477f957733860757d0a3959f72d3240
4
- data.tar.gz: a3efee62a86c8782b8f71fe1b7846d19421a10dd3c93de8418b7db3790cfa05c
3
+ metadata.gz: 4dfe908216cd6c5097306852f51e36e97e2f61ac0e84c6cc6675e3882d3f9ae9
4
+ data.tar.gz: f4eb93a2e69ef9e3db92bf26be396a4af78ab1476e0bb2bd60b0252c0d5bd060
5
5
  SHA512:
6
- metadata.gz: 73452461fbe0ec1095c988a0ebe2d0bac16aa2dee9355edc25e77e57daebcd2cd74637fbb32e1d47115497b1be96ec736ca8b63c14534efd25dd61425859e78b
7
- data.tar.gz: bc01042302951791c7232515e4ee9c38d597beccd957ddbb05b98ea120ae934b47d871bd50a537df5a5e3fc1514fab2acf8e809f054d6ae582242f4df78350af
6
+ metadata.gz: 80e290bf0f4b831dccab40a49cb5bac753227b361ac5cda351f5f1639d046d74c9faca68e84a76b4258370ce559a75022a4d44e80e04ded4ab3bc1a436290f85
7
+ data.tar.gz: 55b1795f58a87b3036336998bef703b26163e434ae4de055b6fcc397a566277e6a1c11160a032d91dc53c0bbf3e196bb1ae762b319cfd47751a17682ff559821
@@ -72,6 +72,24 @@ module Nexus
72
72
  )
73
73
  end
74
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
+
75
93
  sig { params(request: Requests::ListForumTopics).returns(Resources::Page[Resources::Topic]) }
76
94
  def list_forum_topics(request)
77
95
  response = request(
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Nexus
5
5
  module Invision
6
- # Leave this as 1.5.0 in order for CI process to replace with the tagged version.
7
- VERSION = "1.5.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.5.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: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-01-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: