jruby_art 0.2.0.pre → 0.2.1.pre

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3828fdddac86cd22f16778671b86ca7177b73aa
4
- data.tar.gz: 0cc177cf9d0e4d9027694777439ffd4330ed4ad2
3
+ metadata.gz: 14b6b25af68362b0935ec7fa7060ff94c6058082
4
+ data.tar.gz: 9c8a4949546e952b315aea6042c655f77ceeb0ca
5
5
  SHA512:
6
- metadata.gz: 9493554519ee7744117ebfb307c0f9c48e78f0e447f3bc0dd98bd5ad1921605bd43debd6173d0ed46582bfae4c39670d1fd2e3674c9d5306c6857cc457ab7dc1
7
- data.tar.gz: 2813e9daadee89de3bd19ca20f6a8d4252bb7a9f2e1c3171efde53ca5cfb0df720100c5ef65ca7cc0e55a5e1ba4cd2648e81ba4132e11b61f0122fa44fd4154e
6
+ metadata.gz: 593dd27469ab97670b0037298a947de4e2b7cefe8e8abeec3f4649b6c49ec1f68501637910226cfa3f54d7c4e27e090f81becb128deb435ecfd841f06714e873
7
+ data.tar.gz: d5b979d144d4acc91b490f5696d5fdbd28c8cead7aca9ad3b4cf85c007859e3fb2ec330dd51e578a24b49044b69011450c80f80384b1e3dbeeb7a32427d2602d
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ## JRubyArt
2
+ [![Gem Version](https://badge.fury.io/rb/jruby_art.svg)](http://badge.fury.io/rb/jruby_art)
2
3
 
3
-
4
- Is a development fork of [ruby-processing][] that may soon have a somewhat independent existence, see [processing-core][] at least in the short term. Plan was that JRubyArt releases (pre-releases) would use jruby-9.0.0.0 from the start, but now I think it might be more sane to start with jruby-1.7.19. However until that time:-
4
+ Is a development fork of [ruby-processing][] that has a somewhat independent existence, see [processing-core][] at least in the short term. Plan was that JRubyArt releases (pre-releases) would use jruby-9.0.0.0 from the start, but now I think it might be more sane to start with jruby-1.7.18. Version 0.2.0.pre is now available from rubygems. To build from repo:-
5
5
 
6
6
 
7
7
  You should (like ruby-processing) install [processing-2.2.1][]
@@ -57,7 +57,8 @@ k9 setup install # requires wget (Now also downloads examples to users home)
57
57
  To run sketches with jruby-complete (rather than installed jruby)
58
58
 
59
59
  ```bash
60
- k9 run my_app.rb # NB: k9 setup install, is a one-time install to gem procedure
60
+ k9 run my_app.rb # NB: k9 setup install, is a one-time 'install to gem' procedure
61
+ that also downloads and install samples in examples folder in users directory
61
62
  ```
62
63
 
63
64
  [Contributing][]
@@ -72,7 +73,11 @@ k9 run my_app.rb # NB: k9 setup install, is a one-time install to gem procedure
72
73
 
73
74
  ###Ruby Versions
74
75
 
75
- jruby-9.0.0.0.pre1+ (when sketches run with jruby command)
76
+ jruby-1.7.18 (when sketches run with jruby command)
77
+
78
+ jruby-9.0.0.0.pre1 also seems to work
79
+
80
+ or
76
81
 
77
82
  ruby-2.1.2+ (when sketches are run using k9 command, ie using jruby-complete)
78
83
 
data/Rakefile CHANGED
@@ -21,11 +21,11 @@ spec = Gem::Specification.new do |s|
21
21
  s.executables << 'k9'
22
22
  s.files = %w(LICENSE.md README.md Rakefile) + Dir.glob("{bin,lib,spec,vendors}/**/*")
23
23
  s.require_path = 'lib'
24
- s.add_development_dependency "rake", "~> 10.3"
24
+ s.add_development_dependency "rake", "~> 10.4"
25
+ s.add_development_dependency "rspec", "~> 3.1"
25
26
  s.add_development_dependency "rake-compiler", "~> 0.9"
26
27
  s.requirements << 'A decent graphics card'
27
28
  s.requirements << 'java runtime >= 1.7+'
28
- s.requirements << 'processing = 2.2.1+'
29
29
  end
30
30
 
31
31
  # -*- ruby -*-
@@ -1,3 +1,3 @@
1
1
  module JRubyArt
2
- VERSION = '0.2.0.pre'
2
+ VERSION = '0.2.1.pre'
3
3
  end
data/lib/jruby_art.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'rbconfig'
2
+
1
3
  VERBOSE = true
2
4
 
3
5
  unless defined? K9_ROOT
@@ -7,9 +9,26 @@ end
7
9
 
8
10
  # guard prevents issues with mri ruby when using creator
9
11
  if RUBY_PLATFORM == 'java'
12
+ def platform
13
+ host_os = RbConfig::CONFIG['host_os']
14
+ return '*mac-universal.jar' if host_os =~ /mac|darwin/
15
+ bit = ENV_JAVA['sun.arch.data.model']
16
+ if host_os =~ /linux/
17
+ bit.eql?('32') ? '*linux-i586.jar' : '*linux-amd64.jar'
18
+ elsif host_os =~ /cygwin|windows/
19
+ bit.eql?('32') ? '*windows-i586.jar' : '*windows-amd64.jar'
20
+ else
21
+ '*armv6hf.jar'
22
+ end
23
+ end
10
24
  working_directory = File.join(File.dirname(__FILE__))
11
25
  $LOAD_PATH << working_directory unless $LOAD_PATH.include?(working_directory)
12
26
  Dir[File.join(working_directory, '*.jar')].each do |jar|
27
+ # require_relative jar unless jar =~ /native/ (breaks netbeans)
28
+ require jar unless jar =~ /native/
29
+ end
30
+ Dir[File.join(working_directory, platform)].each do |jar|
31
+ # require_relative jar (break netbeans)
13
32
  require jar
14
33
  end
15
34
  Java::ProcessingFastmath::DeglutLibrary.new.load(JRuby.runtime, false)
data/lib/rpextras.jar CHANGED
Binary file
data/vendors/Rakefile CHANGED
@@ -9,7 +9,7 @@ WARNING = <<-EOS
9
9
 
10
10
  EOS
11
11
 
12
- JRUBYC_VERSION = '1.7.18'
12
+ JRUBYC_VERSION = '1.7.19'
13
13
  EXAMPLES = '0.0.4'
14
14
  HOME_DIR = ENV['HOME']
15
15
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
@@ -27,7 +27,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
27
27
  rescue
28
28
  warn(WARNING)
29
29
  end
30
- check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "a1be3e1790aace5c99614a87785454d875eb21c2")
30
+ check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "9973923de511c06d979e950801b51a95d19e8be3")
31
31
  end
