tenable-ruby-sdk 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d7ece5c94106a90e943a28de1d89b61b926611e9986266a97a3bae855ab6f9f
4
- data.tar.gz: 1c142a0070888b29363449c7c6aa17c7fe0d8a080650238645f94b3a38c030bc
3
+ metadata.gz: 86b71cea395f4634ebeee10f3a73541f012ecb41604c19cd4f8441d64a317ece
4
+ data.tar.gz: 1dd6a81da536e32ebfdcbb6b908d0eeb502ac471ae2f9d7ba713f87c4d76b93b
5
5
  SHA512:
6
- metadata.gz: 18c6a1706e9ed1d3f26afc751a1b8b327dae909d31a56f6fc24014f15eaef652998d5a6c13c5913e47284e1981e7167af8caf3070bac5aefa4338231c02ec40d
7
- data.tar.gz: e3134b47b1e1bf14a32f68e9193e2cad657af925502955522270c41d997d48d81513aa956d289064545591980ebe1899e294fec584999650f853042253d3dbab
6
+ metadata.gz: c83641303c4468e92e859611131006158aaa963e55d3c0c08ae687911748477a0c7327f98a2394bca6e40174b1ac37a5074c07545df7be0fb1fbd0e29a9c4f2d
7
+ data.tar.gz: e4caa53b483ceef74f7279384d3a3da94c34350cbd92623c3365c220ff3e24b535f677d785d1b061df0060f622ff5657b223b4ef11f323dee03a2d6c4119b05e
@@ -127,14 +127,13 @@ module Tenable
127
127
  put("/scans/#{scan_id}/schedule", params)
128
128
  end
129
129
 
130
- # Retrieves the scan history.
130
+ # Retrieves the scan history from the scan details endpoint.
131
131
  #
132
132
  # @param scan_id [Integer, String] the scan ID
133
- # @param params [Hash] optional query parameters (e.g., +limit+, +offset+, +sort+)
134
- # @return [Hash] history data including an array of history records
135
- def history(scan_id, **params)
136
- validate_path_segment!(scan_id, name: 'scan_id')
137
- get("/scans/#{scan_id}/history", params)
133
+ # @return [Array<Hash>] array of history records
134
+ def history(scan_id)
135
+ data = details(scan_id)
136
+ data['history'] || []
138
137
  end
139
138
 
140
139
  # Retrieves details for a specific host within a scan.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tenable
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenable-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vudx00