File tree Expand file tree Collapse file tree 5 files changed +24
-6
lines changed
Expand file tree Collapse file tree 5 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ task default: %i[init compile install test gem]
99# Currently depends on local jogl-2.4.0 jars on path ~/jogl24
1010desc 'Copy Jars'
1111task :init do
12- jogl24 = File . join ( HOME_DIR , 'jogl-2.4-rc2021011 ' )
12+ jogl24 = File . join ( HOME_DIR , 'jogl24 ' )
1313 opengl = Dir . entries ( jogl24 ) . grep ( /amd64|armv6hf|aarch64/ ) . select { |jar | jar =~ /linux/ }
1414 opengl . concat %w[ jogl-all.jar gluegen-rt.jar ]
1515 opengl . each do |gl |
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
3333 gem . test_files = gem . files . grep ( %r{^(test|spec|features)/} )
3434 gem . add_development_dependency 'minitest' , '~> 5.14'
3535 gem . add_runtime_dependency 'rake' , '~> 13.0'
36- gem . add_runtime_dependency 'arcball' , '~> 1.1' , '>= 1.1.1 '
36+ gem . add_runtime_dependency 'arcball' , '~> 1.2 '
3737 gem . require_paths = [ 'lib' ]
3838 gem . platform = 'java'
3939 gem . requirements << 'java runtime == 11+'
Original file line number Diff line number Diff line change 2424 issue_management 'https://github.com/ruby-processing/PiCrate/issues' , 'Github'
2525 # Need to update to jogl 2.4.1 as soon as available, then make a dependency
2626 properties ( 'jogl.version' => '2.3.2' ,
27+ 'jruby.version' => '9.3.0.0' ,
2728 'batik.version' => '1.14' ,
2829 'itextpdf.version' => '5.5.13.2' ,
2930 'jruby.api' => 'http://jruby.org/apidocs/' ,
3334 'project.build.sourceEncoding' => 'UTF-8' ,
3435 'polyglot.dump.pom' => 'pom.xml' )
3536
36- pom 'org.jruby:jruby:9.2.19 .0'
37+ jar 'org.jruby:jruby-base :9.3.0 .0'
3738 jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
3839 jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
3940 jar 'org.processing:video:3.0.2'
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ DO NOT MODIFY - GENERATED CODE
6868 <itextpdf .version>5.5.13.2</itextpdf .version>
6969 <jogl .version>2.3.2</jogl .version>
7070 <jruby .api>http://jruby.org/apidocs/</jruby .api>
71+ <jruby .version>9.3.0.0</jruby .version>
7172 <picrate .basedir>${project.basedir} </picrate .basedir>
7273 <polyglot .dump.pom>pom.xml</polyglot .dump.pom>
7374 <processing .api>http://processing.github.io/processing-javadocs/core/</processing .api>
@@ -77,9 +78,8 @@ DO NOT MODIFY - GENERATED CODE
7778 <dependencies >
7879 <dependency >
7980 <groupId >org.jruby</groupId >
80- <artifactId >jruby</artifactId >
81- <version >9.2.19.0</version >
82- <type >pom</type >
81+ <artifactId >jruby-base</artifactId >
82+ <version >9.3.0.0</version >
8383 </dependency >
8484 <dependency >
8585 <groupId >org.jogamp.jogl</groupId >
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ require_relative 'test_helper'
4+
5+ Java ::Monkstone ::PicrateLibrary . new . load ( JRuby . runtime , false )
6+
7+ # include Processing::HelperMethods
8+
9+ Dir . chdir ( File . dirname ( __FILE__ ) )
10+ # Test processing map functions
11+ class ProcessingNoiseTest < Minitest ::Test
12+ include NoiseModule
13+ def test_noise1d
14+ x = 0.5
15+ assert_in_delta ( noise ( x ) , 0.5 , 0.00001 )
16+ end
17+ end
You can’t perform that action at this time.
0 commit comments