riml 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/riml.rb CHANGED
@@ -40,11 +40,15 @@ module Riml
40
40
 
41
41
  # expects `file_names` to be readable files
42
42
  def self.compile_files(*file_names)
43
+ threads = []
43
44
  file_names.each do |file_name|
44
- f = File.open(file_name)
45
- # `compile` will close file handle
46
- compile(f)
45
+ threads << Thread.new do
46
+ f = File.open(file_name)
47
+ # `compile` will close file handle
48
+ compile(f)
49
+ end
47
50
  end
51
+ threads.each {|t| t.join}
48
52
  end
49
53
 
50
54
  def self.source_path
@@ -65,7 +69,7 @@ module Riml
65
69
  return true if compiler.compile_queue.empty?
66
70
 
67
71
  file_name = compiler.compile_queue.shift
68
- compile(File.open(File.join(Riml.source_path, file_name)), parser, Compiler.new)
72
+ compile(File.open(File.join(Riml.source_path, file_name)), parser)
69
73
  process_compile_queue!(parser, compiler)
70
74
  end
71
75
 
data/lib/walker.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Riml
2
2
  class Walker
3
- def self.walk_node(node, method, walk_children = lambda {|node| true })
3
+ def self.walk_node(node, method, walk_children = lambda {|n| true })
4
4
  # breadth-first walk
5
5
  to_visit = [node]
6
6
  while to_visit.length > 0
data/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Riml
2
- # last changed: Nov. 25, 2012
3
- VERSION = [0,1,5]
2
+ # last changed: Dec. 9, 2012
3
+ VERSION = [0,1,6]
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-25 00:00:00.000000000Z
12
+ date: 2012-12-09 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: racc
16
- requirement: &74018570 !ruby/object:Gem::Requirement
16
+ requirement: &75938870 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *74018570
24
+ version_requirements: *75938870
25
25
  description: ! " Riml is a superset of VimL that includes some nice features:\n classes,
26
26
  string interpolation, heredocs, default case-sensitive string\n comparison and
27
27
  other things most programmers take for granted.\n"