nilac 0.0.4.2.8 → 0.0.4.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/bin/nilac CHANGED
@@ -3373,7 +3373,7 @@ def compile(input_file_path, *output_file_name)
3373
3373
 
3374
3374
  def extract_blocks(file_contents)
3375
3375
 
3376
- javascript_regexp = /(if |while |function |function\(|((=|:)\s+\{))/
3376
+ javascript_regexp = /(if |while |for |function\(|((=|:)\s+\{))/
3377
3377
 
3378
3378
  block_starting_lines = file_contents.dup.reject { |element| element.index(javascript_regexp).nil? }[1..-1]
3379
3379
 
@@ -3989,7 +3989,7 @@ def find_file_path(input_path, file_extension)
3989
3989
 
3990
3990
  end
3991
3991
 
3992
- nilac_version = "0.0.4.2.8"
3992
+ nilac_version = "0.0.4.2.9"
3993
3993
 
3994
3994
  opts = Slop.parse do
3995
3995
  on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
data/lib/nilac/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nilac
2
- VERSION = "0.0.4.2.8"
2
+ VERSION = "0.0.4.2.9"
3
3
  end
@@ -5,19 +5,13 @@
5
5
  a = 5;
6
6
 
7
7
  for (_i = 0, _j = 10; _i < _j; _i += 1) {
8
-
9
8
  (function(n) {
10
-
11
9
  console.log("The number is " + (a+n) + "");
12
-
13
10
  }(_i));
14
-
15
11
  }
16
12
 
17
13
  for (_i = 0, _j = 10; _i < _j; _i += 1) {
18
-
19
14
  console.log("Hello");
20
-
21
15
  }
22
16
 
23
17
  }).call(this);
data/src/nilac.rb CHANGED
@@ -3371,7 +3371,7 @@ def compile(input_file_path, *output_file_name)
3371
3371
 
3372
3372
  def extract_blocks(file_contents)
3373
3373
 
3374
- javascript_regexp = /(if |while |function |function\(|((=|:)\s+\{))/
3374
+ javascript_regexp = /(if |while |for |function\(|((=|:)\s+\{))/
3375
3375
 
3376
3376
  block_starting_lines = file_contents.dup.reject { |element| element.index(javascript_regexp).nil? }[1..-1]
3377
3377
 
@@ -3987,7 +3987,7 @@ def find_file_path(input_path, file_extension)
3987
3987
 
3988
3988
  end
3989
3989
 
3990
- nilac_version = "0.0.4.2.8"
3990
+ nilac_version = "0.0.4.2.9"
3991
3991
 
3992
3992
  opts = Slop.parse do
3993
3993
  on :c, :compile=, 'Compile Nila File', as:Array, delimiter:":"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nilac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.2.8
4
+ version: 0.0.4.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: