pwn 0.5.288 → 0.5.290

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: 508456a1574ce4415f503cb7b90f5a5c34678fa6398d9e09ce312a46444f5afe
4
- data.tar.gz: 736271d79f7dd72c16c516174e7c8777ecaba0727f85cc83df7fc2292d4f544a
3
+ metadata.gz: 3ad96a76b202e482f185649e77fdf3e4a066e620aff74251bb86105aeeec70ee
4
+ data.tar.gz: 6cbdc13a5a9f80906773b3c89924c6ce011b55d41ce9fc4d491c0d2e91d1feba
5
5
  SHA512:
6
- metadata.gz: fd2115ef1abc7ec0351b0f780e8aa84e3402e277e4347a5c028fb498e803ab9ce12d15057cd16d87ee5dbedf37b7acd191b32a7b72bdc43658adddc197d409f1
7
- data.tar.gz: d72b966e23bca8f3c57e2e08b680e4f8b166c9ba5c081991dda2489150de0df8d853ea586239677b1e25f1974393631c2c9a21b4e7e2ba4c6e98d328504c8471
6
+ metadata.gz: d1da4d6cdbc289083d51d50ffbaa4abdc07dd3ea13edf4a3b155c31d0e4681392cd58fd06fa3b56acfcbc5b87b33aeb24f642cba83ce90f81228c26d11de26ed
7
+ data.tar.gz: 36dc00fe3cfe9635f9dd232005d1e00b53f2900553427066091190130f83ed2a4bf4eac0083d5164198bb865ab288e7eeed5f10cf7c2339b97cd29a07f604f74
data/README.md CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
37
37
  $ ./install.sh
38
38
  $ ./install.sh ruby-gem
39
39
  $ pwn
40
- pwn[v0.5.288]:001 >>> PWN.help
40
+ pwn[v0.5.290]:001 >>> PWN.help
41
41
  ```
42
42
 
43
43
  [![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.288]:001 >>> PWN.help
55
+ pwn[v0.5.290]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
  If you're using a multi-user install of RVM do:
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
62
62
  $ rvmsudo gem uninstall --all --executables pwn
63
63
  $ rvmsudo gem install --verbose pwn
64
64
  $ pwn
65
- pwn[v0.5.288]:001 >>> PWN.help
65
+ pwn[v0.5.290]:001 >>> PWN.help
66
66
  ```
67
67
 
68
68
  PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
@@ -103,8 +103,7 @@ module PWN
103
103
  rest_call(
104
104
  base_api_uri: base_api_uri,
105
105
  token: token,
106
- rest_call: 'field',
107
- params: params
106
+ rest_call: 'field'
108
107
  )
109
108
  rescue StandardError => e
110
109
  raise e
@@ -171,6 +170,7 @@ module PWN
171
170
  description = opts[:description]
172
171
 
173
172
  additional_fields = opts[:additional_fields] ||= { fields: {} }
173
+ raise 'ERROR: additional_fields Hash must contain a :fields key.' unless additional_fields.is_a?(Hash) && additional_fields.key?(:fields)
174
174
 
175
175
  all_fields = get_all_fields(base_api_uri: base_api_uri, token: token)
176
176
  epic_name_field_key = all_fields.find { |field| field[:name] == 'Epic Name' }[:id]
@@ -198,7 +198,6 @@ module PWN
198
198
  base_api_uri: base_api_uri,
199
199
  token: token,
200
200
  rest_call: "issue/#{issue}",
201
- params: params,
202
201
  http_body: http_body
203
202
  )
204
203
  rescue StandardError => e
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.288'
4
+ VERSION = '0.5.290'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.288
4
+ version: 0.5.290
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.