cms_scanner 0.13.6 → 0.13.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa75f8f02c46d71e83a1046a0fb3e76c6ebfa35809158202cc251609031f436b
4
- data.tar.gz: 3a7bc3d215a5b859e74c2bc7928fe210e87a10c609a0c6c4c8d166668e97865d
3
+ metadata.gz: 4e844a7c12e7e4767678eee8958f7b6c863789f4478553b9260e86dea258c974
4
+ data.tar.gz: e203a131365c6b7637842c6296918135e3dc97bb6bd8a922214c3629779e622e
5
5
  SHA512:
6
- metadata.gz: 0ee139ea50a17e94bce5231f40c5b4934c2c68d507a6b8493f1af505525e1d18628de0e76e99675d7391310b76cbfde778420004a95a801484db687d27ab031d
7
- data.tar.gz: e1fa8194c3b4edafcb3a62650b2a00bf99b7cf058b360d338b3ff7e537901b37f5b31b6346d26db5d95b438102241f41a8670a520b65796e9f51d88b52054c9d
6
+ metadata.gz: 4d1f9c65037c59a457dd2fb4370151b0cdc0639d5dcf01d84cfc2fba1b5956ab4761434ee0b85daff31aacf0fd1db0e61c74c34688678a23d72bee7108636ede
7
+ data.tar.gz: bb9e70348937efab985f82b5baca41e74fdbcfa7620b7fff1ef9f935f8562e8b0d3531bf0a0a2d73aaa1393305999d6bf3b8656f570b2c012d286784c44b40a3
@@ -84,6 +84,8 @@ module CMSScanner
84
84
  puts render(tpl, vars, controller_name)
85
85
  end
86
86
 
87
+ ERB_SUPPORTS_KVARGS = ::ERB.instance_method(:initialize).parameters.assoc(:key) # Ruby 2.6+
88
+
87
89
  # @param [ String ] tpl
88
90
  # @param [ Hash ] vars
89
91
  # @param [ String ] controller_name
@@ -93,7 +95,12 @@ module CMSScanner
93
95
 
94
96
  # '-' is used to disable new lines when -%> is used
95
97
  # See http://www.ruby-doc.org/stdlib-2.1.1/libdoc/erb/rdoc/ERB.html
96
- ERB.new(File.read(view_path(tpl)), nil, '-').result(binding)
98
+ # Since ruby 2.6, KVARGS are supported and passing argument is deprecated in ruby 3+
99
+ if ERB_SUPPORTS_KVARGS
100
+ ERB.new(File.read(view_path(tpl)), trim_mode: '-').result(binding)
101
+ else
102
+ ERB.new(File.read(view_path(tpl)), nil, '-').result(binding)
103
+ end
97
104
  end
98
105
 
99
106
  # @param [ Hash ] vars
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Version
4
4
  module CMSScanner
5
- VERSION = '0.13.6'
5
+ VERSION = '0.13.7'
6
6
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cms_scanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.6
4
+ version: 0.13.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - WPScanTeam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ethon
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.14'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: 0.14.0
22
+ version: '0.16'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: 0.14.0
29
+ version: '0.14'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.16'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: get_process_mem
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: 1.11.4
48
54
  - - "<"
49
55
  - !ruby/object:Gem::Version
50
- version: 1.13.0
56
+ version: 1.14.0
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +63,7 @@ dependencies:
57
63
  version: 1.11.4
58
64
  - - "<"
59
65
  - !ruby/object:Gem::Version
60
- version: 1.13.0
66
+ version: 1.14.0
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: opt_parse_validator
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -202,14 +208,14 @@ dependencies:
202
208
  requirements:
203
209
  - - "~>"
204
210
  - !ruby/object:Gem::Version
205
- version: 3.10.0
211
+ version: 3.11.0
206
212
  type: :development
207
213
  prerelease: false
208
214
  version_requirements: !ruby/object:Gem::Requirement
209
215
  requirements:
210
216
  - - "~>"
211
217
  - !ruby/object:Gem::Version
212
- version: 3.10.0
218
+ version: 3.11.0
213
219
  - !ruby/object:Gem::Dependency
214
220
  name: rspec-its
215
221
  requirement: !ruby/object:Gem::Requirement
@@ -230,28 +236,28 @@ dependencies:
230
236
  requirements:
231
237
  - - "~>"
232
238
  - !ruby/object:Gem::Version
233
- version: 1.21.0
239
+ version: 1.25.0
234
240
  type: :development
235
241
  prerelease: false
236
242
  version_requirements: !ruby/object:Gem::Requirement
237
243
  requirements:
238
244
  - - "~>"
239
245
  - !ruby/object:Gem::Version
240
- version: 1.21.0
246
+ version: 1.25.0
241
247
  - !ruby/object:Gem::Dependency
242
248
  name: rubocop-performance
243
249
  requirement: !ruby/object:Gem::Requirement
244
250
  requirements:
245
251
  - - "~>"
246
252
  - !ruby/object:Gem::Version
247
- version: 1.11.0
253
+ version: 1.13.0
248
254
  type: :development
249
255
  prerelease: false
250
256
  version_requirements: !ruby/object:Gem::Requirement
251
257
  requirements:
252
258
  - - "~>"
253
259
  - !ruby/object:Gem::Version
254
- version: 1.11.0
260
+ version: 1.13.0
255
261
  - !ruby/object:Gem::Dependency
256
262
  name: simplecov
257
263
  requirement: !ruby/object:Gem::Requirement
@@ -286,14 +292,14 @@ dependencies:
286
292
  requirements:
287
293
  - - "~>"
288
294
  - !ruby/object:Gem::Version
289
- version: 3.13.0
295
+ version: 3.14.0
290
296
  type: :development
291
297
  prerelease: false
292
298
  version_requirements: !ruby/object:Gem::Requirement
293
299
  requirements:
294
300
  - - "~>"
295
301
  - !ruby/object:Gem::Version
296
- version: 3.13.0
302
+ version: 3.14.0
297
303
  description: Framework to provide an easy way to implement CMS Scanners
298
304
  email:
299
305
  - contact@wpscan.com