Skip to content

Commit 5b63b33

Browse files
authored
Merge branch 'master' into compatibility
2 parents 34bdbe7 + e5800f1 commit 5b63b33

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<extension>
44
<groupId>io.takari.polyglot</groupId>
55
<artifactId>polyglot-ruby</artifactId>
6-
<version>0.3.0</version>
6+
<version>0.3.1</version>
77
</extension>
88
</extensions>

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
**v2.6.6** Using a modified processing-core to support jdk9 (NB FX2D and sketches with control_panel using sliders are still expected to fail with jdk9). Jdk8 users should not notice any change.
1010

11-
**v2.6.5** bump for processing-3.3.7
11+
**v2.6.5** bump for processing-3.4
1212

1313
**v2.6.4** Vec2D and Vec3D now support `copy` constructor where the original can be a duck-type. Further the only requirement is that the duck-type responds to `:x`, and `:y` by returning a `float` or `fixnum` thus Vec2D can be promoted to Vec3D (where `z = 0`), or more usually some other Vector or Point class can be used as the original. A VectorUtils library has been implemented, see examples for usage.
1414

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Propane
22
To build custom core see [processing-core][processing-core]
33

4-
A slim layer to communicate with Processing from JRuby, features a polyglot maven build. We have created a configuration free version of ruby processing, for processing-3.3.7, where we include a modified processing core (`public runPropane()` to replace `protected runSketch()`, (_runSketch not currently usable with jruby and jdk 9_). These jars are small enough to include in a gem distribution, and hence we do not require configuration. This has created a scriptable version, ie files get run direct from jruby, but you could use jruby-complete if you used the propane script (avoids need to give the absolute data path for the data folder, but would also be needed for a watch mode). See guide to [building ruby-processing projects][building]. NB: this is a far from perfect solution and javafx sketches and possibly a feew others still fail to run with jdk9, but a least I get to diagnose those errors too.
4+
A slim layer to communicate with Processing from JRuby, features a polyglot maven build. We have created a configuration free version of ruby processing, for processing-3.4, where we include a modified processing core (`public runPropane()` to replace `protected runSketch()`, (_runSketch not currently usable with jruby and jdk 9_). These jars are small enough to include in a gem distribution, and hence we do not require configuration. This has created a scriptable version, ie files get run direct from jruby, but you could use jruby-complete if you used the propane script (avoids need to give the absolute data path for the data folder, but would also be needed for a watch mode). See guide to [building ruby-processing projects][building]. NB: this is a far from perfect solution and javafx sketches and possibly a feew others still fail to run with jdk9, but a least I get to diagnose those errors too.
55

66
adjust above for your OS/distro setup.
77

library/slider/slider.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
java_import 'monkstone.slider.CustomHorizontalSlider'
66
java_import 'monkstone.slider.CustomVerticalSlider'
77

8+
# Slider module
89
module Slider
910
def self.slider(app:, x:, y:, name:, **opts)
1011
options = default.merge opts
@@ -35,7 +36,7 @@ def self.slider(app:, x:, y:, name:, **opts)
3536
end
3637
slider
3738
end
38-
39+
3940
def self.default
4041
{ length: 100, range: (0..100) }
4142
end

pom.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
'jogl.version' => '2.3.2'
3939
)
4040

41-
pom 'org.jruby:jruby:9.1.16.0'
42-
jar 'com.apple.eawt:apple:1.0'
41+
pom 'org.jruby:jruby:9.2.0.0'
42+
jar 'org.processing:core:3.3.7'
4343
jar 'org.processing:video:3.0.2'
4444
jar('org.jogamp.jogl:jogl-all:${jogl.version}')
4545
jar('org.jogamp.gluegen:gluegen-rt-main:${jogl.version}')
@@ -92,7 +92,7 @@
9292
)
9393
end
9494

95-
plugin( :compiler, '3.7.0',
95+
plugin( :compiler, '3.8.0',
9696
source: '${maven.compiler.source}',
9797
target: '${maven.compiler.target}'
9898
)

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ DO NOT MODIFIY - GENERATED CODE
8383
<dependency>
8484
<groupId>org.jruby</groupId>
8585
<artifactId>jruby</artifactId>
86-
<version>9.1.16.0</version>
86+
<version>9.2.0.0</version>
8787
<type>pom</type>
8888
</dependency>
8989
<dependency>
@@ -194,7 +194,7 @@ DO NOT MODIFIY - GENERATED CODE
194194
</plugin>
195195
<plugin>
196196
<artifactId>maven-compiler-plugin</artifactId>
197-
<version>3.7.0</version>
197+
<version>3.8.0</version>
198198
<configuration>
199199
<source>${maven.compiler.source}</source>
200200
<target>${maven.compiler.target}</target>

propane.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
1212
gem.description = <<-EOS
1313
A batteries included version of processing in ruby, for MacOS and linux64.
1414
EOS
15-
gem.summary = %q{ruby wrapper for processing-3.3.7 on MacOS and linux64 bit only for opengl}
15+
gem.summary = %q{ruby wrapper for processing-3.4 on MacOS and linux64 bit only for opengl}
1616
gem.homepage = 'https://ruby-processing.github.io/propane/'
1717
gem.files = `git ls-files`.split($/)
1818
gem.files << 'lib/propane-2.9.0.jar'

0 commit comments

Comments
 (0)