Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Jun 16, 2017
1 parent 253e624 commit ce3dce8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
16 changes: 9 additions & 7 deletions lib/pbox2d.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

working_directory = File.join(File.dirname(__FILE__))
$LOAD_PATH << working_directory unless $LOAD_PATH.include?(working_directory)
Dir[File.join(working_directory, '*.jar')].each do |jar|
Expand All @@ -11,30 +13,30 @@ def import_class_list(list, string)
list.each { |d| java_import format(string, d) }
end

common = %w( Vec2 Transform )
common = %w[Vec2 Transform]
common_format = 'org.jbox2d.common.%s'
import_class_list(common, common_format)
shape = %w( PolygonShape CircleShape ChainShape Shape )
shape = %w[PolygonShape CircleShape ChainShape Shape]
shape_format = 'org.jbox2d.collision.shapes.%s'
import_class_list(shape, shape_format)
world = %w( Body BodyDef BodyType World FixtureDef )
world = %w[Body BodyDef BodyType World FixtureDef]
world_format = 'org.jbox2d.dynamics.%s'
import_class_list(world, world_format)
joint = %w(
joint = %w[
Joint
JointDef
DistanceJointDef
RevoluteJoint
RevoluteJointDef
MouseJointDef
ConstantVolumeJointDef
)
]
joint_format = 'org.jbox2d.dynamics.joints.%s'
import_class_list(joint, joint_format)

# Import into module namespace to avoid likely clashes
module PB
particle = %w(
particle = %w[
ParticleColor
ParticleContact
ParticleGroupDef
Expand All @@ -46,7 +48,7 @@ module PB
ParticleSystem
StackQueue
VoronoiDiagram
)
]
particle_format = 'org.jbox2d.particle.%s'
import_class_list(particle, particle_format)
end
Expand Down
5 changes: 3 additions & 2 deletions lib/pbox2d/box2d.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'version'
# Ruby version of java wrapper allows us to have more
# rubified interface, also needed for add_listener
Expand All @@ -9,8 +11,7 @@ def init_options(args = {})
set_options(args[:scale],
args[:gravity].to_java(Java::float),
args[:warm],
args[:continuous]
)
args[:continuous])
end

def step_options(args = {})
Expand Down
4 changes: 3 additions & 1 deletion lib/pbox2d/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# frozen_string_literal: true

# module to give version a namespace
module Pbox2d
VERSION = '1.0.1'
VERSION = '1.0.2'.freeze
end
10 changes: 5 additions & 5 deletions pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
project 'pbox2d', 'https://github.com/ruby-processing/jbox2d' do

model_version '4.0.0'
id 'ruby-processing:pbox2d', '1.0.1'
id 'ruby-processing:pbox2d', '1.0.2'
packaging 'jar'

description 'jbox2d for JRubyArt'
description 'jbox2d for JRubyArt and propane'

organization 'ruby-processing', 'https://ruby-processing.github.io'

Expand All @@ -22,7 +22,7 @@
source_control(
:url => 'https://github.com/ruby-processing/jbox2d',
:connection => 'scm:git:git://github.com/ruby-processing/jbox2d.git',
:developer_connection => 'scm:git:git@github.com/ruby-processing/jbox2dt.git'
:developer_connection => 'scm:git:git@github.com/ruby-processing/jbox2d.git'
)

properties( 'maven.compiler.source' => '1.8',
Expand All @@ -34,8 +34,8 @@
)


pom 'org.jruby:jruby:9.1.8.0'
jar 'org.processing:core:3.3.2'
pom 'org.jruby:jruby:9.1.12.0'
jar 'org.processing:core:3.3.4'

plugin_management do
plugin :resources, '2.6'
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ DO NOT MODIFIY - GENERATED CODE
<modelVersion>4.0.0</modelVersion>
<groupId>ruby-processing</groupId>
<artifactId>pbox2d</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<name>pbox2d</name>
<description>jbox2d for JRubyArt</description>
<description>jbox2d for JRubyArt and propane</description>
<url>https://github.com/ruby-processing/jbox2d</url>
<organization>
<name>ruby-processing</name>
Expand All @@ -37,7 +37,7 @@ DO NOT MODIFIY - GENERATED CODE
</developers>
<scm>
<connection>scm:git:git://github.com/ruby-processing/jbox2d.git</connection>
<developerConnection>scm:git:git@github.com/ruby-processing/jbox2dt.git</developerConnection>
<developerConnection>scm:git:git@github.com/ruby-processing/jbox2d.git</developerConnection>
<url>https://github.com/ruby-processing/jbox2d</url>
</scm>
<issueManagement>
Expand All @@ -56,13 +56,13 @@ DO NOT MODIFIY - GENERATED CODE
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<version>9.1.8.0</version>
<version>9.1.12.0</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.processing</groupId>
<artifactId>core</artifactId>
<version>3.3.2</version>
<version>3.3.4</version>
</dependency>
</dependencies>
<build>
Expand Down

0 comments on commit ce3dce8

Please sign in to comment.