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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f83fb1eeb3998c1f5b56f4d67ac14f37b53d35e28d59ee2fe530558f7d4db55
4
- data.tar.gz: 9ba4ada63d3848ff7321d5701f6a2a0f09d5ae90be2e61a1d182b9a4e723067b
3
+ metadata.gz: e77733e02a373be40994e44cb0af58deb34d6e8fc56db41e7fdfdf92c66e07ee
4
+ data.tar.gz: 80ff321df3e3e6769cde781b5be89994739d9013578982a05de4b4be8ce6e62c
5
5
  SHA512:
6
- metadata.gz: 6cbd28b19ef5d12896d28658d737173120a03356e612500301577b9d438678752ad08efb276a558e69cc0182d8b7c38f3de9f8ce867af770b7ad3743d521f997
7
- data.tar.gz: 006b32a6ffad38416e9a60ab9cccc88a06e5ec6b23560eb06e9ed6a163fba2afd72b493f595825db79871bc8a6b1c143d59e371327c6e9678744d59e965478ef
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.declared_field(field) }
127
- @declared_fields = Hash[fields.zip(methods)]
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 = @declared_fields['key'].value(java_self)
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 @declared_fields['frameRate'].value(java_self) unless fps
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
- @declared_fields['mousePressed'].value(java_self)
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
- @declared_fields['keyPressed'].value(java_self)
182
+ @jfields['keyPressed'].value(java_self)
183
183
  end
184
184
 
185
185
  private
@@ -2,5 +2,5 @@
2
2
 
3
3
  # A wrapper for version
4
4
  module JRubyArt
5
- VERSION = '2.5.1'
5
+ VERSION = '2.6.0'
6
6
  end
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.2.19.0'
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.5.1
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-06-16 00:00:00.000000000 Z
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.5.1.jar
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.1.6
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.