mumuki-javascript-runner 1.6.1 → 1.6.2

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: 27f5bfb23b79be6ab30498db14509c411937ea95e009dcf2c3e08a47e262d2e9
4
- data.tar.gz: af6d8ed5c9783ce18ac3eab40230530718b9cee0b18197201ffa85bcd273212a
3
+ metadata.gz: 20226f79e13d2ab4258f79b40b3fedc4c0cbc95533663170fb1c3c7fdbad9f8f
4
+ data.tar.gz: 9b52ec14fe5153e27cea40130b2a143a6ba9c73c91bb87c5974908ea27404b89
5
5
  SHA512:
6
- metadata.gz: cf2f50685744e546a02740be2811d7bab9e1d76c7bc0574bffa3798bed65a87fba3b22871046f8b4dffb799630f38d85db2a4444c48a02b48227e7911a9c50bc
7
- data.tar.gz: 1fe3a8346f15707cc100c6b494df926d43842f527d471b87c2cab1ef699c4796fbc05dff38af86d81caa5663da6119a026ead2c76f7bc77c512202dd8bd31ede
6
+ metadata.gz: de05d16296a3b89dd7291d623d2fe6f3cead5fa8b577374a5d5e4d3e42626a0794dfb1d4da1a17db2f7878d511841e73802870c20220c7278fb05ee8197cfb43
7
+ data.tar.gz: 5e37e9518248fc5ae9faef8f5337da68cacdfa8287fcb480f3ab911975aa4330ebd30079f2ab189571478e84579ff94a701316018fbe3c8a0dd38b62172ea27c
@@ -1,7 +1,7 @@
1
1
  class JavascriptValidationHook < Mumukit::Hook
2
2
  def validate!(request)
3
3
  matches = request_matches?(request) do |it|
4
- it =~ /(^|\W+)(require|process|os|fs|eval|cluster|v8|vm|tty|tls|root|global|crypto|stream|events)(\W+|$)/
4
+ it =~ /(^|[^_[[:alnum:]]]+)(require|process|os|fs|eval|cluster|v8|vm|tty|tls|root|global|crypto|stream|events)([^_[[:alnum:]]]+|$)/
5
5
  end
6
6
  raise Mumukit::RequestValidationError, "You can not use #{$2} here" if matches
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module JavascriptVersionHook
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-javascript-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-11 00:00:00.000000000 Z
11
+ date: 2020-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubygems_version: 3.0.8
135
+ rubygems_version: 3.0.3
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Javascript Runner for Mumuki