Refresh patches
Sophie Brun
4 years ago
0 | Description: Change minimal required version | |
1 | Use version available in Kali. | |
2 | Author: Sophie Brun <[email protected]> | |
0 | From: Sophie Brun <[email protected]> | |
1 | Date: Thu, 7 Nov 2019 10:04:25 +0100 | |
2 | Subject: Change minimal required version | |
3 | ||
4 | Last-Update: 2019-06-28 | |
5 | ||
6 | Use version available in Kali. | |
3 | 7 | Last-Update: 2019-06-28 |
4 | 8 | --- |
5 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
9 | cms_scanner.gemspec | 8 ++++---- | |
10 | 1 file changed, 4 insertions(+), 4 deletions(-) | |
11 | ||
12 | diff --git a/cms_scanner.gemspec b/cms_scanner.gemspec | |
13 | index be7859b..e888435 100644 | |
6 | 14 | --- a/cms_scanner.gemspec |
7 | 15 | +++ b/cms_scanner.gemspec |
8 | @@ -22,18 +22,18 @@ Gem::Specification.new do |s| | |
16 | @@ -23,10 +23,10 @@ Gem::Specification.new do |s| | |
9 | 17 | s.add_dependency 'nokogiri', '~> 1.10.4' |
10 | s.add_dependency 'opt_parse_validator', '~> 1.8.0' | |
18 | s.add_dependency 'opt_parse_validator', '~> 1.8.1' | |
11 | 19 | s.add_dependency 'public_suffix', '>= 3.0', '< 4.1' |
12 | 20 | - s.add_dependency 'ruby-progressbar', '~> 1.10.0' |
13 | 21 | + s.add_dependency 'ruby-progressbar', '>= 1.9.0' |
16 | 24 | - s.add_dependency 'yajl-ruby', '~> 1.4.1' # Better JSON parser regarding memory usage |
17 | 25 | + s.add_dependency 'yajl-ruby', '>= 1.3.1' # Better JSON parser regarding memory usage |
18 | 26 | |
19 | s.add_development_dependency 'bundler', '>= 1.6' | |
20 | s.add_development_dependency 'coveralls', '~> 0.8.0' | |
21 | s.add_development_dependency 'rake', '~> 12.3' | |
22 | s.add_development_dependency 'rspec', '~> 3.8.0' | |
27 | s.add_dependency 'sys-proctable', '~> 1.2.2' # Required by get_process_mem for Windows OS. | |
28 | ||
29 | @@ -35,8 +35,8 @@ Gem::Specification.new do |s| | |
30 | s.add_development_dependency 'rake', '~> 13.0' | |
31 | s.add_development_dependency 'rspec', '~> 3.9.0' | |
23 | 32 | s.add_development_dependency 'rspec-its', '~> 1.3.0' |
24 | - s.add_development_dependency 'rubocop', '~> 0.74.0' | |
25 | - s.add_development_dependency 'rubocop-performance', '~> 1.4.0' | |
26 | +# s.add_development_dependency 'rubocop', '~> 0.74.0' | |
27 | +# s.add_development_dependency 'rubocop-performance', '~> 1.4.0' | |
33 | - s.add_development_dependency 'rubocop', '~> 0.76.0' | |
34 | - s.add_development_dependency 'rubocop-performance', '~> 1.5.0' | |
35 | +# s.add_development_dependency 'rubocop', '~> 0.76.0' | |
36 | +# s.add_development_dependency 'rubocop-performance', '~> 1.5.0' | |
28 | 37 | s.add_development_dependency 'simplecov', '~> 0.16.1' |
29 | 38 | s.add_development_dependency 'webmock', '~> 3.7.0' |
30 | 39 | end |
0 | Description: Don't test progressbar | |
1 | it requires a tty. | |
2 | Author: Sophie Brun <[email protected]> | |
0 | From: Sophie Brun <[email protected]> | |
1 | Date: Thu, 7 Nov 2019 10:04:26 +0100 | |
2 | Subject: Don't test progressbar | |
3 | ||
4 | Last-Update: 2019-06-28 | |
5 | ||
6 | it requires a tty. | |
3 | 7 | Last-Update: 2019-06-28 |
4 | 8 | --- |
5 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
9 | spec/lib/finders/finder_spec.rb | 101 ---------------------------------------- | |
10 | 1 file changed, 101 deletions(-) | |
11 | delete mode 100644 spec/lib/finders/finder_spec.rb | |
12 | ||
13 | diff --git a/spec/lib/finders/finder_spec.rb b/spec/lib/finders/finder_spec.rb | |
14 | deleted file mode 100644 | |
15 | index 6a482b4..0000000 | |
6 | 16 | --- a/spec/lib/finders/finder_spec.rb |
7 | 17 | +++ /dev/null |
8 | @@ -1,77 +0,0 @@ | |
18 | @@ -1,101 +0,0 @@ | |
9 | 19 | -# frozen_string_literal: true |
10 | 20 | - |
11 | 21 | -describe CMSScanner::Finders::Finder do |
12 | 22 | - subject(:finder) { described_class.new('target') } |
23 | - | |
24 | - its(:titleize) { should eql 'Finder' } | |
25 | - its(:browser) { should be_a CMSScanner::Browser } | |
26 | - its(:hydra) { should be_a Typhoeus::Hydra } | |
13 | 27 | - |
14 | 28 | - describe '#create_progress_bar' do |
15 | 29 | - before { finder.create_progress_bar(opts) } |
48 | 62 | - end |
49 | 63 | - end |
50 | 64 | - |
51 | - its(:browser) { should be_a CMSScanner::Browser } | |
65 | - class SpecCallerLocation | |
66 | - attr_reader :call | |
52 | 67 | - |
53 | - its(:hydra) { should be_a Typhoeus::Hydra } | |
68 | - def initialize(call) | |
69 | - @call = call | |
70 | - end | |
71 | - | |
72 | - def label | |
73 | - @label ||= call[/`([^']+)'$/, 1] | |
74 | - end | |
75 | - | |
76 | - def to_s | |
77 | - call | |
78 | - end | |
79 | - end | |
54 | 80 | - |
55 | 81 | - describe '#found_by' do |
56 | 82 | - context 'when no klass supplied' do |
62 | 88 | - end |
63 | 89 | - end |
64 | 90 | - |
65 | - # TODO: make the below work | |
66 | - # context 'when aggressive match' do | |
67 | - # it 'returns the expected string' do | |
68 | - # expect(finder).to receive(:caller_locations) | |
69 | - # .and_return([Thread::Backtrace::Location.new("/aaaaa/file.rb:xx:in `aggressive'")]) | |
70 | - # | |
71 | - # expect(finder.found_by).to eql 'Finder (Aggressive Detection)' | |
72 | - # end | |
73 | - # end | |
91 | - context 'when aggressive match' do | |
92 | - it 'returns the expected string' do | |
93 | - expect(finder).to receive(:caller_locations) | |
94 | - .and_return([SpecCallerLocation.new("/aaaaa/file.rb:xx:in `aggressive'")]) | |
95 | - | |
96 | - expect(finder.found_by).to eql 'Finder (Aggressive Detection)' | |
97 | - end | |
98 | - end | |
74 | 99 | - end |
75 | 100 | - |
76 | - # context 'when class supplied' do | |
77 | - # it 'returns the expected string' do | |
78 | - # expect(finder).to receive(:caller_locations) | |
79 | - # .and_return(["/aaaaa/file.rb:xx:in `passive'"]) | |
80 | - # | |
81 | - # expect(finder.found_by('Rspec')).to eql 'Rspec (Passive Detection)' | |
82 | - # end | |
83 | - # end | |
101 | - { | |
102 | - Rspec: 'Rspec', Error404Page: 'Error 404 Page', | |
103 | - CssId: 'Css Id', Something12Db2: 'Something 12 Db2' | |
104 | - }.each do |klass, expected_title| | |
105 | - context "when class #{klass} supplied" do | |
106 | - it 'returns the expected string' do | |
107 | - allow(finder).to receive(:caller_locations) | |
108 | - .and_return([SpecCallerLocation.new("/aaaaa/file.rb:xx:in `passive'")]) | |
109 | - | |
110 | - expected = "#{expected_title} (Passive Detection)" | |
111 | - | |
112 | - # klass = Object.const_set(klass_name, Class.new(described_class)) | |
113 | - | |
114 | - expect(finder.found_by(klass)).to eql expected | |
115 | - end | |
116 | - end | |
117 | - end | |
84 | 118 | - end |
85 | 119 | -end |
0 | Description: Use absolute file in tests | |
1 | Author: Sophie Brun <[email protected]> | |
0 | From: Sophie Brun <[email protected]> | |
1 | Date: Thu, 7 Nov 2019 10:04:26 +0100 | |
2 | Subject: Use absolute file in tests | |
3 | ||
4 | Last-Update: 2019-06-28 | |
5 | ||
2 | 6 | Last-Update: 2019-06-28 |
3 | 7 | --- |
4 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
8 | spec/spec_helper.rb | 3 ++- | |
9 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb | |
12 | index 34969f3..bb993b5 100644 | |
5 | 13 | --- a/spec/spec_helper.rb |
6 | 14 | +++ b/spec/spec_helper.rb |
7 | 15 | @@ -1,11 +1,12 @@ |