File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ $ rvm use ruby-ruby-3.2.1@pwn
37
37
$ rvm list gemsets
38
38
$ gem install --verbose pwn
39
39
$ pwn
40
- pwn[v0.4.628 ]:001 >>> PWN.help
40
+ pwn[v0.4.629 ]: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-ruby-3.2.1@pwn
52
52
$ gem uninstall --all --executables pwn
53
53
$ gem install --verbose pwn
54
54
$ pwn
55
- pwn[v0.4.628 ]:001 >>> PWN.help
55
+ pwn[v0.4.629 ]:001 >>> PWN.help
56
56
```
57
57
58
58
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module PWN
4
- VERSION = '0.4.628 '
4
+ VERSION = '0.4.629 '
5
5
end
Original file line number Diff line number Diff line change @@ -27,13 +27,14 @@ Gem::Specification.new do |spec|
27
27
28
28
missing_rspec = false
29
29
pwn_modules . each do |pwn_path |
30
- spec_test_for_mod = "#{ File . dirname ( pwn_path ) } /#{ File . basename ( pwn_path ) . split ( '.' ) . first } _spec.rb"
31
- next unless spec_tests . grep ( /#{ spec_test_for_mod } / ) . empty?
30
+ spec_dirname_for_mod = "spec/#{ File . dirname ( pwn_path ) } "
31
+ spec_test_for_mod = "#{ File . basename ( pwn_path ) . split ( '.' ) . first } _spec.rb"
32
+ spec_path_for_mod = "#{ spec_dirname_for_mod } /#{ spec_test_for_mod } "
33
+ next unless spec_tests . grep ( /#{ spec_path_for_mod } / ) . empty?
32
34
33
35
missing_rspec = true
34
36
pwn_mod_dir = File . dirname ( pwn_path )
35
- spec_test = "spec/#{ pwn_mod_dir } /#{ spec_test_for_mod } "
36
- error_msg = "ERROR: RSpec: #{ spec_test } missing for PWN Module: #{ pwn_path } "
37
+ error_msg = "ERROR: RSpec: #{ spec_path_for_mod } missing for PWN Module: #{ pwn_path } "
37
38
# Display error message in red (octal encoded ansi sequence)
38
39
puts "\001 \e [1m\002 \001 \e [31m\002 #{ error_msg } \001 \e [0m\002 "
39
40
end
You can’t perform that action at this time.
0 commit comments