pwn 0.5.299 → 0.5.300
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/CHANGELOG_BETWEEN_TAGS.txt +180 -190
- data/README.md +3 -3
- data/lib/pwn/plugins/jira_server.rb +12 -11
- data/lib/pwn/version.rb +1 -1
- data/lib/pwn.rb +1 -0
- 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: 29a28418243b69187a691144f02e98af2035b5677a97d695e6d754647e690bfa
|
4
|
+
data.tar.gz: 2b051a9224368f45365850f9ca63db4a14877551fd5e1311462bc6a243e4f2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8639069688fd8690d32087827d7e07267a773fa1e3fa52d5ed31b606261fa566e19b78a32e6a080ce3f26da49e59acac4e6046451177091e11dbc0c23f3f4caa
|
7
|
+
data.tar.gz: f428cb4e47d8a4c6335ac4cebca99b0fb9206a12b62e60c11ac5de5b3ff62010356ac649f7e50b20d73e7e05efd9e6aea14513651a9d3ac0030230cef06cdf2d
|
data/CHANGELOG_BETWEEN_TAGS.txt
CHANGED
@@ -1,190 +1,180 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
f7de536 Merge pull request #578 from ninp0/master
|
182
|
-
d412c52 Gemfile - Bump alt comms to latest
|
183
|
-
c6c15f0 Merge pull request #577 from ninp0/master
|
184
|
-
892937f Gemfile - Bump alt comms to latest
|
185
|
-
4205355 Merge pull request #576 from ninp0/master
|
186
|
-
0b9db19 Gemfile - Bump alt comms to latest
|
187
|
-
fdf4546 Merge pull request #575 from ninp0/master
|
188
|
-
66268ac Gemfile - Bump alt comms to latest
|
189
|
-
43fa953 Merge pull request #574 from ninp0/master
|
190
|
-
3575846 Merge pull request #573 from ninp0/master
|
1
|
+
22b6ac6 Merge pull request #734 from ninp0/master
|
2
|
+
2dd1517 PWN::Plugins::JiraServer module - attachment #bugfixes
|
3
|
+
a60f75b Merge pull request #733 from ninp0/master
|
4
|
+
303df8c PWN::Plugins::JiraServer module - implement attachment support in #update_issue method, create #get_user method, and update usage in #help method
|
5
|
+
d50e2a0 Merge pull request #732 from ninp0/master
|
6
|
+
4f43542 PWN::Plugins::JiraServer module - #bugfixes in #rest_call method
|
7
|
+
96083c3 Merge pull request #731 from ninp0/master
|
8
|
+
9671992 PWN::Plugins::JiraServer module - implement attachment support in #create_issue method and update usage in #help method
|
9
|
+
fc201e5 Merge pull request #730 from ninp0/master
|
10
|
+
eb14b6c PWN::Plugins::JiraServer module - add #update_issue && #delete_issue methods
|
11
|
+
ecb8846 Merge pull request #729 from ninp0/master
|
12
|
+
11e0418 PWN::Plugins::JiraServer module - #bugfix in #create_issue method
|
13
|
+
3c569a2 Merge pull request #728 from ninp0/master
|
14
|
+
d552c7c PWN::Plugins::JiraServer module - #bugfix in #rest_call method
|
15
|
+
f670236 Merge pull request #727 from ninp0/master
|
16
|
+
d2d9e8f PWN::Plugins::JiraServer module - #bugfix in #create_issue method
|
17
|
+
74770c8 Merge pull request #726 from ninp0/master
|
18
|
+
b56164e PWN::Plugins::JiraServer module - #bugfixes in #create_issue method
|
19
|
+
4870083 Merge pull request #725 from ninp0/master
|
20
|
+
4186563 PWN::Plugins::JiraServer module - ensure `additional_fields` parameter contains the `:fields` key for streamlined merging in #create_issue method
|
21
|
+
0be22c2 Merge pull request #724 from ninp0/master
|
22
|
+
94239bb PWN::Plugins::JiraServer module - #bugfix in #get_all_fields && #create_issue methods
|
23
|
+
6f2adcf Merge pull request #723 from ninp0/master
|
24
|
+
27b924d PWN::Plugins::JiraServer module - implement #create_issue && #get_all_fields methods
|
25
|
+
c361ec5 Merge pull request #722 from ninp0/master
|
26
|
+
f82f9ba build_pwn_gem.sh - display funding information at the end of script
|
27
|
+
12f4679 Merge pull request #721 from ninp0/master
|
28
|
+
4efd4f0 PWN::Plugins::JiraServer module - update example `issue` parameter examples in #get_issue method
|
29
|
+
8238c1c Merge pull request #720 from ninp0/master
|
30
|
+
bf8eead pwn.gemspec - Add sponsor link to support `bundle fund` command #rubocop_fix
|
31
|
+
449792c Merge pull request #719 from ninp0/master
|
32
|
+
db5dd43 PWN::Plugins::JiraServer module - update example `base_api_uri` parameter examples in #help method
|
33
|
+
e7c2c20 Merge pull request #718 from ninp0/master
|
34
|
+
fab3c3d pwn.gemspec - Add sponsor link to support `bundle fund` command
|
35
|
+
e3742fa Merge pull request #717 from ninp0/master
|
36
|
+
5ab2f40 PWN::Plugins::JiraServer module - add optional parameter `params` in #manual_call and #get_issue methods
|
37
|
+
eb7527b Merge pull request #716 from ninp0/master
|
38
|
+
19e80a0 PWN::Plugins::JiraServer module - more descriptive error handling in rescue `RestClient::ExceptionWithResponse`
|
39
|
+
0a7167a Merge pull request #715 from ninp0/master
|
40
|
+
6a1cdbf #rubocop fixes
|
41
|
+
97deda5 PWN::Plugins::JiraServer module - bugfix in rescue within #rest_call method
|
42
|
+
13c16a8 Merge pull request #714 from ninp0/master
|
43
|
+
b3e8407 PWN::Plugins::VIN module - initial commit
|
44
|
+
3543abe Merge pull request #713 from ninp0/master
|
45
|
+
8e81734 PWN::Plugins::BlackDuckBinaryAnalysis module - update #help method
|
46
|
+
e53e08f Merge pull request #712 from ninp0/master
|
47
|
+
4516786 PWN::Plugins::BlackDuckBinaryAnalysis module && pwn_bdba_scan Driver - Support SPDX report type withing #generate_product_report method
|
48
|
+
7a4afa9 Merge pull request #711 from ninp0/master
|
49
|
+
8c6c270 Gemfile - bump to latest gem versions
|
50
|
+
d11c5a1 Merge pull request #710 from ninp0/master
|
51
|
+
af14e9f .ruby-version - Bump to ruby-3.4.4
|
52
|
+
f864d02 Merge pull request #709 from ninp0/master
|
53
|
+
aecb567 All modules within `PWN::SAST` namespace - update NIST 800-53 URI values for `nist_800_53_uri` key in #security_references method #bugfixes
|
54
|
+
62414c8 Merge pull request #708 from ninp0/master
|
55
|
+
f75da21 All modules within `PWN::SAST` namespace - update NIST 800-53 URI values for `nist_800_53_uri` key in #security_references method
|
56
|
+
53fde1c Merge pull request #707 from ninp0/master
|
57
|
+
a52bae2 Packer provisioners - #bugfixes in aliases.rb && radare2.sh
|
58
|
+
c8e8a39 Merge pull request #706 from ninp0/master
|
59
|
+
5317fb2 PWN::Banner::Radare2AI module - initial commmit
|
60
|
+
9dee091 Packer aliases.sh provisioner - slight tweak to r2_prompt
|
61
|
+
a25de35 Merge pull request #705 from ninp0/master
|
62
|
+
cb42884 Packer aliases.sh provisioner - cleaner r2_prompt
|
63
|
+
487080c Merge pull request #704 from ninp0/master
|
64
|
+
cf54811 Packer provisioner Radare2 - #bugfix in path to r2-pwn-layout
|
65
|
+
994de46 Rubocop fixes
|
66
|
+
3c97de9 Packer provisioner Radare2 - install decompiler and AI plugins && add r2 alias to aliases.sh
|
67
|
+
c30c6b1 Merge pull request #703 from ninp0/master
|
68
|
+
f9322b4 Gemfile - bump gem versions to latest
|
69
|
+
dacf572 install.sh - add Packer provisioner `bashrc.sh` to `ruby-gem` `pwn_deploy_type`
|
70
|
+
f64826a Merge pull request #702 from ninp0/master
|
71
|
+
1d25a30 pwn_bdba_scan Driver - #bugfix in `--queue-timeout`, `--scan-attempts`, and `--sleep-between-scan-attempts`
|
72
|
+
b7466c0 Merge pull request #701 from ninp0/master
|
73
|
+
32c4a79 PWN::Plugins::SonMicroRFID module - #rubocop
|
74
|
+
275d477 PWN::Plugins::SonMicroRFID module - change authN in #read_tag method to be optional and false by default
|
75
|
+
e7be0e6 Merge pull request #700 from ninp0/master
|
76
|
+
e358e3c pwn_serial_son_micro_sm132_rfid Driver - add ability to update a single tag and refactor PWN::Plugins::SonMicroRFID for better stability
|
77
|
+
5223320 pwn_serial_msr206 Driver - tweak in menu labels
|
78
|
+
2064c4f Merge pull request #699 from ninp0/master
|
79
|
+
11230fe pwn_serial_msr206 Driver - add ability to update a single card and refactor PWN::Plugins::MSR206 for better stability
|
80
|
+
8d5b33f Merge pull request #698 from ninp0/master
|
81
|
+
b06af52 pwn_serial_msr206 - Minor #bugfixes in MSR206 driver
|
82
|
+
6b8ab7c Merge pull request #697 from ninp0/master
|
83
|
+
7edea37 Rubocop - auto-gen-config and implement fix in PWN::Plugins::XXD module
|
84
|
+
6a9c1ea Gemfile - pull in latest gem versions
|
85
|
+
520179d Gemfile - pull in latest gem versions per Dependabot alerts
|
86
|
+
5d37ba7 Merge pull request #696 from ninp0/master
|
87
|
+
68735ea Gemfile - pull in latest gem versions
|
88
|
+
6d20ac2 Merge pull request #695 from ninp0/master
|
89
|
+
034afc4 Gemfile - pull in latest gem versions
|
90
|
+
974a73c Merge pull request #694 from ninp0/master
|
91
|
+
c030676 Gemfile - pull in latest gem versions
|
92
|
+
bef4609 Gemfile - pull in latest gem versions
|
93
|
+
2b3096b Merge pull request #693 from ninp0/master
|
94
|
+
1c539f8 Gemfile - pull in latest gem versions
|
95
|
+
d36a20b Merge pull request #692 from ninp0/master
|
96
|
+
9cb54fc `rubocop --auto-gen-config`
|
97
|
+
c331c05 Gemfile - pull in latest gem versions
|
98
|
+
a26e739 Merge pull request #691 from ninp0/master
|
99
|
+
e4c332f Gemfile - pull in latest gem versions
|
100
|
+
8cd388f Merge pull request #690 from ninp0/master
|
101
|
+
a048fc2 PWN::WWW::REPL module - #bugfixs in scope details for pwn-irc command (i.e. AI chat env)
|
102
|
+
b8ec447 Merge pull request #689 from ninp0/master
|
103
|
+
57ce056 PWN::WWW::HackerOne module - return all data from graphql query in #get_scope_details method
|
104
|
+
85808bf Merge pull request #688 from ninp0/master
|
105
|
+
e803d94 PWN::WWW::HackerOne module - implement #get_hacktivity method
|
106
|
+
63ff432 Merge pull request #687 from ninp0/master
|
107
|
+
4378666 Gemfile - pull in latest gem versions
|
108
|
+
4278027 Merge pull request #686 from ninp0/master
|
109
|
+
f9fbec5 Gemfile - pull in latest gem versions
|
110
|
+
86641b2 Merge pull request #685 from ninp0/master
|
111
|
+
fdede41 Gemfile - pull in latest gem versions
|
112
|
+
255909a Merge pull request #684 from ninp0/master
|
113
|
+
7f31110 Gemfile - pull in latest gem versions
|
114
|
+
a8731f8 Merge pull request #683 from ninp0/master
|
115
|
+
3b6cd2e Gemfile - pull in latest gem versions
|
116
|
+
df928e0 Merge pull request #682 from ninp0/master
|
117
|
+
69f2ed1 pwn_nmap_discover_tcp_udp - #bugfix in `unitialized constant FileUtils (NameError)`
|
118
|
+
32b9752 Merge pull request #681 from ninp0/master
|
119
|
+
65f69d7 Gemfile - bump version of meshtastic that eliminates conflict w/ wisper binaries and pulls in latest protobuf for meshtastic
|
120
|
+
5e86d11 Merge pull request #680 from ninp0/master
|
121
|
+
4be100e PWN::Plugins::FlipperZero module - #more_bugfixes
|
122
|
+
8b74a2b PWN::Plugins::FlipperZero module - #bugfixes
|
123
|
+
e06ba71 PWN::Plugins::FlipperZero module - #tweaks
|
124
|
+
af5540e PWN::Plugins::FlipperZero module - Initial commit
|
125
|
+
d152d16 Merge pull request #679 from ninp0/master
|
126
|
+
2568761 Gemfile && PWN::Plugins::Serial module - #bugfixes / migration #tweaks
|
127
|
+
93234f9 Merge pull request #678 from ninp0/master
|
128
|
+
ea35d38 Gemfile && PWN::Plugins::Serial module - migrate deprecated serialport gem to uart gem :P
|
129
|
+
8ede362 Ruby - bump version to 3.4.1
|
130
|
+
8d9597e Merge pull request #677 from ninp0/master
|
131
|
+
25354f1 PWN::Banners::Matrix module - add #you? method for fun animation
|
132
|
+
353d3ed PWN::Banners::Matrix module - add #you? method for fun animation
|
133
|
+
a36646d Merge pull request #676 from ninp0/master
|
134
|
+
73a53c6 PWN::Plugins::Vault - update usage for #edit and #help methods to include editor parameter
|
135
|
+
2a5554c Merge pull request #675 from ninp0/master
|
136
|
+
512ff1d PWN::Plugins::Vault - ensure editor path exists prior to decrypting file.
|
137
|
+
9c3ce45 Merge pull request #674 from ninp0/master
|
138
|
+
778f3e9 PWN::Plugins::DetectOS module - simplify #arch method
|
139
|
+
0fdb24d PWN::Plugins::DetectOS module - add #endian method to simply its use in other modules, drivers, && sub-commands
|
140
|
+
ec5ad8b Merge pull request #673 from ninp0/master
|
141
|
+
021ba5e pwn-asm sub-command in pwn REPL driver, PWN::Plugins::REPL, && PWN::Plugins::Assembly modules - Unless explicity overridden in pwn.yaml, ensure the pwn-asm subcommand in the pwn REPL driver defaults to the underlying CPU arch / endian values #minor_tweaks
|
142
|
+
12628ea pwn-asm sub-command in pwn REPL driver, PWN::Plugins::REPL, && PWN::Plugins::Assembly modules - Unless explicity overridden in pwn.yaml, ensure the pwn-asm subcommand in the pwn REPL driver defaults to the underlying CPU arch / endian values
|
143
|
+
5099dec Merge pull request #672 from ninp0/master
|
144
|
+
4693f2e pwn-asm sub-command in pwn REPL driver, PWN::Plugins::REPL, && PWN::Plugins::Assembly modules - support manually overriding arch/endian in pwn-asm leveraging pwn.yaml config. Also add method in PWN::Plugins::Assembly module to list supported archs.
|
145
|
+
bf31499 Merge pull request #671 from ninp0/master
|
146
|
+
7e8bcb9 PWN::Plugins::OpenAI module - #bugfixes in #create_fine_tune method
|
147
|
+
9ac4b03 Merge pull request #670 from ninp0/master
|
148
|
+
e4e109e PWN::Plugins::OpenAI module && pwn_rdoc_to_jsonl - update API calls for fine tuning and format of JSONL dataset to upload
|
149
|
+
b56cbb8 PWN::Plugins::OpenAI module && pwn_rdoc_to_jsonl - update API calls for fine tuning and format of JSONL dataset to upload
|
150
|
+
d5eb2c8 pwn_rdoc_to_jsonl driver - dynamically generate fine-tune JSONL data for training LLMs in AI #ai_pwn #slight_tweak
|
151
|
+
4879528 pwn_rdoc_to_jsonl driver - dynamically generate fine-tune JSONL data for training LLMs in AI #ai_pwn
|
152
|
+
766b2f6 Merge pull request #669 from ninp0/master
|
153
|
+
9eea050 PWN::Plugins::BlackDuckBinaryAnalysis module - update base URI for API
|
154
|
+
d4cf53c PWN::Plugins::BlackDuckBinaryAnalysis module - update base URI for API
|
155
|
+
439e167 Merge pull request #668 from ninp0/master
|
156
|
+
ac98160 PWN::Plugins::DefectDojo module - return all engagements without overloading server via #engagement_list method
|
157
|
+
c7218e7 Merge pull request #667 from ninp0/master
|
158
|
+
46d8c8f README.md - sync up PWN::VERSION value
|
159
|
+
8c81963 Merge pull request #666 from ninp0/master
|
160
|
+
11ad596 PWN drivers - ensure all PWN drivers contain "frozen_string_literal: true"
|
161
|
+
6cac60b Merge pull request #665 from ninp0/master
|
162
|
+
5e42dd8 PWN::Plugins::REPL module - #bugfix in pwn-ai command when API key does not support a given model
|
163
|
+
04bbcf8 Merge pull request #664 from ninp0/master
|
164
|
+
dd1e5e9 Gemfile - add ostruct gem to suppress warnings that it is no longer included in the standard library
|
165
|
+
e23da99 reinstall_pwn_gemset.sh - workaround for serialport gem installation
|
166
|
+
abe5ef3 Gemfile - bump versions to latest
|
167
|
+
9fcdd41 Gemfile - bump versions to latest
|
168
|
+
04c341f PWN::Plugins::OpenAI && PWN::Plugins::REPL modules - Enhance AI capabilities within pwn-ai REPL environment
|
169
|
+
dfb5f81 Merge pull request #663 from ninp0/master
|
170
|
+
3792cb1 .ruby-version - Bump to 3.3.5
|
171
|
+
334ace0 Merge pull request #662 from ninp0/master
|
172
|
+
147ca25 pwn_web_cache_deception Driver - Rubocop fix
|
173
|
+
6f7e544 PWN::Plugins::OpenAI - update default LLM model to latest gpt-4o model made publicly available
|
174
|
+
95e4655 Merge pull request #661 from ninp0/master
|
175
|
+
8f3bd25 PWN::Plugins::TransparentBrowser module - reveal "optimized" JavaScript variables when devtools: true when using Firefox
|
176
|
+
089fa4c PWN::Plugins::TransparentBrowser module - reveal "optimized" JavaScript variables when devtools: true when isong Firefox
|
177
|
+
913a8a4 Merge pull request #660 from ninp0/master
|
178
|
+
d2f2e82 pwn.gemspec - #rubocop && PWN::Plugins::OpenAI module - update default model to gpt-4o-2024-05-13
|
179
|
+
eca0901 .ruby-version - Bump to 3.3.4
|
180
|
+
36718ad Merge pull request #659 from ninp0/master
|
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.300]: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.300]: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.300]: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:
|
@@ -219,7 +219,7 @@ module PWN
|
|
219
219
|
# description: 'optional - description of the issue',
|
220
220
|
# epic_name: 'optional - name of the epic',
|
221
221
|
# additional_fields: 'optional - additional fields to set in the issue (e.g. labels, components, custom fields, etc.)'
|
222
|
-
#
|
222
|
+
# attachment: 'optional - attachment path to upload to the issue (e.g. "/path/to/file1.txt")'
|
223
223
|
# )
|
224
224
|
|
225
225
|
public_class_method def self.create_issue(opts = {})
|
@@ -243,8 +243,8 @@ module PWN
|
|
243
243
|
additional_fields = opts[:additional_fields] ||= { fields: {} }
|
244
244
|
raise 'ERROR: additional_fields Hash must contain a :fields key that is also a Hash.' unless additional_fields.is_a?(Hash) && additional_fields.key?(:fields) && additional_fields[:fields].is_a?(Hash)
|
245
245
|
|
246
|
-
|
247
|
-
raise
|
246
|
+
attachment = opts[:attachment]
|
247
|
+
raise "ERROR: #{attachment} not found." unless attachment.nil? || File.exist?(attachment)
|
248
248
|
|
249
249
|
all_fields = get_all_fields(base_api_uri: base_api_uri, token: token)
|
250
250
|
epic_name_field_key = all_fields.find { |field| field[:name] == 'Epic Name' }[:id]
|
@@ -275,12 +275,12 @@ module PWN
|
|
275
275
|
http_body: http_body
|
276
276
|
)
|
277
277
|
|
278
|
-
if
|
278
|
+
if attachment.any?
|
279
279
|
issue = issue_resp[:key]
|
280
280
|
|
281
281
|
http_body = {
|
282
282
|
multipart: true,
|
283
|
-
file:
|
283
|
+
file: File.new(attachment, 'rb')
|
284
284
|
}
|
285
285
|
|
286
286
|
rest_call(
|
@@ -302,7 +302,7 @@ module PWN
|
|
302
302
|
# base_api_uri: 'required - base URI for Jira (e.g. https:/jira.corp.com/rest/api/latest)',
|
303
303
|
# token: 'required - personal access token',
|
304
304
|
# fields: 'required - fields to update in the issue (e.g. summary, description, labels, components, custom fields, etc.)',
|
305
|
-
#
|
305
|
+
# attachment: 'optional - attachment path to upload to the issue (e.g. "/path/to/file1.txt")'
|
306
306
|
# )
|
307
307
|
|
308
308
|
public_class_method def self.update_issue(opts = {})
|
@@ -318,7 +318,8 @@ module PWN
|
|
318
318
|
fields = opts[:fields] ||= { fields: {} }
|
319
319
|
raise 'ERROR: fields Hash must contain a :fields key that is also a Hash.' unless fields.is_a?(Hash) && fields.key?(:fields) && fields[:fields].is_a?(Hash)
|
320
320
|
|
321
|
-
|
321
|
+
attachment = opts[:attachment]
|
322
|
+
raise "ERROR: #{attachment} not found." unless File.exist?(attachment) || attachment.nil?
|
322
323
|
|
323
324
|
http_body = fields
|
324
325
|
|
@@ -330,10 +331,10 @@ module PWN
|
|
330
331
|
http_body: http_body
|
331
332
|
)
|
332
333
|
|
333
|
-
if
|
334
|
+
if attachment.any?
|
334
335
|
http_body = {
|
335
336
|
multipart: true,
|
336
|
-
file:
|
337
|
+
file: File.new(attachment, 'rb')
|
337
338
|
}
|
338
339
|
|
339
340
|
rest_call(
|
@@ -419,7 +420,7 @@ module PWN
|
|
419
420
|
description: 'optional - description of the issue',
|
420
421
|
epic_name: 'optional - name of the epic',
|
421
422
|
additional_fields: 'optional - additional fields to set in the issue (e.g. labels, components, custom fields, etc.)',
|
422
|
-
|
423
|
+
attachment: 'optional - attachment path to upload to the issue (e.g. \"/path/to/file1.txt\")'
|
423
424
|
)
|
424
425
|
|
425
426
|
issue_resp = #{self}.update_issue(
|
@@ -427,7 +428,7 @@ module PWN
|
|
427
428
|
token: 'required - personal access token',
|
428
429
|
issue: 'required - issue to update (e.g. Bug, Issue, Story, or Epic ID)',
|
429
430
|
fields: 'required - fields to update in the issue (e.g. summary, description, labels, components, custom fields, etc.)',
|
430
|
-
|
431
|
+
attachment: 'optional - attachment path to upload to the issue (e.g. \"/path/to/file1.txt\")'
|
431
432
|
)
|
432
433
|
|
433
434
|
issue_resp = #{self}.delete_issue(
|
data/lib/pwn/version.rb
CHANGED
data/lib/pwn.rb
CHANGED