livecode 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +16 -8
- data/VERSION +1 -1
- data/bin/livecode +1 -1
- data/livecode.gemspec +1 -8
- metadata +1 -8
- data/extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Document.tmCommand +0 -38
- data/extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Line.tmCommand +0 -40
- data/extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Scope.tmCommand +0 -40
- data/extras/textmate/Ruby Livecode.tmbundle/Commands/Start.tmCommand +0 -25
- data/extras/textmate/Ruby Livecode.tmbundle/Commands/Stop.tmCommand +0 -25
- data/extras/textmate/Ruby Livecode.tmbundle/Syntaxes/Ruby Livecode.tmLanguage +0 -25
- data/extras/textmate/Ruby Livecode.tmbundle/info.plist +0 -43
data/README.rdoc
CHANGED
@@ -1,27 +1,35 @@
|
|
1
|
-
= Livecode
|
2
|
-
|
3
|
-
Livecoding toolkit for Ruby. Primarily intended for Textmate on OSX, but the server should work on any *nix variant.
|
1
|
+
= Livecode: Ruby toolkit for TextMate/OSX
|
4
2
|
|
5
3
|
More to come.
|
6
4
|
|
7
5
|
== Installation
|
8
6
|
|
9
|
-
First, install the gem:
|
10
|
-
|
11
7
|
gem install livecode
|
12
8
|
|
9
|
+
The TextMate bundle should be updated every time you install a new version:
|
10
|
+
|
11
|
+
livecode update_textmate
|
12
|
+
|
13
13
|
== Usage
|
14
14
|
|
15
|
-
Once you're set up, fire up the server:
|
15
|
+
Once you're set up, you can fire up the server in a terminal window:
|
16
16
|
|
17
17
|
livecode run
|
18
18
|
|
19
|
-
|
19
|
+
(Alternatively, you could press CMD+B in TextMate to launch it as a background daemon.)
|
20
|
+
|
21
|
+
Open a new TextMate document and set the language to "Ruby Livecode". You can
|
22
|
+
now press CMD+E to run either the selected text or the current line on
|
23
|
+
the server. Hack away!
|
24
|
+
|
25
|
+
== Making your own client
|
26
|
+
|
27
|
+
..is fairly simple:
|
20
28
|
|
21
29
|
require 'livecode_server'
|
22
30
|
client = LivecodeServer::Client.new
|
23
31
|
|
24
|
-
You can now send code to the server:
|
32
|
+
You can now send code to the server as strings:
|
25
33
|
|
26
34
|
client.run 'message = "Hello world!"'
|
27
35
|
client.run 'puts message'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/livecode
CHANGED
@@ -41,7 +41,7 @@ when 'update_textmate'
|
|
41
41
|
if File.exists?("/Library/Application Support/TextMate/Bundles/Ruby Livecode.tmbundle")
|
42
42
|
`sudo rm /Library/Application\\ Support/TextMate/Bundles/Ruby\\ Livecode.tmbundle`
|
43
43
|
end
|
44
|
-
bundle_path = Pathname.new(File.join(
|
44
|
+
bundle_path = Pathname.new(File.join(Gem.cache.find_name('livecode').map{|g| g.full_gem_path}.sort.last, 'extras/textmate/Ruby Livecode.tmbundle')).realpath.to_s
|
45
45
|
escaped_bundle_path = bundle_path.gsub(/\s/, '\ ')
|
46
46
|
`sudo ln -s #{escaped_bundle_path} /Library/Application\\ Support/TextMate/Bundles/Ruby\\ Livecode.tmbundle`
|
47
47
|
`osascript -e 'tell app "TextMate" to reload bundles'`
|
data/livecode.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{livecode}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Inge J\303\270rgensen"]
|
@@ -26,13 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
28
|
"bin/livecode",
|
29
|
-
"extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Document.tmCommand",
|
30
|
-
"extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Line.tmCommand",
|
31
|
-
"extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Scope.tmCommand",
|
32
|
-
"extras/textmate/Ruby Livecode.tmbundle/Commands/Start.tmCommand",
|
33
|
-
"extras/textmate/Ruby Livecode.tmbundle/Commands/Stop.tmCommand",
|
34
|
-
"extras/textmate/Ruby Livecode.tmbundle/Syntaxes/Ruby Livecode.tmLanguage",
|
35
|
-
"extras/textmate/Ruby Livecode.tmbundle/info.plist",
|
36
29
|
"lib/livecode.rb",
|
37
30
|
"lib/livecode_server.rb",
|
38
31
|
"lib/livecode_server/client.rb",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livecode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Inge J\xC3\xB8rgensen"
|
@@ -39,13 +39,6 @@ files:
|
|
39
39
|
- Rakefile
|
40
40
|
- VERSION
|
41
41
|
- bin/livecode
|
42
|
-
- extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Document.tmCommand
|
43
|
-
- extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Line.tmCommand
|
44
|
-
- extras/textmate/Ruby Livecode.tmbundle/Commands/Execute Selection:Scope.tmCommand
|
45
|
-
- extras/textmate/Ruby Livecode.tmbundle/Commands/Start.tmCommand
|
46
|
-
- extras/textmate/Ruby Livecode.tmbundle/Commands/Stop.tmCommand
|
47
|
-
- extras/textmate/Ruby Livecode.tmbundle/Syntaxes/Ruby Livecode.tmLanguage
|
48
|
-
- extras/textmate/Ruby Livecode.tmbundle/info.plist
|
49
42
|
- lib/livecode.rb
|
50
43
|
- lib/livecode_server.rb
|
51
44
|
- lib/livecode_server/client.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>beforeRunningCommand</key>
|
6
|
-
<string>nop</string>
|
7
|
-
<key>command</key>
|
8
|
-
<string>#!/usr/bin/env ruby -KU
|
9
|
-
|
10
|
-
require 'rubygems'
|
11
|
-
require 'livecode_server'
|
12
|
-
code = STDIN.read
|
13
|
-
client = LivecodeServer::Client.new
|
14
|
-
|
15
|
-
begin
|
16
|
-
client.run code
|
17
|
-
rescue LivecodeServer::ConnectionError => e
|
18
|
-
puts "Livecode server not running!\n\n"
|
19
|
-
puts '- Press ⌘B to start in daemon mode'
|
20
|
-
puts '- Run in Terminal with "livecode run"'
|
21
|
-
rescue Exception => e
|
22
|
-
puts "Error!"
|
23
|
-
puts " #{e.class}: #{e}"
|
24
|
-
end</string>
|
25
|
-
<key>input</key>
|
26
|
-
<string>document</string>
|
27
|
-
<key>keyEquivalent</key>
|
28
|
-
<string>@r</string>
|
29
|
-
<key>name</key>
|
30
|
-
<string>Execute Document</string>
|
31
|
-
<key>output</key>
|
32
|
-
<string>showAsTooltip</string>
|
33
|
-
<key>scope</key>
|
34
|
-
<string>source.ruby.livecode</string>
|
35
|
-
<key>uuid</key>
|
36
|
-
<string>D0828725-3DE5-43FB-BDEC-FF90DB9DE9A7</string>
|
37
|
-
</dict>
|
38
|
-
</plist>
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>beforeRunningCommand</key>
|
6
|
-
<string>nop</string>
|
7
|
-
<key>command</key>
|
8
|
-
<string>#!/usr/bin/env ruby -KU
|
9
|
-
|
10
|
-
require 'rubygems'
|
11
|
-
require 'livecode_server'
|
12
|
-
code = STDIN.read
|
13
|
-
client = LivecodeServer::Client.new
|
14
|
-
|
15
|
-
begin
|
16
|
-
client.run code
|
17
|
-
rescue LivecodeServer::ConnectionError => e
|
18
|
-
puts "Livecode server not running!\n\n"
|
19
|
-
puts '- Press ⌘B to start in daemon mode'
|
20
|
-
puts '- Run in Terminal with "livecode run"'
|
21
|
-
rescue Exception => e
|
22
|
-
puts "Error!"
|
23
|
-
puts " #{e.class}: #{e}"
|
24
|
-
end</string>
|
25
|
-
<key>fallbackInput</key>
|
26
|
-
<string>line</string>
|
27
|
-
<key>input</key>
|
28
|
-
<string>selection</string>
|
29
|
-
<key>keyEquivalent</key>
|
30
|
-
<string>@e</string>
|
31
|
-
<key>name</key>
|
32
|
-
<string>Execute Selection/Line</string>
|
33
|
-
<key>output</key>
|
34
|
-
<string>showAsTooltip</string>
|
35
|
-
<key>scope</key>
|
36
|
-
<string>source.ruby.livecode</string>
|
37
|
-
<key>uuid</key>
|
38
|
-
<string>A171158B-D12C-4A2A-A40E-221873AE80E4</string>
|
39
|
-
</dict>
|
40
|
-
</plist>
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>beforeRunningCommand</key>
|
6
|
-
<string>nop</string>
|
7
|
-
<key>command</key>
|
8
|
-
<string>#!/usr/bin/env ruby -KU
|
9
|
-
|
10
|
-
require 'rubygems'
|
11
|
-
require 'livecode_server'
|
12
|
-
code = STDIN.read
|
13
|
-
client = LivecodeServer::Client.new
|
14
|
-
|
15
|
-
begin
|
16
|
-
client.run code
|
17
|
-
rescue LivecodeServer::ConnectionError => e
|
18
|
-
puts "Livecode server not running!\n\n"
|
19
|
-
puts '- Press ⌘B to start in daemon mode'
|
20
|
-
puts '- Run in Terminal with "livecode run"'
|
21
|
-
rescue Exception => e
|
22
|
-
puts "Error!"
|
23
|
-
puts " #{e.class}: #{e}"
|
24
|
-
end</string>
|
25
|
-
<key>fallbackInput</key>
|
26
|
-
<string>scope</string>
|
27
|
-
<key>input</key>
|
28
|
-
<string>selection</string>
|
29
|
-
<key>keyEquivalent</key>
|
30
|
-
<string>^e</string>
|
31
|
-
<key>name</key>
|
32
|
-
<string>Execute Selection/Scope</string>
|
33
|
-
<key>output</key>
|
34
|
-
<string>showAsTooltip</string>
|
35
|
-
<key>scope</key>
|
36
|
-
<string>source.ruby.livecode</string>
|
37
|
-
<key>uuid</key>
|
38
|
-
<string>F1A4B1E4-3324-4E7F-B102-EA9FC8D5EED3</string>
|
39
|
-
</dict>
|
40
|
-
</plist>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>beforeRunningCommand</key>
|
6
|
-
<string>nop</string>
|
7
|
-
<key>command</key>
|
8
|
-
<string>#!/usr/bin/env ruby
|
9
|
-
|
10
|
-
puts "Starting Livecode server... (Press ⇧⌘B to stop)"
|
11
|
-
puts `livecode start`</string>
|
12
|
-
<key>input</key>
|
13
|
-
<string>none</string>
|
14
|
-
<key>keyEquivalent</key>
|
15
|
-
<string>@b</string>
|
16
|
-
<key>name</key>
|
17
|
-
<string>Start</string>
|
18
|
-
<key>output</key>
|
19
|
-
<string>showAsTooltip</string>
|
20
|
-
<key>scope</key>
|
21
|
-
<string>source.ruby.livecode</string>
|
22
|
-
<key>uuid</key>
|
23
|
-
<string>3D80B4C9-9D0F-42BD-9440-E69FDE044CBA</string>
|
24
|
-
</dict>
|
25
|
-
</plist>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>beforeRunningCommand</key>
|
6
|
-
<string>nop</string>
|
7
|
-
<key>command</key>
|
8
|
-
<string>#!/usr/bin/env ruby
|
9
|
-
|
10
|
-
puts "Stopping Livecode server..."
|
11
|
-
puts `livecode stop`</string>
|
12
|
-
<key>input</key>
|
13
|
-
<string>none</string>
|
14
|
-
<key>keyEquivalent</key>
|
15
|
-
<string>@B</string>
|
16
|
-
<key>name</key>
|
17
|
-
<string>Stop</string>
|
18
|
-
<key>output</key>
|
19
|
-
<string>showAsTooltip</string>
|
20
|
-
<key>scope</key>
|
21
|
-
<string>source.ruby.livecode</string>
|
22
|
-
<key>uuid</key>
|
23
|
-
<string>7AAC044D-D320-47B8-85E6-F20D3EE6B3D7</string>
|
24
|
-
</dict>
|
25
|
-
</plist>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>fileTypes</key>
|
6
|
-
<array>
|
7
|
-
<string>rblive</string>
|
8
|
-
</array>
|
9
|
-
<key>keyEquivalent</key>
|
10
|
-
<string>~@R</string>
|
11
|
-
<key>name</key>
|
12
|
-
<string>Ruby Livecode</string>
|
13
|
-
<key>patterns</key>
|
14
|
-
<array>
|
15
|
-
<dict>
|
16
|
-
<key>include</key>
|
17
|
-
<string>source.ruby</string>
|
18
|
-
</dict>
|
19
|
-
</array>
|
20
|
-
<key>scopeName</key>
|
21
|
-
<string>source.ruby.livecode</string>
|
22
|
-
<key>uuid</key>
|
23
|
-
<string>5005ED25-4281-4325-B6B6-35C4A219200A</string>
|
24
|
-
</dict>
|
25
|
-
</plist>
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>mainMenu</key>
|
6
|
-
<dict>
|
7
|
-
<key>items</key>
|
8
|
-
<array>
|
9
|
-
<string>D0828725-3DE5-43FB-BDEC-FF90DB9DE9A7</string>
|
10
|
-
<string>A171158B-D12C-4A2A-A40E-221873AE80E4</string>
|
11
|
-
<string>F1A4B1E4-3324-4E7F-B102-EA9FC8D5EED3</string>
|
12
|
-
<string>------------------------------------</string>
|
13
|
-
<string>8C97BBC9-9456-4329-BAAB-AB223FEFC72F</string>
|
14
|
-
</array>
|
15
|
-
<key>submenus</key>
|
16
|
-
<dict>
|
17
|
-
<key>8C97BBC9-9456-4329-BAAB-AB223FEFC72F</key>
|
18
|
-
<dict>
|
19
|
-
<key>items</key>
|
20
|
-
<array>
|
21
|
-
<string>3D80B4C9-9D0F-42BD-9440-E69FDE044CBA</string>
|
22
|
-
<string>7AAC044D-D320-47B8-85E6-F20D3EE6B3D7</string>
|
23
|
-
</array>
|
24
|
-
<key>name</key>
|
25
|
-
<string>Server</string>
|
26
|
-
</dict>
|
27
|
-
</dict>
|
28
|
-
</dict>
|
29
|
-
<key>name</key>
|
30
|
-
<string>Ruby Livecode</string>
|
31
|
-
<key>ordering</key>
|
32
|
-
<array>
|
33
|
-
<string>5005ED25-4281-4325-B6B6-35C4A219200A</string>
|
34
|
-
<string>D0828725-3DE5-43FB-BDEC-FF90DB9DE9A7</string>
|
35
|
-
<string>A171158B-D12C-4A2A-A40E-221873AE80E4</string>
|
36
|
-
<string>F1A4B1E4-3324-4E7F-B102-EA9FC8D5EED3</string>
|
37
|
-
<string>3D80B4C9-9D0F-42BD-9440-E69FDE044CBA</string>
|
38
|
-
<string>7AAC044D-D320-47B8-85E6-F20D3EE6B3D7</string>
|
39
|
-
</array>
|
40
|
-
<key>uuid</key>
|
41
|
-
<string>2A003063-9054-4398-9E53-F0139603A721</string>
|
42
|
-
</dict>
|
43
|
-
</plist>
|