File tree 5 files changed +24
-6
lines changed
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]
9
9
# Currently depends on local jogl-2.4.0 jars on path ~/jogl24
10
10
desc 'Copy Jars'
11
11
task :init do
12
- jogl24 = File . join ( HOME_DIR , 'jogl-2.4-rc2021011 ' )
12
+ jogl24 = File . join ( HOME_DIR , 'jogl24 ' )
13
13
opengl = Dir . entries ( jogl24 ) . grep ( /amd64|armv6hf|aarch64/ ) . select { |jar | jar =~ /linux/ }
14
14
opengl . concat %w[ jogl-all.jar gluegen-rt.jar ]
15
15
opengl . each do |gl |
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
33
33
gem . test_files = gem . files . grep ( %r{^(test|spec|features)/} )
34
34
gem . add_development_dependency 'minitest' , '~> 5.14'
35
35
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 '
37
37
gem . require_paths = [ 'lib' ]
38
38
gem . platform = 'java'
39
39
gem . requirements << 'java runtime == 11+'
Original file line number Diff line number Diff line change 24
24
issue_management 'https://github.com/ruby-processing/PiCrate/issues' , 'Github'
25
25
# Need to update to jogl 2.4.1 as soon as available, then make a dependency
26
26
properties ( 'jogl.version' => '2.3.2' ,
27
+ 'jruby.version' => '9.3.0.0' ,
27
28
'batik.version' => '1.14' ,
28
29
'itextpdf.version' => '5.5.13.2' ,
29
30
'jruby.api' => 'http://jruby.org/apidocs/' ,
33
34
'project.build.sourceEncoding' => 'UTF-8' ,
34
35
'polyglot.dump.pom' => 'pom.xml' )
35
36
36
- pom 'org.jruby:jruby:9.2.19 .0'
37
+ jar 'org.jruby:jruby-base :9.3.0 .0'
37
38
jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
38
39
jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
39
40
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
68
68
<itextpdf .version>5.5.13.2</itextpdf .version>
69
69
<jogl .version>2.3.2</jogl .version>
70
70
<jruby .api>http://jruby.org/apidocs/</jruby .api>
71
+ <jruby .version>9.3.0.0</jruby .version>
71
72
<picrate .basedir>${project.basedir} </picrate .basedir>
72
73
<polyglot .dump.pom>pom.xml</polyglot .dump.pom>
73
74
<processing .api>http://processing.github.io/processing-javadocs/core/</processing .api>
@@ -77,9 +78,8 @@ DO NOT MODIFY - GENERATED CODE
77
78
<dependencies >
78
79
<dependency >
79
80
<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 >
83
83
</dependency >
84
84
<dependency >
85
85
<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