ruby-processing 2.6.11 → 2.6.12

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: 95f093af92488a7783924a932a086c10e2e81058
4
- data.tar.gz: 77868bd9e219521101a104c4d6d0207f77b5c877
3
+ metadata.gz: d97dffce26050b2b5f80189ef063b6f9093a8f39
4
+ data.tar.gz: 045df452ea1968641ddfccac5e0e2222efdfc06d
5
5
  SHA512:
6
- metadata.gz: 76ad255dc7e19dc407f787523d0c26d1be56cdcfbb8329ff4f0fae5c2b5e3a609bc4f7d310a7f7abb342808fb892acf3b183e429cca8b0f3a72641bf604977ad
7
- data.tar.gz: ef356cde4063ee9b2d7bd5f1e8fb00e5f8e37898ef9b6a68426bde2d3d8e9cb92e74171d336a47050c5bb422bcb481be552bf4b5ddba1f9987485637189179a9
6
+ metadata.gz: 8d3e525fc43e1d74ea96e7df4b3cd52eb81601f2e8f57a603163cc80988d8ab227ce84a7875123eac9bb18fb80bf5cc7a65b58a695b163ec6db95bb39a48f7bd
7
+ data.tar.gz: 63a38138b14d31f5bdb1b49fc8ab46ff87bddd41393e279ebcb1365809b4c9ad326caf441a3941beff68306919326e7b131727c86362c1ed4d4785b3e349ac7d
data/lib/rpextras.jar CHANGED
Binary file
@@ -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
- jruby_complete,
195
+ classpath.join(':'),
191
196
  'org.jruby.Main',
192
197
  runner,
193
198
  sketch,
194
199
  args].flatten
195
200
  else
196
- command = ['jruby', java_args, runner, sketch, args].flatten
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
@@ -1,3 +1,3 @@
1
1
  module RubyProcessing
2
- VERSION = '2.6.11'
2
+ VERSION = '2.6.12'
3
3
  end
@@ -2,11 +2,4 @@ require 'rpextras'
2
2
 
3
3
  class Processing::App
4
4
  include Java::ProcessingCore::VideoInterface
5
- def captureEvent(c)
6
- # satisfy implement abstract class
7
- end
8
-
9
- def movieEvent(m)
10
- # satisfy implement abstract class
11
- end
12
5
  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.11
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-07 00:00:00.000000000 Z
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.4.6
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.