pbox2d 1.0.2-java → 1.0.3-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1f0fe7549b5a2632e7242a0d5af21af60cbce45a
4
- data.tar.gz: 4f51e778bcd50952b828507cca39049bfbc0c8ee
2
+ SHA256:
3
+ metadata.gz: 35f456278e3f9cf08a3d574c395b217c71fa08541a30411bb6e62af3bf687b09
4
+ data.tar.gz: 30e22e5a5d9f90bb66c95f9e8905b28cd07ae018c6da0f126fa4540e69273a84
5
5
  SHA512:
6
- metadata.gz: a238b680e9d89bc0d2d6fd90b566bdda28b2f7683a7d4bbaed0229a5ee9d5a41c1a804a5438acad797f4cfa8a4a5538c2ed93b232e7131feab70c34d5d12052a
7
- data.tar.gz: b3c20d0b7582ef055000c833c6cc889dfd3a0be1f4968fe71a1745bb0a0d38efb866c413101f5d16acecb81a0c8a9632ef149fa0a8e33bcd48ab3dd5fa2d4d72
6
+ metadata.gz: 6f9339fb6fe82cb33c3ee34bd8daf02cd1681526596a86fcdb9ddc6c965691b6433f441602bb497bd8376adcf9482704d93aa66b11f4d6ceda4372b41bea261c
7
+ data.tar.gz: e9faaeea9ae7a07c48091024691f75af933070d862cb2ffb5a1b079c5c44954394b7bcedcf2321f41e2744da384ddb2340655b6e4d7eeb27f7746213239aff53
@@ -3,6 +3,6 @@
3
3
  <extension>
4
4
  <groupId>io.takari.polyglot</groupId>
5
5
  <artifactId>polyglot-ruby</artifactId>
6
- <version>0.1.18</version>
6
+ <version>0.2.0</version>
7
7
  </extension>
8
8
  </extensions>
@@ -2,7 +2,7 @@ language: ruby
2
2
  sudo: false
3
3
 
4
4
  rvm:
5
- - jruby-9.1.8.0
5
+ - jruby-9.1.12.0
6
6
  jdk:
7
7
  - oraclejdk8
8
8
  os:
@@ -1,3 +1,9 @@
1
+ ### v 1.0.3
2
+ Update to latest processing-3.3.6 jruby-9.1.16.0 replace $app with Processing.app for JRubyArt-1.4.6 in examples _an incompatible change for earlier JRubyArt versions_
3
+
4
+ ### v1.0.2
5
+ Update to latest processing-3.3.4
6
+
1
7
  ### v1.0.0
2
8
  Update to latest processing-3.3.2
3
9
 
@@ -12,10 +18,10 @@ Update maven artifacts
12
18
 
13
19
  Update maven artifacts, somewhat arbitarily require JRubyArt-1.2+ to get everyone on same page
14
20
 
15
- ### v0.8.0
21
+ ### v0.8.0
16
22
  Update for JRubyArt-1.1+ and processing-3.1+
17
23
 
18
- ### v0.7.0
24
+ ### v0.7.0
19
25
 
20
26
  A strike for independence, now building from source using polyglot maven
21
27
 
data/LICENSE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ### License
2
2
 
3
3
  This work makes use of jbox2d see included LICENCE, and is derived from,
4
- but different significantly different from Dan Shiffmans PBox2D-for-processing
4
+ but different significantly different from Dan Shiffmans PBox2D-for-processing
5
5
  who claims this:-
6
6
 
7
7
  Copyright (c) 2014, Daniel Shiffman
@@ -24,11 +24,11 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
24
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
25
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
26
 
27
- I include the Shiffman licence mainly because of the included example
28
- (albeit in processing) is his idea. It would be better if everyone stuck to
27
+ I include the Shiffman licence mainly because of the included example
28
+ (albeit in processing) is his idea. It would be better if everyone stuck to
29
29
  recognized licences.....
30
30
 
31
31
  For my part I lean toward GPL3 but MIT is OK and matches ruby-processing and
32
32
  vanilla processing.
33
33
 
