Skip to content

Commit 573d240

Browse files
author
monkstone
committed
first real commit
1 parent e4d22af commit 573d240

File tree

19 files changed

+1718
-3
lines changed

19 files changed

+1718
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/spec/examples.txt
99
/test/tmp/
1010
/test/version_tmp/
11-
/tmp/
12-
11+
/target/
12+
MANIFEST.MF
1313
## Specific to RubyMotion:
1414
.dat*
1515
.repl_history
@@ -31,6 +31,6 @@ build/
3131
# Gemfile.lock
3232
# .ruby-version
3333
# .ruby-gemset
34-
34+
*~
3535
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
3636
.rvmrc

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>io.takari.polyglot</groupId>
5+
<artifactId>polyglot-ruby</artifactId>
6+
<version>0.1.15</version>
7+
</extension>
8+
</extensions>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip

LICENSE.md

Lines changed: 621 additions & 0 deletions
Large diffs are not rendered by default.

Rakefile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: false
3+
require_relative 'lib/arcball/version'
4+
5+
def create_manifest
6+
title = 'Implementation-Title: ArcBall (java extension for jruby)'
7+
version = format('Implementation-Version: %s', ArcBall::VERSION)
8+
File.open('MANIFEST.MF', 'w') do |f|
9+
f.puts(title)
10+
f.puts(version)
11+
end
12+
end
13+
14+
task default: [:init, :compile, :install, :gem]
15+
16+
desc 'Create Manifest'
17+
task :init do
18+
create_manifest
19+
end
20+
21+
desc 'Build gem'
22+
task :gem do
23+
sh 'gem build arcball.gemspec'
24+
end
25+
26+
desc 'Install'
27+
task :install do
28+
sh 'mv target/arcball.jar lib'
29+
end
30+
31+
desc 'Document'
32+
task :javadoc do
33+
sh 'mvn javadoc:javadoc'
34+
end
35+
36+
desc 'Compile'
37+
task :compile do
38+
sh 'mvn package'
39+
end
40+
41+
desc 'clean'
42+
task :clean do
43+
Dir['./**/*.%w{jar gem}'].each do |path|
44+
puts 'Deleting #{path} ...'
45+
File.delete(path)
46+
end
47+
FileUtils.rm_rf('./target')
48+
end

arcball.gemspec

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Gem::Specification.new do |s|
2+
s.name = 'arcball'
3+
s.version = '0.0.1'
4+
s.licenses = ['GPL-3.0']
5+
s.has_rdoc = false
6+
s.extra_rdoc_files = ['README.md', 'LICENSE.md']
7+
s.authors = ['Martin Prout']
8+
s.date = %q{2016-03-13}
9+
s.description = %q{A ArcBall in java for processing on ruby}
10+
s.summary = %q{Provides arcball functionality to processing, from a ruby environment}
11+
s.email = %q{martin_p@lineone.net}
12+
s.files = ['Rakefile', 'lib/arcball.rb', 'lib/arcball.jar', 'lib/arcball/version.rb']
13+
s.homepage = %q{http://rubygems.org/gems/arcball}
14+
s.require_paths = ['lib']
15+
s.add_development_dependency 'rake', '~> 10.0'
16+
s.platform='java'
17+
s.rubygems_version = %q{2.5.2}
18+
end
19+

lib/arcball.jar

11.5 KB
Binary file not shown.

lib/arcball.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: false
3+
require 'java'
4+
require_relative 'arcball.jar'
5+
Java::MonkstoneArcball::ArcBallLibrary.load(JRuby.runtime)

lib/arcball/arcball.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: false
3+
$VERBOSE = nil
4+
working_directory = File.join(File.dirname(__FILE__))
5+
$LOAD_PATH << working_directory unless $LOAD_PATH.include?(working_directory)
6+
Dir[File.join(working_directory, '*.jar')].each do |jar|
7+
require jar
8+
end
9+
10+
require 'propane/version'
11+
require 'propane/simple_app'
12+
require 'propane/helpers/numeric'

lib/arcball/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# encoding: utf-8
2+
# frozen_string_literal: true
3+
module ArcBall
4+
VERSION = '0.0.1'.freeze
5+
end

0 commit comments

Comments
 (0)