mumuki-javascript-runner 1.1.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: 14d97d934cf5f61416db5c80011b939784ea63da
4
- data.tar.gz: ce632dab3bbb02a8db0f0b5fd47b55aa34cd8620
3
+ metadata.gz: faf55127c684fb7f6fb851ae8116cfecd7aac8c5
4
+ data.tar.gz: a4d2b4dcc3b6bb9daebd8d7111688fafd3fb4b1a
5
5
  SHA512:
6
- metadata.gz: 4c1a3592b8291af6ede9baa6e2e6e5ede7731c6749810119da1f000f8a0206bb475fe5bc338ecf9e5573358d60f7cc5998ff3dad3f2188cf5ca5196c4d10b783
7
- data.tar.gz: 21b4159770fd044790f94ffbeb767eff540bc378f0776132ac006c310e49de444db5d13fc2e4e92434b2788b34f23a080ce9123a7d8ae8f785a4a27980298689
6
+ metadata.gz: 2b33d523c211cb4115d342f6ae0557e5cf482344eafb19dd33bbe31c4c978e0a943460fc90280f9644a7a92cbf200b7451f45ecdb12cd5b95049c37cb435c2b3
7
+ data.tar.gz: 57e7ca9ccd3aa6912817b1a1ead91da4b64428f298dc9a07352e410fa743d44eaadb69cae016f0df0ad4339ba71c1e9833d3c8dbe22d8177deebb9c3a9191a73
@@ -7,6 +7,7 @@ Mumukit.configure do |config|
7
7
  config.stateful = true
8
8
  end
9
9
 
10
+ require_relative './version'
10
11
  require_relative './metadata_hook'
11
12
  require_relative './test_hook'
12
13
  require_relative './expectations_hook'
data/lib/test_hook.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  class JavascriptTestHook < Mumukit::Templates::FileHook
2
2
  isolated true
3
- structured true
3
+ structured true, separator: '!!!JAVASCRIPT-MUMUKI-OUTPUT!!!'
4
4
 
5
5
  def compile_file_content(request)
6
6
  <<javascript
@@ -10,7 +10,13 @@ var assert = require('assert');
10
10
 
11
11
  #{request.extra}
12
12
  #{request.content}
13
- #{request.test}
13
+ describe('', function() {
14
+ after(function() {
15
+ console.log("!!!JAVASCRIPT-MUMUKI-OUTPUT!!!");
16
+ });
17
+ #{request.test}
18
+ })
19
+
14
20
  javascript
15
21
  end
16
22
 
data/lib/version.rb ADDED
@@ -0,0 +1,3 @@
1
+ module JavascriptVersionHook
2
+ VERSION = '1.2.0'
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.1.0
4
+ version: 1.2.0
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: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.10'
19
+ version: '2.12'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.10'
26
+ version: '2.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +106,7 @@ files:
106
106
  - lib/metadata_hook.rb
107
107
  - lib/query_hook.rb
108
108
  - lib/test_hook.rb
109
+ - lib/version.rb
109
110
  homepage: http://github.com/mumuki/mumuki-javascript-server
110
111
  licenses:
111
112
  - MIT
@@ -126,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  version: '0'
127
128
  requirements: []
128
129
  rubyforge_project:
129
- rubygems_version: 2.6.11
130
+ rubygems_version: 2.6.14
130
131
  signing_key:
131
132
  specification_version: 4
132
133
  summary: Javascript Runner for Mumuki