Skip to content

Commit 12c9d6f

Browse files
committed
update
1 parent 6ca837d commit 12c9d6f

38 files changed

Lines changed: 5754 additions & 5182 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### v0.8.0
2+
3+
Update for JRubyArt-1.1+ and processing-3.1+
4+
15
### v0.7.0
26

37
A strike for independence, now building from source using polyglot maven

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Copyright (c) 2014 Daniel Shiffman
3030

3131
This gem was created by Martin Prout
3232

33-
Copyright (c) 2015 Martin Prout
33+
Copyright (c) 2015/16 Martin Prout
3434

3535
### To compile
3636

lib/pbox2d.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
end
66

77
ContactListener = Java::OrgJbox2dCallbacks::ContactListener
8+
ContactAdaptor = Java::OrgJbox2dCallbacks::ContactAdaptor
89

910
def import_class_list(list, string)
1011
list.each { |d| java_import format(string, d) }

lib/pbox2d/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# module to give version a namespace
22
module Pbox2d
3-
VERSION = '0.7.0'
3+
VERSION = '0.8.0'
44
end

pbox2d.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
1010
spec.has_rdoc = true
1111
spec.extra_rdoc_files = ['README.md', 'LICENSE.md']
1212
spec.authors = ['Martin Prout']
13-
spec.email = ['martin_p@lineone.net']
13+
spec.email = ['mamba2928@yahoo.co.uk']
1414
spec.summary = %q{jbox2d wrapped in a gem for JRubyArt}
1515
spec.description = <<-EOF
1616
"An exemplar for making processing/java libraries available as a gem, for use
@@ -21,8 +21,8 @@ EOF
2121
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
2222
spec.files << 'lib/box2d.jar'
2323
spec.require_paths = ['lib']
24-
spec.add_dependency 'jruby_art', '~> 1.0', '>= 1.0.4'
25-
spec.add_development_dependency "rake", "~> 10.0"
24+
spec.add_dependency 'jruby_art', '~> 1.1', '>= 1.1.1'
25+
spec.add_development_dependency "rake", "~> 11.1"
2626
spec.add_development_dependency "minitest", "~> 5.8"
2727
spec.platform='java'
2828
end

pom.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
project 'pbox2d', 'https://github.com/ruby-processing/jbox2d' do
33

44
model_version '4.0.0'
5-
id 'ruby-processing:pbox2d', '0.7'
5+
id 'ruby-processing:pbox2d', '0.8'
66
packaging 'jar'
77

88
description 'jbox2d for JRubyArt'
@@ -33,8 +33,8 @@
3333
'jruby.api' => "http://jruby.org/apidocs/"
3434
)
3535

36-
pom 'org.jruby:jruby:9.0.5.0'
37-
jar 'org.processing:core:3.0.1'
36+
pom 'org.jruby:jruby:9.1.2.0'
37+
jar 'org.processing:core:3.1'
3838
plugin_management do
3939
plugin :resources, '2.6'
4040
plugin :dependency, '2.8'

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>ruby-processing</groupId>
1313
<artifactId>pbox2d</artifactId>
14-
<version>0.7</version>
14+
<version>0.8</version>
1515
<name>pbox2d</name>
1616
<description>jbox2d for JRubyArt</description>
1717
<url>https://github.com/ruby-processing/jbox2d</url>
@@ -56,13 +56,13 @@ DO NOT MODIFIY - GENERATED CODE
5656
<dependency>
5757
<groupId>org.jruby</groupId>
5858
<artifactId>jruby</artifactId>
59-
<version>9.0.5.0</version>
59+
<version>9.1.2.0</version>
6060
<type>pom</type>
6161
</dependency>
6262
<dependency>
6363
<groupId>org.processing</groupId>
6464
<artifactId>core</artifactId>
65-
<version>3.0.1</version>
65+
<version>3.1</version>
6666
</dependency>
6767
</dependencies>
6868
<build>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* Reduce typing by using ContactAdaptor rather than ContactListener
3+
* @author Martin Prout
4+
*/
5+
package org.jbox2d.callbacks;
6+
7+
import org.jbox2d.collision.Manifold;
8+
import org.jbox2d.dynamics.contacts.Contact;
9+
10+
public abstract class ContactAdaptor implements ContactListener {
11+
12+
@Override
13+
public void beginContact(Contact cntct) {
14+
}
15+
16+
@Override
17+
public void endContact(Contact cntct) {
18+
}
19+
20+
@Override
21+
public void preSolve(Contact cntct, Manifold mnfld) {
22+
}
23+
24+
@Override
25+
public void postSolve(Contact cntct, ContactImpulse ci) {
26+
}
27+
}

src/org/jbox2d/callbacks/ParticleDestructionListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
public interface ParticleDestructionListener {
77
/**
88
* Called when any particle group is about to be destroyed.
9+
* @param group
910
*/
1011
void sayGoodbye(ParticleGroup group);
1112

src/org/jbox2d/collision/ContactID.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public ContactID(final ContactID c) {
7373
set(c);
7474
}
7575

76-
public void set(final ContactID c) {
76+
public final void set(final ContactID c) {
7777
indexA = c.indexA;
7878
indexB = c.indexB;
7979
typeA = c.typeA;

0 commit comments

Comments
 (0)