jruby_art 2.5.1 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jruby_art/helper_methods.rb +6 -6
- data/lib/jruby_art/version.rb +1 -1
- data/lib/{jruby_art-2.5.1.jar → jruby_art-2.6.0.jar} +0 -0
- data/vendors/Rakefile +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e77733e02a373be40994e44cb0af58deb34d6e8fc56db41e7fdfdf92c66e07ee
|
4
|
+
data.tar.gz: 80ff321df3e3e6769cde781b5be89994739d9013578982a05de4b4be8ce6e62c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60c5eb4e6ff43b06dffbb6bb9a7e83b04e5900c373e1fc3603e17554a6f351f60d066bd99d90aa68e2803970285c53b695c145dbc6025770afa3b01f3a67bc2
|
7
|
+
data.tar.gz: 3cb5cbdaabb21d8fc2160c998cd1f01290ce8b865b576f4baa984a439a767b4fae408951fc3e4ba2e08fc866dba8b7d823446f44dcf69eb4cfe3311bbd93af87
|
@@ -123,14 +123,14 @@ module Processing
|
|
123
123
|
# some methods. Add to this list as needed.
|
124
124
|
def proxy_java_fields
|
125
125
|
fields = %w[key frameRate mousePressed keyPressed]
|
126
|
-
methods = fields.map { |field| java_class.
|
127
|
-
@
|
126
|
+
methods = fields.map { |field| java_class.field(field) }
|
127
|
+
@jfields = Hash[fields.zip(methods)]
|
128
128
|
end
|
129
129
|
|
130
130
|
# Fix java conversion problems getting the last key
|
131
131
|
# If it's ASCII, return the character, otherwise the integer
|
132
132
|
def key
|
133
|
-
int = @
|
133
|
+
int = @jfields['key'].value(java_self)
|
134
134
|
int < 256 ? int.chr : int
|
135
135
|
end
|
136
136
|
|
@@ -167,19 +167,19 @@ module Processing
|
|
167
167
|
|
168
168
|
# frame_rate needs to support reading and writing
|
169
169
|
def frame_rate(fps = nil)
|
170
|
-
return @
|
170
|
+
return @jfields['frameRate'].value(java_self) unless fps
|
171
171
|
|
172
172
|
super(fps)
|
173
173
|
end
|
174
174
|
|
175
175
|
# Is the mouse pressed for this frame?
|
176
176
|
def mouse_pressed?
|
177
|
-
@
|
177
|
+
@jfields['mousePressed'].value(java_self)
|
178
178
|
end
|
179
179
|
|
180
180
|
# Is a key pressed for this frame?
|
181
181
|
def key_pressed?
|
182
|
-
@
|
182
|
+
@jfields['keyPressed'].value(java_self)
|
183
183
|
end
|
184
184
|
|
185
185
|
private
|
data/lib/jruby_art/version.rb
CHANGED
Binary file
|
data/vendors/Rakefile
CHANGED
@@ -11,7 +11,7 @@ WARNING = <<~WARN
|
|
11
11
|
|
12
12
|
WARN
|
13
13
|
# https://github.com/processing/processing-video/releases/download/r6-v2.0-beta4/video-2.0-beta4.zip
|
14
|
-
JRUBYC_VERSION = '9.
|
14
|
+
JRUBYC_VERSION = '9.3.1.0'
|
15
15
|
SOUND = 'sound.zip'
|
16
16
|
SOUND_VERSION = 'v2.2.3'
|
17
17
|
VIDEO = 'video.zip'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jruby_art
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Prout
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ files:
|
|
57
57
|
- lib/jogl-all-natives-macosx-universal.jar
|
58
58
|
- lib/jogl-all-natives-windows-amd64.jar
|
59
59
|
- lib/jogl-all.jar
|
60
|
-
- lib/jruby_art-2.
|
60
|
+
- lib/jruby_art-2.6.0.jar
|
61
61
|
- lib/jruby_art.rb
|
62
62
|
- lib/jruby_art/app.rb
|
63
63
|
- lib/jruby_art/config.rb
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
121
121
|
- A decent graphics card
|
122
122
|
- java runtime >= 11.0.3+
|
123
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.2.29
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
|