32
32
 
33
33
  directory "../lib/ruby"
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby_art
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre
4
+ version: 0.2.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Prout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
16
  - - ~>
17
17
  - !ruby/object:Gem::Version
18
- version: '10.3'
18
+ version: '10.4'
19
19
  name: rake
20
20
  prerelease: false
21
21
  type: :development
@@ -23,7 +23,21 @@ dependencies:
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '10.3'
26
+ version: '10.4'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '3.1'
33
+ name: rspec
34
+ prerelease: false
35
+ type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '3.1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  requirement: !ruby/object:Gem::Requirement
29
43
  requirements:
@@ -58,7 +72,6 @@ files:
58
72
  - lib/jogl-all.jar
59
73
  - lib/jogl-all-natives-windows-i586.jar
60
74
  - lib/jogl-all-natives-linux-armv6hf.jar
61
- - lib/export.txt
62
75
  - lib/jruby_art.rb
63
76
  - lib/gluegen-rt-natives-linux-amd64.jar
64
77
  - lib/gluegen-rt-natives-linux-i586.jar
@@ -107,7 +120,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
120
  requirements:
108
121
  - A decent graphics card
109
122
  - java runtime >= 1.7+
110
- - processing = 2.2.1+
111
123
  rubyforge_project:
112
124
  rubygems_version: 2.1.9
113
125
  signing_key:
data/lib/export.txt DELETED
@@ -1,10 +0,0 @@
1
- # If you want to support more platforms, visit jogamp.org to get the
2
- # natives libraries for the platform in question (i.e. Solaris).
3
-
4
- name = OpenGL
5
-
6
- application.macosx=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-macosx-universal.jar,gluegen-rt-natives-macosx-universal.jar
7
- application.windows32=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-windows-i586.jar,gluegen-rt-natives-windows-i586.jar
8
- application.windows64=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-windows-amd64.jar,gluegen-rt-natives-windows-amd64.jar
9
- application.linux32=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-i586.jar,gluegen-rt-natives-linux-i586.jar
10
- application.linux64=core.jar,jogl-all.jar,gluegen-rt.jar,jogl-all-natives-linux-amd64.jar,gluegen-rt-natives-linux-amd64.jar