mumuki-javascript-runner 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/query_hook.rb +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70a7b3f4d160e1e8e90e1b14dec207fc45dc23adf8e02c080ff760e4669919a9
4
- data.tar.gz: f07180bae9ce85467219b049f90fcca76fad8b630b7ad6476312ed7b7fbba139
3
+ metadata.gz: 7a4a4e866fb702c176bcc075c039f147e773a9289251430106f6bdb3baf895e3
4
+ data.tar.gz: 30ed0dec052be2274099624d062ccaa087c27ea62ae586563fe54039cb072021
5
5
  SHA512:
6
- metadata.gz: aa708ded3212527f57268598a989215e4ad4b613b39084016ba463ab6bc1f2656b8df763806fada93c292d5bf97e8c5ca12dd754cb8587957a8dd30565913e82
7
- data.tar.gz: 3607a12474a9087708b1b201651a5dfb91377005f5b4dc1a7693d90d9174de31188bfe212da980f4b518914a702a8008035e6cfbd3b8d207d620351e7b01e508
6
+ metadata.gz: 28b7216bd532615a59599a0e7bf6704532a212c18268f578f24669fd49ab950af578f59ae1ef7e34c889ca8a67f1303eab790f86cfadbbc28747ef1945328854
7
+ data.tar.gz: d9504c226a9a77ae7e373eb8a6a4dba0fe1c8245f7d8dbc740926e972e980ee399fe7d1732c850ce855326c2315b96cee061a61b0e393a95a46b2955f3c7face
data/lib/query_hook.rb CHANGED
@@ -26,7 +26,7 @@ javascript
26
26
  end
27
27
 
28
28
  def compile_query(query)
29
- if query.start_with? 'var '
29
+ if query.start_with?('var ') || query.start_with?('let ')
30
30
  "#{query}\nconsole.log('=> undefined')"
31
31
  else
32
32
  "var __mumuki_query_result__ = #{query};\nconsole.log('=> ' + mumukiConsolePrettyPrint(__mumuki_query_result__))"
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JavascriptVersionHook
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.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.3.1
4
+ version: 1.3.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: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.7.5
130
+ rubygems_version: 2.7.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Javascript Runner for Mumuki