live 0.1.0 → 0.1.1
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/README.rdoc +1 -1
- data/lib/live/version.rb +1 -1
- data/live.gemspec +4 -3
- metadata +41 -6
data/README.rdoc
CHANGED
@@ -31,6 +31,6 @@ To use from vim paste this in your .vimrc file
|
|
31
31
|
|
32
32
|
map <Leader>x :call EvalLiveRuby()<enter>
|
33
33
|
|
34
|
-
Then by pressing leader and x you will execute the
|
34
|
+
Then by pressing leader and x you will execute the range in the live session
|
35
35
|
|
36
36
|
|
data/lib/live/version.rb
CHANGED
data/live.gemspec
CHANGED
@@ -8,11 +8,12 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Macario Ortega"]
|
10
10
|
s.email = ["macarui@gmail.com"]
|
11
|
-
s.homepage = ""
|
11
|
+
s.homepage = "http://github.com/maca/live"
|
12
12
|
s.summary = %q{Live is like IRC only it is meant to be used from a text editor}
|
13
13
|
s.description = %q{Live is like IRC only it is meant to be used from a text editor, it essentially polls a *nix pipe and evaluates its contents.
|
14
|
-
It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.
|
15
|
-
|
14
|
+
It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.}
|
15
|
+
|
16
|
+
s.post_install_message = File.read("#{File.dirname(__FILE__)}/README.rdoc")
|
16
17
|
|
17
18
|
s.add_dependency 'highline'
|
18
19
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Macario Ortega
|
@@ -30,10 +30,9 @@ dependencies:
|
|
30
30
|
version: "0"
|
31
31
|
type: :runtime
|
32
32
|
version_requirements: *id001
|
33
|
-
description:
|
33
|
+
description: |-
|
34
34
|
Live is like IRC only it is meant to be used from a text editor, it essentially polls a *nix pipe and evaluates its contents.
|
35
35
|
It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.
|
36
|
-
|
37
36
|
email:
|
38
37
|
- macarui@gmail.com
|
39
38
|
executables:
|
@@ -53,10 +52,46 @@ files:
|
|
53
52
|
- lib/live/version.rb
|
54
53
|
- live.gemspec
|
55
54
|
has_rdoc: true
|
56
|
-
homepage:
|
55
|
+
homepage: http://github.com/maca/live
|
57
56
|
licenses: []
|
58
57
|
|
59
|
-
post_install_message:
|
58
|
+
post_install_message: |+
|
59
|
+
Live
|
60
|
+
====
|
61
|
+
|
62
|
+
Live is like IRC only it is meant to be used from a text editor, it essentially polls a *nix pipe and evaluates its contents.
|
63
|
+
It was devised for audiovisual livecoding (ruby-processing and scruby), a block can be bound to a key and can be called later by a keystroke.
|
64
|
+
|
65
|
+
Usage
|
66
|
+
-----
|
67
|
+
|
68
|
+
$ live
|
69
|
+
|
70
|
+
open a new terminal
|
71
|
+
|
72
|
+
$ echo 'hello' > /tmp/live-rb
|
73
|
+
|
74
|
+
You will see the code evaluated in the first terminal
|
75
|
+
|
76
|
+
$ echo 'bind_key(:a){ 'key a was pressed' }' > /tmp/live-rb
|
77
|
+
|
78
|
+
When you press the key 'a' with focus on the first terminal it will call the block
|
79
|
+
|
80
|
+
Vim
|
81
|
+
---
|
82
|
+
|
83
|
+
To use from vim paste this in your .vimrc file
|
84
|
+
|
85
|
+
function EvalLiveRuby() range
|
86
|
+
let text = [join(getline(a:firstline, a:lastline), ';')]
|
87
|
+
return writefile(text, '/tmp/live-rb')
|
88
|
+
endfunction
|
89
|
+
|
90
|
+
map <Leader>x :call EvalLiveRuby()<enter>
|
91
|
+
|
92
|
+
Then by pressing leader and x you will execute the range in the live session
|
93
|
+
|
94
|
+
|
60
95
|
rdoc_options: []
|
61
96
|
|
62
97
|
require_paths:
|