Skip to content

Commit c4a9a53

Browse files
committed
update README.md
1 parent b3befb7 commit c4a9a53

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
![Travis CI](https://travis-ci.org/ruby-processing/JRubyArt.svg)
55
Versions before JRubyArt-1.2.0, are unsupported, please update, preferably to latest version...
66

7-
_Note the main reason for the current build to fail on travis is when the current version of [processing is not available from maven central][testing], it has only ever been available by third parties (I am eternally hopeful that one day processing.org will see the light)._
7+
_Note the main reason for the current build to fail on travis is when the current version of [processing is not available from maven central][testing], it has only ever been available by third parties (I am eternally hopeful that one day processing.org will see the light), actually rvm with jruby as used by travis-ci is also pretty crap as judged by the build traces._
88

99
## Requirements
10-
A clean start for `jruby_art` that works best with the latest version of [processing-3.2.2](https://github.com/processing/processing/releases) and [jruby-9.1.5.0](http://jruby.org/download) see [wiki](https://github.com/ruby-processing/JRubyArt/wiki/Building-latest-gem) for building gem from this repo. Changes from processing- 2.0 to [processing-3.0 here](https://github.com/processing/processing/wiki/Changes-in-3.0). Should work on same platforms as vanilla processing (windows, mac, linux) for Android see Yuki Morohoshi [rubuto-processing3][].
10+
A clean start for `jruby_art` that works best with the latest version of [processing-3.2.3](https://github.com/processing/processing/releases) and [jruby-9.1.6.0](http://jruby.org/download) see [wiki](https://github.com/ruby-processing/JRubyArt/wiki/Building-latest-gem) for building gem from this repo. Changes from processing- 2.0 to [processing-3.0 here](https://github.com/processing/processing/wiki/Changes-in-3.0). Should work on same platforms as vanilla processing (windows, mac, linux) for Android see Yuki Morohoshi [rubuto-processing3][].
1111
## Requirements
12-
13-
A suitable version of ruby (MRI ruby > 2.2 or `jruby-9.1.5.0+`) to download gem.
1412

15-
`processing-3.2.2`
13+
A suitable version of ruby (MRI ruby > 2.3 or `jruby-9.1.6.0+`) to download gem.
14+
15+
`processing-3.2.3`
1616

1717
`jdk1.8.0_102+` can be openjdk with OpenJFX _a separate download works on ArchLinux_, currently FX2D is experimental is expected to replace JAVA2D in the near future see changes above...
1818

@@ -28,13 +28,13 @@ You can if you wish leave configuration to the `new` autoconfig tool (delete exi
2828
```yaml
2929
# YAML configuration file for jruby_art
3030
# K9_HOME: "/home/ruby2.3.0 ... /jruby_art" # windows users may need to set this
31-
PROCESSING_ROOT: "/home/tux/processing-3.2.2" # typical linux shown
31+
PROCESSING_ROOT: "/home/tux/processing-3.2.3" # typical linux shown
3232
# important sketch_book path may be different for processing-3.0
33-
sketchbook_path: "/home/tux/sketchbook"
34-
template: emacs
33+
sketchbook_path: "/home/tux/sketchbook"
34+
template: bare
3535
```
3636
37-
## Install Steps (assumes you have requirements above)
37+
## Install Steps (assumes you have requirements above)
3838
3939
```bash
4040
gem install jruby_art
@@ -64,10 +64,10 @@ def draw
6464
end
6565

6666
# NB: changes for processing-3.0+
67-
# size, full_screen, pixel_density and smooth should all be moved to settings (this is hidden
68-
# to users of processing ide, but not for JRubyArt, or for Eclipse NetBeans users). The FX2D
69-
# rendering mode was introduced, and was expected to replace JAVA2D (as default rendering mode)
70-
# but may not now happen, and not for processing-3.2.2 in any case.
67+
# size, full_screen, pixel_density and smooth should all be moved to settings (this is hidden
68+
# to users of processing ide, but not for JRubyArt, or for Eclipse NetBeans users). The FX2D
69+
# rendering mode was introduced, and was expected to replace JAVA2D (as default rendering mode)
70+
# but may not now happen, and not for processing-3.2.3 in any case.
7171
def settings
7272
size 400, 300
7373
end

lib/jruby_art/command.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ def initialize(runner:, args:, filename:)
1818
# of our vendored one. Note the use of jruby-complete might make using
1919
# other gems in your sketches hard (but not impossible)....
2020
def cmd(root)
21-
cmda = jruby_command(Processing::RP_CONFIG.fetch('JRUBY', true), root)
21+
cmda = jruby_command(root)
2222
begin
23-
puts *cmda
2423
exec(*cmda)
2524
# exec replaces the Ruby process with the JRuby one.
2625
rescue Java::JavaLang::ClassNotFoundException
@@ -30,8 +29,10 @@ def cmd(root)
3029
private
3130

3231
# avoiding multiline ternary etc
33-
def jruby_command(installed, root)
34-
return ['jruby', JRubyOpts.new(root).opts, runner, filename, args].flatten if installed
32+
def jruby_command(root)
33+
installed = Processing::RP_CONFIG.fetch('JRUBY', true)
34+
opts = JRubyOpts.new(root).opts
35+
return ['jruby', opts, runner, filename, args].flatten if installed
3536
opts = JavaOpts.new(root).opts
3637
complete = JRubyComplete.complete
3738
['java', opts, '-cp', complete, 'org.jruby.Main', runner, filename, args].flatten

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ DO NOT MODIFIY - GENERATED CODE
5656
<dependency>
5757
<groupId>org.processing</groupId>
5858
<artifactId>core</artifactId>
59-
<version>3.2.3</version>
59+
<version>3.2.1</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>org.processing</groupId>

0 commit comments

Comments
 (0)