Skip to content

Commit 9e551e6

Browse files
committed
update rakefiles to use in place of
1 parent cfe6c40 commit 9e551e6

File tree

31 files changed

+34
-32
lines changed

31 files changed

+34
-32
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# JRubyArt-examples for JRubyArt-1.1+
1+
# JRubyArt-examples for JRubyArt-1.2.0.pre
22
JRubyArt-examples
33
================
44

5+
Rakefiles amended to use `-r` in place of `run`
6+
57
Many of the vanilla processing example sketches have been translated to ruby-processing, and they are mainly written as 'bare' sketches (ie not class wrapped) in keeping with the original processing. At runtime these sketches the get wrapped into a Sketch class. Should you prefer you can still write class wrapped sketches, these will work equally well with jruby_art. You should also checkout the [Nature of Code Examples in ruby][] and for the beginner [Learning Processing with Ruby][] for even more examples.
68
Includes autorun Rakefiles:-
79

contributed/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", 'r') do |io|
25+
open("|k9 -r #{sample_name}", 'r') do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

external_library/java/hype/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/color/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/control/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/data/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/form/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/image/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 --nojruby run #{sample_name}", "r") do |io|
25+
open("|k9 run #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/input/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

processing_app/basics/lights/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ end
2222

2323
def run_sample(sample_name)
2424
puts "Running #{sample_name}...quit to run next sample"
25-
open("|k9 run #{sample_name}", "r") do |io|
25+
open("|k9 -r #{sample_name}", "r") do |io|
2626
while l = io.gets
2727
puts(l.chop)
2828
end

0 commit comments

Comments
 (0)