34
- Copyright (c) 2014-2015, Martin Prout
34
+ Copyright (c) 2014-2018, Martin Prout
data/README.md CHANGED
@@ -6,7 +6,7 @@ Here we demonstrate how to use JBox2D library as a rubygem. This approach could
6
6
  ![Travis CI](https://travis-ci.org/ruby-processing/jbox2d.svg)
7
7
  [![Gem Version](https://badge.fury.io/rb/pbox2d.svg)](http://badge.fury.io/rb/pbox2d)
8
8
 
9
- Build fails because latest processing is not available from maven central.
9
+ CI Build can only pass when processing version is available from maven central.
10
10
 
11
11
  ### Web Links
12
12
 
@@ -5,7 +5,7 @@ permalink: /about/
5
5
  categories: jruby_art update
6
6
  ---
7
7
 
8
- [JRubyArt][jruby_art] is a ruby wrapper for [processing-3.3.2][processing]. Create processing sketches in ruby using regular ruby-2.3 syntax, and use the magic [JRuby][jruby] to run them. You can use both rubygems and and regular processing libraries in your sketches. Features run, watch and live modes (uses pry).
8
+ [JRubyArt][jruby_art] is a ruby wrapper for [processing-3.3.6][processing]. Create processing sketches in ruby using regular ruby-2.3 syntax, and use the magic [JRuby][jruby] to run them. You can use both rubygems and and regular processing libraries in your sketches. Features run, watch and live modes (uses pry). But you should also be able to use this gem with [propane][propane], you just need to class wrap examples as required.
9
9
 
10
10
  In general where there is a choice of using a java (processing) method or a regular ruby method you should choose the ruby method (eg use `rand` in place of `random`). Further you should prefer to use `JRuby` classes `Vec2D` and `Vec3D` instead of processings `PVector` class. Processing has a number of convenience methods which are not needed in ruby (eg 'pow' use `**` in JRubyArt) and some static methods have not been implemented in JRubyArt. For the processing `map` method prefer `map1d` ([see example][map1d]) or use `p5map` if you must. Another thing to watch is `color` which is implemented differently in JRubyArt ([see example][color]).
11
11
 
@@ -13,8 +13,8 @@ See also my [blog][blog] for more code ideas.
13
13
 
14
14
  [jruby]: https://jruby.org
15
15
  [processing]: https://processing.org
16
-
16
+ [propane]: https://ruby-processing.github.io/propane/
17
17
  [jruby_art]: https://ruby-processing.github.io/index.html
18
18
  [color]: https://github.com/ruby-processing/JRubyArt-examples/blob/master/processing_app/basics/color/creating.rb
19
- [map1d]: https://github.com/ruby-processing/JRubyArt-examples/blob/master/processing_app/basics/arrays/array.rb
19
+ [map1d]:https://github.com/ruby-processing/JRubyArt-examples/blob/master/processing_app/basics/arrays/array.rb
20
20
  [blog]:https://monkstone.github.io/
@@ -11,7 +11,7 @@ class Boundary
11
11
 
12
12
  def initialize(x, y, w, h)
13
13
  @x, @y, @w, @h = x, y, w, h
14
- @app = $app
14
+ @app = Processing.app
15
15
  # Define the polygon
16
16
  sd = PolygonShape.new
17
17
  # Figure out the box2d coordinates
@@ -19,6 +19,7 @@ def settings
19
19
  end
20
20
 
21
21
  def setup
22
+ sketch_title 'Distance Joint'
22
23
  # Initialize box2d physics and create the world
23
24
  @box2d = WorldBuilder.build(app: self)
24
25
  @system = ParticleSystem.new
@@ -9,7 +9,7 @@ class Pair
9
9
  attr_reader :p1, :p2, :len, :joint
10
10
  # Chain constructor
11
11
  def initialize(x, y)
12
- @app = $app
12
+ @app = Processing.app
13
13
  @len = 32
14
14
  @p1 = Particle.new(x, y)
15
15
  @p2 = Particle.new(x + rand(-1..1.0), y + rand(-1..1.0))
@@ -12,7 +12,7 @@ class Particle
12
12
 
13
13
  def initialize(x, y)
14
14
  @r = 8
15
- @app = $app
15
+ @app = Processing.app
16
16
  # Define a body
17
17
  bd = BodyDef.new
18
18
  # Set its position
@@ -12,7 +12,7 @@ class Boundary
12
12
 
13
13
  def initialize(x, y, w, h, a)
14
14
  @x, @y, @w, @h, @a = x, y, w, h, a
15
- @app = $app
15
+ @app = Processing.app
16
16
  # Define the polygon
17
17
  sd = PolygonShape.new
18
18
  # Figure out the box2d coordinates
@@ -11,7 +11,7 @@ class Box
11
11
  attr_accessor :body, :w, :h
12
12
  # Constructor
13
13
  def initialize(x, y)
14
- @app = $app
14
+ @app = Processing.app
15
15
  @w, @h = 24, 24
16
16
  # Add the box to the box2d world
17
17
  make_body(Vec2.new(x, y), w, h)
@@ -5,11 +5,12 @@
5
5
  # Basic example of controlling an object with the mouse (by attaching a spring)
6
6
 
7
7
  require 'pbox2d'
8
+ require 'forwardable'
8
9
  require_relative 'box'
9
10
  require_relative 'boundary'
10
11
  require_relative 'spring'
11
12
  require_relative 'dummy_spring'
12
- require 'forwardable'
13
+
13
14
 
14
15
  # A reference to our box2d world
15
16
  attr_reader :box2d, :boundaries, :box, :spring
@@ -11,7 +11,7 @@ class Spring
11
11
  attr_reader :mouse_joint
12
12
 
13
13
  def initialize
14
- @app = $app
14
+ @app = Processing.app
15
15
  end
16
16
 
17
17
  # If it exists we set its target to the mouse location
@@ -14,7 +14,7 @@ class Box
14
14
  # Constructor
15
15
  def initialize(x, y, w, h, lock)
16
16
  @w, @h = w, h
17
- @app = $app
17
+ @app = Processing.app
18
18
  # Define and create the body
19
19
  bd = BodyDef.new
20
20
  bd.position.set(box2d.processing_to_world(Vec2.new(x, y)))
@@ -13,7 +13,7 @@ class Particle
13
13
  attr_reader :body, :r
14
14
 
15
15
  def initialize(x, y, r)
16
- @app = $app
16
+ @app = Processing.app
17
17
  @r = r
18
18
  # This function puts the particle in the Box2d world
19
19
  makeBody(x, y, r)
@@ -13,7 +13,7 @@ class Windmill
13
13
  attr_reader :joint, :box1, :box2
14
14
 
15
15
  def initialize(x, y)
16
- @app = $app
16
+ @app = Processing.app
17
17
  # Initialize locations of two boxes
18
18
  @box1 = Box.new(x, y - 20, 120, 10, false)
19
19
  @box2 = Box.new(x, y, 10, 40, true)
@@ -2,5 +2,5 @@
2
2
 
3
3
  # module to give version a namespace
4
4
  module Pbox2d
5
- VERSION = '1.0.2'.freeze
5
+ VERSION = '1.0.3'.freeze
6
6
  end
data/pom.rb CHANGED
@@ -2,7 +2,7 @@ require 'fileutils'
2
2
  project 'pbox2d', 'https://github.com/ruby-processing/jbox2d' do
3
3
 
4
4
  model_version '4.0.0'
5
- id 'ruby-processing:pbox2d', '1.0.2'
5
+ id 'ruby-processing:pbox2d', '1.0.3'
6
6
  packaging 'jar'
7
7
 
8
8
  description 'jbox2d for JRubyArt and propane'
@@ -34,8 +34,8 @@ project 'pbox2d', 'https://github.com/ruby-processing/jbox2d' do
34
34
  )
35
35
 
36
36
 
37
- pom 'org.jruby:jruby:9.1.12.0'
38
- jar 'org.processing:core:3.3.4'
37
+ pom 'org.jruby:jruby:9.1.16.0'
38
+ jar 'org.processing:core:3.3.6'
39
39
 
40
40
  plugin_management do
41
41
  plugin :resources, '2.6'
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>pbox2d</artifactId>
14
- <version>1.0.2</version>
14
+ <version>1.0.3</version>
15
15
  <name>pbox2d</name>
16
16
  <description>jbox2d for JRubyArt and propane</description>
17
17
  <url>https://github.com/ruby-processing/jbox2d</url>
@@ -56,13 +56,13 @@ DO NOT MODIFIY - GENERATED CODE
56
56
  <dependency>
57
57
  <groupId>org.jruby</groupId>
58
58
  <artifactId>jruby</artifactId>
59
- <version>9.1.12.0</version>
59
+ <version>9.1.16.0</version>
60
60
  <type>pom</type>
61
61
  </dependency>
62
62
  <dependency>
63
63
  <groupId>org.processing</groupId>
64
64
  <artifactId>core</artifactId>
65
- <version>3.3.4</version>
65
+ <version>3.3.6</version>
66
66
  </dependency>
67
67
  </dependencies>
68
68
  <build>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pbox2d
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: java
6
6
  authors:
7
7
  - Martin Prout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2018-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -323,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  version: '0'
324
324
  requirements: []
325
325
  rubyforge_project:
326
- rubygems_version: 2.6.11
326
+ rubygems_version: 2.7.5
327
327
  signing_key:
328
328
  specification_version: 4
329
329
  summary: jbox2d wrapped in a gem for JRubyArt