jruby_art 0.3.0.pre → 0.3.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 +4 -4
- data/lib/jruby_art/app.rb +4 -10
- data/lib/jruby_art/helper_methods.rb +1 -1
- data/lib/jruby_art/runner.rb +5 -2
- data/lib/jruby_art/version.rb +1 -1
- data/lib/rpextras.jar +0 -0
- data/vendors/Rakefile +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6310fd7a020ca5af0b1efd759a68402e64390c64
|
4
|
+
data.tar.gz: 27ee30134bbdad7cc47a31730a457b6d382a51a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76a9bf6a75eba08aa8a9a46e0add4188b515138fd265408ee4acd7af9b047efd14e7a2d4c1501e5582a13d0ac7d9e9f82c8bab4063eb9c760b9b72d57da81d9
|
7
|
+
data.tar.gz: 44c04ac82796deb2e411b27f2b2ccdb4872ee2e8052bec0ce7be1123a0720ef8e00fa3a3c1c8a370a44acfec65cec1921c41dadc115d2f4918076444b3c46e2a
|
data/lib/jruby_art/app.rb
CHANGED
@@ -31,8 +31,7 @@ module Processing
|
|
31
31
|
}
|
32
32
|
# All sketches extend this class
|
33
33
|
class App < PApplet
|
34
|
-
include Math
|
35
|
-
include HelperMethods
|
34
|
+
include HelperMethods, Math
|
36
35
|
# Alias some methods for familiarity for Shoes coders.
|
37
36
|
# surface replaces :frame, but needs field_reader for access
|
38
37
|
alias_method :oval, :ellipse
|
@@ -163,15 +162,10 @@ module Processing
|
|
163
162
|
end
|
164
163
|
end # Processing::App
|
165
164
|
|
166
|
-
#
|
167
|
-
#
|
168
|
-
# or to use bare TRIANGLE also 'include PConstants'
|
169
|
-
# Using :method_missing to mimic inner class methods
|
170
|
-
# @HACK you should consider using 'forwardable' to avoid this
|
171
|
-
# egregious hack...
|
165
|
+
# @HACK purists may prefer 'forwardable' to the use of Proxy
|
166
|
+
# Importing PConstants here to access the processing constants
|
172
167
|
module Proxy
|
173
|
-
include Math
|
174
|
-
java_import 'processing.core.PConstants'
|
168
|
+
include Math, HelperMethods, Java::ProcessingCore::PConstants
|
175
169
|
|
176
170
|
def method_missing(name, *args)
|
177
171
|
return $app.send(name, *args) if $app && $app.respond_to?(name)
|
@@ -3,7 +3,7 @@ module Processing
|
|
3
3
|
# Provides some convenience methods
|
4
4
|
module HelperMethods
|
5
5
|
# processings epsilon may not be defined yet
|
6
|
-
EPSILON ||=
|
6
|
+
EPSILON ||= 9.999999747378752e-05
|
7
7
|
# Nice block method to draw to a buffer.
|
8
8
|
# You can optionally pass it a width, a height, and a renderer.
|
9
9
|
# Takes care of starting and ending the draw for you.
|
data/lib/jruby_art/runner.rb
CHANGED
@@ -187,8 +187,11 @@ module Processing
|
|
187
187
|
sketch,
|
188
188
|
args].flatten
|
189
189
|
end
|
190
|
-
|
191
|
-
|
190
|
+
begin
|
191
|
+
exec(*command)
|
192
|
+
# exec replaces the Ruby process with the JRuby one.
|
193
|
+
rescue Java::JavaLang::ClassNotFoundExcetion
|
194
|
+
end
|
192
195
|
end
|
193
196
|
|
194
197
|
def path_separator
|
data/lib/jruby_art/version.rb
CHANGED
data/lib/rpextras.jar
CHANGED
Binary file
|
data/vendors/Rakefile
CHANGED
@@ -8,7 +8,7 @@ WARNING = <<-EOS
|
|
8
8
|
|
9
9
|
EOS
|
10
10
|
|
11
|
-
JRUBYC_VERSION = '9.0.0.0.
|
11
|
+
JRUBYC_VERSION = '9.0.0.0.rc2'
|
12
12
|
EXAMPLES = '0.2'
|
13
13
|
HOME_DIR = ENV['HOME']
|
14
14
|
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", "
|
30
|
+
check_sha1("jruby-complete-#{JRUBYC_VERSION}.jar", "3c490d1b621db41709e0d093ab36585a50604dfd")
|
31
31
|
end
|
32
32
|
|
33
33
|
directory "../lib/ruby"
|
@@ -77,5 +77,5 @@ task :copy_examples => file_name do
|
|
77
77
|
end
|
78
78
|
sh "rm -r #{HOME_DIR}/k9_samples" if File.exist? "#{HOME_DIR}/k9_samples"
|
79
79
|
sh "cp -r samples4ruby-processing3-#{EXAMPLES} #{HOME_DIR}/k9_samples"
|
80
|
-
sh "rm -r samples4ruby-processing3-#{
|
81
|
-
|
80
|
+
sh "rm -r samples4ruby-processing3-#{EXAMPLES} #{HOME_DIR}/k9_samples"
|
81
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby_art
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Ashkenas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-07-
|
13
|
+
date: 2015-07-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,13 +99,13 @@ files:
|
|
99
99
|
- lib/jruby_art/runners/run.rb
|
100
100
|
- lib/jruby_art/runners/watch.rb
|
101
101
|
- lib/jruby_art/version.rb
|
102
|
+
- lib/rpextras.jar
|
102
103
|
- library/boids/boids.rb
|
103
104
|
- library/control_panel/control_panel.rb
|
104
105
|
- library/library_proxy/README.md
|
105
106
|
- library/library_proxy/library_proxy.rb
|
106
107
|
- library/video_event/video_event.rb
|
107
108
|
- vendors/Rakefile
|
108
|
-
- lib/rpextras.jar
|
109
109
|
homepage: https://github.com/ruby-processing/JRubyArt
|
110
110
|
licenses:
|
111
111
|
- MIT
|
@@ -129,7 +129,7 @@ requirements:
|
|
129
129
|
- java runtime >= 1.8+
|
130
130
|
- processing = 3.0a10+
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.4.8
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
|