plasma 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/plasma +5 -1
- data/lib/plasma/interpreter/plasma_interpreter.rb +6 -2
- data/test/recur.plasma +8 -0
- data/test/recur.rb +6 -0
- metadata +3 -1
data/Rakefile
CHANGED
data/bin/plasma
CHANGED
@@ -8,7 +8,10 @@ module Plasma
|
|
8
8
|
@comment = /##*[^#]+##*/
|
9
9
|
|
10
10
|
@dir = File.dirname(__FILE__)
|
11
|
-
@load_path = [
|
11
|
+
@load_path = [PLASMA_PACKAGE_ROOT,
|
12
|
+
File.join(PLASMA_ROOT, 'include'),
|
13
|
+
@dir,
|
14
|
+
`pwd`.strip]
|
12
15
|
|
13
16
|
@env = Env.new
|
14
17
|
@env.bind!(:mu, self)
|
@@ -54,7 +57,7 @@ module Plasma
|
|
54
57
|
found = false
|
55
58
|
value = nil
|
56
59
|
|
57
|
-
@load_path.
|
60
|
+
@load_path.reverse_each do |p|
|
58
61
|
package = File.join(p, file)
|
59
62
|
if File.exist? package
|
60
63
|
source = File.open(package, 'r')
|
@@ -62,6 +65,7 @@ module Plasma
|
|
62
65
|
|
63
66
|
value = self.interpret(code)
|
64
67
|
found = true
|
68
|
+
break
|
65
69
|
end
|
66
70
|
end
|
67
71
|
|
data/test/recur.plasma
ADDED
data/test/recur.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plasma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Spangler
|
@@ -36,6 +36,8 @@ files:
|
|
36
36
|
- test/import_test.plasma
|
37
37
|
- test/parse_test.rb
|
38
38
|
- test/plasmic.plasma
|
39
|
+
- test/recur.plasma
|
40
|
+
- test/recur.rb
|
39
41
|
- test/template_test.plasma
|
40
42
|
- test/template_test.rb
|
41
43
|
- lib/extras
|