ruby-processing 2.6.11 → 2.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rpextras.jar +0 -0
- data/lib/ruby-processing/app.rb +0 -6
- data/lib/ruby-processing/runner.rb +15 -4
- data/lib/ruby-processing/version.rb +1 -1
- data/library/video_event/video_event.rb +0 -7
- 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: d97dffce26050b2b5f80189ef063b6f9093a8f39
|
4
|
+
data.tar.gz: 045df452ea1968641ddfccac5e0e2222efdfc06d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d3e525fc43e1d74ea96e7df4b3cd52eb81601f2e8f57a603163cc80988d8ab227ce84a7875123eac9bb18fb80bf5cc7a65b58a695b163ec6db95bb39a48f7bd
|
7
|
+
data.tar.gz: 63a38138b14d31f5bdb1b49fc8ab46ff87bddd41393e279ebcb1365809b4c9ad326caf441a3941beff68306919326e7b131727c86362c1ed4d4785b3e349ac7d
|
data/lib/rpextras.jar
CHANGED
Binary file
|
data/lib/ruby-processing/app.rb
CHANGED
@@ -8,12 +8,6 @@ require_relative '../ruby-processing/helpers/string_extra'
|
|
8
8
|
require_relative '../ruby-processing/library_loader'
|
9
9
|
require_relative '../ruby-processing/config'
|
10
10
|
|
11
|
-
jars = Dir["#{Processing::RP_CONFIG['PROCESSING_ROOT']}/core/library/\*.jar"]
|
12
|
-
# We don't seem need to load the native jars so perhaps we shouldn't
|
13
|
-
jars.reject { |jar| jar =~ /native/ }.each do |jar|
|
14
|
-
require jar
|
15
|
-
end
|
16
|
-
|
17
11
|
module Processing
|
18
12
|
# This is the main Ruby-Processing class, and is what you'll
|
19
13
|
# inherit from when you create a sketch. This class can call
|
@@ -171,6 +171,10 @@ module Processing
|
|
171
171
|
|
172
172
|
|
173
173
|
private
|
174
|
+
|
175
|
+
def core_classpath
|
176
|
+
Dir["#{Processing::RP_CONFIG['PROCESSING_ROOT']}/core/library/\*.jar"]
|
177
|
+
end
|
174
178
|
|
175
179
|
# Trade in this Ruby instance for a JRuby instance, loading in a starter
|
176
180
|
# script and passing it some arguments.Unless '--nojruby' is passed, the
|
@@ -182,18 +186,25 @@ module Processing
|
|
182
186
|
runner = "#{RP5_ROOT}/lib/ruby-processing/runners/#{starter_script}"
|
183
187
|
warn('The --jruby flag is no longer required') if @options.jruby
|
184
188
|
@options.nojruby = true if Processing::RP_CONFIG['JRUBY'] == 'false'
|
185
|
-
java_args = discover_java_args(sketch)
|
189
|
+
java_args = discover_java_args(sketch)
|
186
190
|
if @options.nojruby
|
191
|
+
classpath = jruby_complete + core_classpath
|
187
192
|
command = ['java',
|
188
193
|
java_args,
|
189
194
|
'-cp',
|
190
|
-
|
195
|
+
classpath.join(':'),
|
191
196
|
'org.jruby.Main',
|
192
197
|
runner,
|
193
198
|
sketch,
|
194
199
|
args].flatten
|
195
200
|
else
|
196
|
-
command = ['jruby',
|
201
|
+
command = ['jruby',
|
202
|
+
java_args,
|
203
|
+
'-J-cp',
|
204
|
+
core_classpath.join(':'),
|
205
|
+
runner,
|
206
|
+
sketch,
|
207
|
+
args].flatten
|
197
208
|
end
|
198
209
|
exec(*command)
|
199
210
|
# exec replaces the Ruby process with the JRuby one.
|
@@ -223,7 +234,7 @@ module Processing
|
|
223
234
|
|
224
235
|
def jruby_complete
|
225
236
|
rcomplete = File.join(RP5_ROOT, 'lib/ruby/jruby-complete.jar')
|
226
|
-
return rcomplete if FileTest.exist?(rcomplete)
|
237
|
+
return [rcomplete] if FileTest.exist?(rcomplete)
|
227
238
|
warn "#{rcomplete} does not exist\nTry running `rp5 setup install`"
|
228
239
|
exit
|
229
240
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Ashkenas
|
@@ -16,7 +16,7 @@ authors:
|
|
16
16
|
autorequire:
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
|
-
date: 2015-06-
|
19
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,7 +90,6 @@ extensions: []
|
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
92
|
- bin/rp5
|
93
|
-
- lib/rpextras.jar
|
94
93
|
- lib/ruby-processing.rb
|
95
94
|
- lib/ruby-processing/app.rb
|
96
95
|
- lib/ruby-processing/config.rb
|
@@ -129,6 +128,7 @@ files:
|
|
129
128
|
- library/vecmath/vecmath.rb
|
130
129
|
- library/video_event/video_event.rb
|
131
130
|
- vendors/Rakefile
|
131
|
+
- lib/rpextras.jar
|
132
132
|
homepage: http://wiki.github.com/jashkenas/ruby-processing
|
133
133
|
licenses:
|
134
134
|
- MIT
|
@@ -152,7 +152,7 @@ requirements:
|
|
152
152
|
- java runtime >= 1.7+
|
153
153
|
- processing = 2.2.1+
|
154
154
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
155
|
+
rubygems_version: 2.1.9
|
156
156
|
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
|