toxiclibs 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.mvn/extensions.xml +1 -1
- data/.travis.yml +1 -14
- data/CHANGELOG.md +6 -1
- data/README.md +2 -2
- data/examples/README.md +1 -5
- data/examples/Rakefile +30 -0
- data/examples/povmesh/tentacle.rb +2 -2
- data/lib/toxiclibs/version.rb +2 -1
- data/pom.rb +4 -4
- data/pom.xml +4 -4
- data/toxiclibs.gemspec +2 -4
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b5be8e0c573faa23ad02a558c77445478237fc5
|
4
|
+
data.tar.gz: 659987a4e12ab43503a3c32ada380f305650df44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d3bb17683c238ff3a24d1e15fec9fe18e889583b7af082ef7551fca66ed547b76f6b022ac3c383a1ae2adf4360ce296e98190ba53b51810012668af5d47565
|
7
|
+
data.tar.gz: 6a4a3769dd0a2edcd23b765375702a62b79a2ba3bdc6813ec81ae46fee66e1acd13d6a16617aa91328fc13bed930c6be3315bfc630c57dded27f1f10dbb6b09e
|
data/.mvn/extensions.xml
CHANGED
data/.travis.yml
CHANGED
@@ -2,22 +2,9 @@ sudo: false
|
|
2
2
|
|
3
3
|
language: ruby
|
4
4
|
|
5
|
-
bundler_args: --without production
|
6
|
-
|
7
|
-
addons:
|
8
|
-
apt:
|
9
|
-
packages:
|
10
|
-
- oracle-java8-installer
|
11
|
-
|
12
5
|
rvm:
|
13
|
-
- jruby-
|
6
|
+
- jruby-9.1.1.0
|
14
7
|
|
15
8
|
jdk:
|
16
9
|
- oraclejdk8
|
17
10
|
|
18
|
-
env:
|
19
|
-
- JRUBY_OPTS="$JRUBY_OPTS" JAVA_OPTS="-Djruby.version=$JRUBY_VERSION"
|
20
|
-
|
21
|
-
before_script:
|
22
|
-
- export JRUBY_OPTS="-Xcext.enabled=false -Xcompile.invokedynamic=false"
|
23
|
-
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
|
2
|
+
**v0.9.0** Updated maven artifacts, somewhat arbitarily require JRubyArt-1.2+
|
3
|
+
|
4
|
+
**v0.8.0** Use `data_path`
|
5
|
+
|
1
6
|
**v0.7.0** Use polyglot maven build
|
2
7
|
|
3
|
-
**v0.6.0** Some corrections to the Rect and Vec3D contains logic (mea culpa,
|
8
|
+
**v0.6.0** Some corrections to the Rect and Vec3D contains logic (mea culpa, caused by injudicious refactoring)
|
4
9
|
|
5
10
|
**v0.5.0** New version toxiclibs update to use jdk8 syntax, require jdk8 and probably therefore JRubyArt only new MeshToVBO class.
|
6
11
|
|
data/README.md
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
gem install toxiclibs
|
8
8
|
```
|
9
9
|
|
10
|
-
### NB: Use version 0.4 for ruby-processing
|
10
|
+
### NB: Use version 0.4 for ruby-processing, and 0.8 prior to JRubyArt-1.2.0
|
11
11
|
|
12
|
-
|
12
|
+
This gem provides Karsten Schmidts (aka toxi, @postspectacular) toxiclibs jars for JRubyArt. To compile the gem follow the instructions for [JRubyArt][]. Most parts of toxiclibs API is exposed in the latest version, (but only a few examples are included) in principle it should be possible to make all available!!! For this demonstration I have used up to date source code for version 21, since [toxis final release][] may never materialise (he's probably got more interesting things to do). There are reported to be number of outstanding bugs with toxiclibs, if they affect you report it [here][] (or better fix them yourself and submit a pull request). Version 0.9.0+ features java code updated to use java lambda (jdk8) and was compiled against processing-3.1.1 core.jar.
|
13
13
|
|
14
14
|

|
15
15
|
|
data/examples/README.md
CHANGED
@@ -1,5 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
`physics_type.rb`
|
4
|
-
|
5
|
-
`gray_scott_image.rb`
|
1
|
+
Since JRubyArt-1.1 the use of the `data_path` wrapper (provides absolute path to data folder) this should be used, or image/shader sketches will need to be run with jruby-complete (by setting `JRUBY: false` in `~/jruby_art/config.yml`). This a java permission thing...
|
data/examples/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Simple demo Rakefile to autorun samples in current directory
|
2
|
+
# adjust path to rp5 executable, and or opts as required
|
3
|
+
|
4
|
+
SAMPLES_DIR = './'
|
5
|
+
|
6
|
+
desc 'run demo'
|
7
|
+
task default: [:demo]
|
8
|
+
|
9
|
+
desc 'demo'
|
10
|
+
task :demo do
|
11
|
+
samples_list.shuffle.each { |sample| run_sample sample }
|
12
|
+
end
|
13
|
+
|
14
|
+
def samples_list
|
15
|
+
files = []
|
16
|
+
Dir.chdir(SAMPLES_DIR)
|
17
|
+
Dir.glob('*.rb').each do |file|
|
18
|
+
files << File.join(SAMPLES_DIR, file)
|
19
|
+
end
|
20
|
+
files
|
21
|
+
end
|
22
|
+
|
23
|
+
def run_sample(sample_name)
|
24
|
+
puts "Running #{sample_name}...quit to run next sample"
|
25
|
+
open("|k9 --run #{sample_name}", 'r') do |io|
|
26
|
+
while l = io.gets
|
27
|
+
puts(l.chop)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
def setup
|
13
13
|
sketch_title 'Tentacle'
|
14
|
-
@tex = load_image('mask.jpg')
|
14
|
+
@tex = load_image(data_path('mask.jpg'))
|
15
15
|
ArcBall.init(self)
|
16
16
|
@gfx = Gfx::MeshToVBO.new(self)
|
17
17
|
volume = VolumetricSpaceArray.new(TVec3D.new(100, 200, 100), 100, 100, 100)
|
@@ -61,7 +61,7 @@ def key_pressed
|
|
61
61
|
fileID = 'Tentacle'
|
62
62
|
pm = Gfx::POVMesh.new(self)
|
63
63
|
pm.begin_save(java.io.File.new(fileID + '.inc'))
|
64
|
-
pm.set_texture(Gfx::Textures::RED)
|
64
|
+
pm.set_texture(Gfx::Textures::RED) # red with Phong texture
|
65
65
|
pm.saveAsPOV(mesh, true)
|
66
66
|
pm.end_save
|
67
67
|
exit
|
data/lib/toxiclibs/version.rb
CHANGED
data/pom.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
project 'toxiclibs' do
|
2
2
|
|
3
3
|
model_version '4.0.0'
|
4
|
-
id 'ruby-processing:toxiclibs:0.
|
4
|
+
id 'ruby-processing:toxiclibs:0.9.0'
|
5
5
|
packaging 'jar'
|
6
6
|
|
7
7
|
description 'toxiclibs-library for JRubyArt'
|
@@ -30,12 +30,12 @@ project 'toxiclibs' do
|
|
30
30
|
|
31
31
|
jar 'org.jogamp.joal:joal-main:2.3.1'
|
32
32
|
jar 'args4j:args4j:2.0.31'
|
33
|
-
jar 'org.processing:core:3.1'
|
33
|
+
jar 'org.processing:core:3.1.1'
|
34
34
|
|
35
|
-
plugin( :compiler, '3.
|
35
|
+
plugin( :compiler, '3.5.1',
|
36
36
|
'source' => '1.8',
|
37
37
|
'target' => '1.8' )
|
38
|
-
plugin( :jar, '2
|
38
|
+
plugin( :jar, '3.0.2',
|
39
39
|
'archive' => {
|
40
40
|
'manifestFile' => 'MANIFEST.MF'
|
41
41
|
} )
|
data/pom.xml
CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
11
11
|
<modelVersion>4.0.0</modelVersion>
|
12
12
|
<groupId>ruby-processing</groupId>
|
13
13
|
<artifactId>toxiclibs</artifactId>
|
14
|
-
<version>0.
|
14
|
+
<version>0.9.0</version>
|
15
15
|
<name>toxiclibs</name>
|
16
16
|
<description>toxiclibs-library for JRubyArt</description>
|
17
17
|
<organization>
|
@@ -63,7 +63,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
63
63
|
<dependency>
|
64
64
|
<groupId>org.processing</groupId>
|
65
65
|
<artifactId>core</artifactId>
|
66
|
-
<version>3.1</version>
|
66
|
+
<version>3.1.1</version>
|
67
67
|
</dependency>
|
68
68
|
</dependencies>
|
69
69
|
<build>
|
@@ -73,7 +73,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
73
73
|
<plugins>
|
74
74
|
<plugin>
|
75
75
|
<artifactId>maven-compiler-plugin</artifactId>
|
76
|
-
<version>3.
|
76
|
+
<version>3.5.1</version>
|
77
77
|
<configuration>
|
78
78
|
<source>1.8</source>
|
79
79
|
<target>1.8</target>
|
@@ -81,7 +81,7 @@ DO NOT MODIFIY - GENERATED CODE
|
|
81
81
|
</plugin>
|
82
82
|
<plugin>
|
83
83
|
<artifactId>maven-jar-plugin</artifactId>
|
84
|
-
<version>2
|
84
|
+
<version>3.0.2</version>
|
85
85
|
<configuration>
|
86
86
|
<archive>
|
87
87
|
<manifestFile>MANIFEST.MF</manifestFile>
|
data/toxiclibs.gemspec
CHANGED
@@ -10,9 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.extra_rdoc_files = %w{README.md LICENSE.md}
|
11
11
|
spec.summary = %q{Updated and extended toxiclibs libraries for JRubyArt}
|
12
12
|
spec.description =<<-EOS
|
13
|
-
Toxiclibs java libraries wrapped in a rubygem.
|
14
|
-
java lambda expressions (available since jdk8). Latest version compiled
|
15
|
-
and tested with JRubyArt-1.1 and processing-3.1.
|
13
|
+
Toxiclibs java libraries wrapped in a rubygem. Compiled and tested with JRubyArt-1.2.0 and processing-3.1.1
|
16
14
|
EOS
|
17
15
|
spec.licenses = %w{MIT LGPL-3.0}
|
18
16
|
spec.authors = %w{Karsten\ Schmidt Martin\ Prout}
|
@@ -23,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
23
21
|
spec.files << 'lib/args4j-2.0.31.jar'
|
24
22
|
spec.files << 'lib/joal-2.3.1.jar'
|
25
23
|
spec.require_paths = ['lib']
|
26
|
-
spec.add_dependency 'jruby_art', '~> 1.
|
24
|
+
spec.add_dependency 'jruby_art', '~> 1.2'
|
27
25
|
spec.add_development_dependency 'rake', '~> 11.1', '>= 11.1.1'
|
28
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toxiclibs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karsten Schmidt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jruby_art
|
@@ -17,20 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.1.0
|
20
|
+
version: '1.2'
|
24
21
|
type: :runtime
|
25
22
|
prerelease: false
|
26
23
|
version_requirements: !ruby/object:Gem::Requirement
|
27
24
|
requirements:
|
28
25
|
- - "~>"
|
29
26
|
- !ruby/object:Gem::Version
|
30
|
-
version: '1.
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.0
|
27
|
+
version: '1.2'
|
34
28
|
- !ruby/object:Gem::Dependency
|
35
29
|
name: rake
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,9 +45,8 @@ dependencies:
|
|
51
45
|
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 11.1.1
|
54
|
-
description: " Toxiclibs java libraries wrapped in a rubygem.
|
55
|
-
|
56
|
-
tested with JRubyArt-1.1 and processing-3.1.\n"
|
48
|
+
description: " Toxiclibs java libraries wrapped in a rubygem. Compiled and tested
|
49
|
+
with JRubyArt-1.2.0 and processing-3.1.1\n"
|
57
50
|
email: mamba2928@yahoo.co.uk
|
58
51
|
executables: []
|
59
52
|
extensions: []
|
@@ -73,6 +66,7 @@ files:
|
|
73
66
|
- README.md
|
74
67
|
- Rakefile
|
75
68
|
- examples/README.md
|
69
|
+
- examples/Rakefile
|
76
70
|
- examples/attract_repel/attract_repel.rb
|
77
71
|
- examples/attract_repel/attractor.rb
|
78
72
|
- examples/attract_repel/particle.rb
|