fcshd 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/bin/fcshc-repl +18 -18
  3. data/lib/fcshd/version.rb +1 -1
  4. metadata +3 -3
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ task :install => gem do
13
13
  end
14
14
 
15
15
  task :uninstall do
16
- sh "sudo gem uninstall #{name} -v #{version}"
16
+ sh "sudo gem uninstall #{name} --executables -v #{version}"
17
17
  end
18
18
 
19
19
  file gem => FileList[gemspec, sources] do
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 = DATA.read
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 knock.inspect
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
@@ -1,5 +1,5 @@
1
1
  unless defined? FCSHD::VERSION
2
2
  module FCSHD
3
- VERSION = "0.6.3"
3
+ VERSION = "0.6.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 3
9
- version: 0.6.3
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-01-30 00:00:00 +01:00
17
+ date: 2012-02-07 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20