pwn 0.5.458 → 0.5.459
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 +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/jira_server.rb +15 -1
- data/lib/pwn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 821ea05737825e8c254766da6476f90b5315c3b292d039cf621cfef01a7067f6
|
4
|
+
data.tar.gz: 9451d08fb028c514d47604138ca5d6cd73142b9d4c8c111caacb8dfa2e5d879d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05506e6cb58d8bf3281f005c9faaf1f81229bddda894cbe49f9a558d1b61a6a2cc7c3ce8dee472c76ef9e80eeb538ad44db533ebfb8ea5ffd38e99179d4a0217
|
7
|
+
data.tar.gz: 47ea7554ce6277eeb6ce8fb14448f4665849af9150eff0bc45e08e49d331f08f7a8ee09fad43db89556dab2b9fa114d00bf5e1425a13534f21170707bf26b942
|
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.
|
40
|
+
pwn[v0.5.459]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](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.
|
55
|
+
pwn[v0.5.459]: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.
|
65
|
+
pwn[v0.5.459]: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:
|
@@ -218,6 +218,7 @@ module PWN
|
|
218
218
|
epic_name_field_key = all_fields.find { |field| field[:name] == 'Epic Name' }[:id]
|
219
219
|
|
220
220
|
epic_name = opts[:epic_name]
|
221
|
+
raise 'ERROR: epic_name cannot be nil when issue_type is :epic.' if issue_type == :epic && epic_name.nil?
|
221
222
|
|
222
223
|
http_body = {
|
223
224
|
fields: {
|
@@ -267,7 +268,20 @@ module PWN
|
|
267
268
|
)
|
268
269
|
end
|
269
270
|
|
270
|
-
|
271
|
+
created_issue = nil
|
272
|
+
get_issue_attempts = 0
|
273
|
+
max_get_issue_attempts = 7
|
274
|
+
begin
|
275
|
+
created_issue = get_issue(issue: issue)
|
276
|
+
rescue RuntimeError
|
277
|
+
raise 'ERROR: Max attempts reached for retrieving created issue.' if get_issue_attempts > max_get_issue_attempts
|
278
|
+
|
279
|
+
get_issue_attempts += 1
|
280
|
+
sleep 1
|
281
|
+
retry
|
282
|
+
end
|
283
|
+
|
284
|
+
created_issue
|
271
285
|
rescue StandardError => e
|
272
286
|
raise e
|
273
287
|
end
|
data/lib/pwn/version.rb
CHANGED