fcshd 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/fcshc-repl +18 -18
- data/lib/fcshd/version.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
data/bin/fcshc-repl
CHANGED
@@ -31,27 +31,11 @@ catch :ok do
|
|
31
31
|
fail "too many entries in #{Dir.pwd}"
|
32
32
|
end
|
33
33
|
|
34
|
-
program_template =
|
35
|
-
get_program = -> code do
|
36
|
-
program_template.sub("__CODE__", code)
|
37
|
-
end
|
38
|
-
|
39
|
-
class MyInterrupt < StandardError; end
|
40
|
-
|
41
|
-
while line = Readline.readline("as3> ", true)
|
42
|
-
File.open("dummy.as", "w") { |file| file << get_program[line] }
|
43
|
-
output = `fcshc -lstdio -lknock --no-rsls dummy.as`
|
44
|
-
puts output.gsub(/^dummy.as:\d+: /, "") unless output == ""
|
45
|
-
if $? == 0
|
46
|
-
system "run-swf dummy.swf"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
__END__
|
34
|
+
program_template = <<EOF
|
51
35
|
package {
|
52
36
|
import stdio.flash.Sprite
|
53
37
|
import stdio.process
|
54
|
-
import
|
38
|
+
import stdlib.inspect
|
55
39
|
import flash.utils.*
|
56
40
|
|
57
41
|
public class dummy extends Sprite {
|
@@ -67,3 +51,19 @@ package {
|
|
67
51
|
}
|
68
52
|
}
|
69
53
|
}
|
54
|
+
EOF
|
55
|
+
|
56
|
+
get_program = lambda do |code|
|
57
|
+
program_template.sub("__CODE__", code)
|
58
|
+
end
|
59
|
+
|
60
|
+
class MyInterrupt < StandardError; end
|
61
|
+
|
62
|
+
while line = Readline.readline("as3> ", true)
|
63
|
+
File.open("dummy.as", "w") { |file| file << get_program[line] }
|
64
|
+
output = `fcshc -lstdlib -lstdio -lknock --no-rsls dummy.as`
|
65
|
+
puts output.gsub(/^dummy.as:\d+: /, "") unless output == ""
|
66
|
+
if $? == 0
|
67
|
+
system "run-stdio-swf dummy.swf"
|
68
|
+
end
|
69
|
+
end
|
data/lib/fcshd/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 4
|
9
|
+
version: 0.6.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Brockman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-02-07 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|