Skip to content

Commit

Permalink
Merge pull request #20 from ruby-processing/refactor_options
Browse files Browse the repository at this point in the history
Refactor runner.rb to use optparse and various knock on effects
  • Loading branch information
monkstone authored Jul 19, 2016
2 parents eb46bf2 + c60847f commit 4ae09a8
Show file tree
Hide file tree
Showing 18 changed files with 539 additions and 604 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ addons:
-oracle-java8-installer

rvm:
- jruby-head
- jruby-9.1.2.0
jdk:
- oraclejdk8
os:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

**v1.2.0.pre** Use optparse to parse command line options, and related re-factoring. Avoid casting to java Double and Integer and using `to_java` for primitives in jruby extensions.

**v1.1.3** Revert using String refinements in `creator.rb`. Refactor java options to `java_opts.rb`.

**v1.1.2** Refactor `runner.rb` to `runner.rb`, `args.rb` and `installer.rb`. The `Installer` classes have the role of installing `jruby-complete`, the examples and providing `setup check` functionality. Refactored and improved default `config.yml` tool, all should make it easier for `collaborators/successors` to follow the code. Refactored `Vec2D` and `Vec3D` `==` and `eql?` methods. New `chooser` library makes it possible to use `select_input` reflection method.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JRubyArt
[![Gem Version](https://badge.fury.io/rb/jruby_art.svg)](http://badge.fury.io/rb/jruby_art)
![Travis CI](https://travis-ci.org/ruby-processing/JRubyArt.svg)

See [alternative website](http://ruby-processing.github.io/JRubyArt/)
## Requirements
A clean start for `jruby_art` that works best with the latest version of [processing-3.1.1](https://github.com/processing/processing/releases) and [jruby-9.1.2.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][].
## Requirements
Expand Down
10 changes: 5 additions & 5 deletions jruby_art.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ Gem::Specification.new do |spec|
spec.email = 'mamba2928@yahoo.co.uk'
spec.description = <<-EOS
JRubyArt is a ruby wrapper for the processing art framework.
This version supports processing-3.1.1, and uses jruby-9.1.2.0 as the glue
between ruby and java. You can use both processing libraries and ruby gems
in your sketches. Features create/run/watch/live modes. The "watch" mode,
This version uses 'optparse', run becomes --run (or -r) and 'setup install'
becomes '--install' or (-i) etc. Use both processing libraries and ruby gems
in your sketches. Features create/run/watch/live modes. The "--watch" mode,
provides a nice REPL-ish way to work on your processing sketches. Includes:-
A "Control Panel" library, so that you can easily create sliders, buttons,
checkboxes and drop-down menus, and hook them into your sketch's instance
variables and hundreds of worked examples to get you started...
EOS
spec.summary = %q{Code as Art, Art as Code. Processing and Ruby are meant for each other.}
spec.homepage = "https://ruby-processing.github.io/"
spec.post_install_message = %q{Use 'k9 setup install' to install jruby-complete, and 'k9 setup check' to check config.}
spec.homepage = "http://ruby-processing.github.io/JRubyArt/"
spec.post_install_message = %q{Use 'k9 --install' to install jruby-complete, and 'k9 --check' to check config.}
spec.license = 'MIT'

spec.files = FileList['bin/**/*', 'lib/**/*', 'library/**/*', 'samples/**/*', 'vendors/Rakefile'].exclude(/jar/).to_a
Expand Down
277 changes: 0 additions & 277 deletions lib/jruby_art/creators/creator.rb

This file was deleted.

Loading

0 comments on commit 4ae09a8

Please sign in to comment.