jruby_art 1.3.2 → 1.3.3

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
  SHA1:
3
- metadata.gz: 75d0632f22b83d732337a749073f99ed9abc77b4
4
- data.tar.gz: ac5dd0cd7c434bdbe62314ec7fb46f0fcf1c296e
3
+ metadata.gz: 714cc1e22751c847db77b12abfa4e98ab335d75a
4
+ data.tar.gz: 69ba6e19e3402d494f9e9ae89ff83505bbd15ab2
5
5
  SHA512:
6
- metadata.gz: 25bf939099a6ed80e3f1d45fc1de67ec6dccb7e5de7d75516eb2bd4bf541efe496ba89cad461699dc153a6b0fc02cb11f39c2d93d37e1793937be125b3e90779
7
- data.tar.gz: c5b1bba81ef69ebf75a5cd9bd5e221fc9f1b36b60de23a539e5533aa316b54e36572c6bb1463e713df04e6a4cc4c2c5d31712d0f71244530f792f562b25a8698
6
+ metadata.gz: 89a4368b91eb9bba23f54bd82870bc6e8143860c3a37aa8aa3d3fd6eaf397f611578578f8fde805d101dca854452011e29f4eb6f82cc227d885985c5ec286ec8
7
+ data.tar.gz: 25d693a26fac87d4d0ba0c9f1e30056880b955cfbd9f45baf690775fb6d617c0368b6414de5c692c3add8a6de3d0f03424dd022ea0aa4569a92395f7a452e457
data/lib/jruby_art/app.rb CHANGED
@@ -34,7 +34,10 @@ module Processing
34
34
  }.freeze
35
35
  # All sketches extend this class
36
36
  class App < PApplet
37
- include HelperMethods, Math, MathTool, Render
37
+ include HelperMethods
38
+ include Math
39
+ include MathTool
40
+ include Render
38
41
  # Alias some methods for familiarity for Shoes coders.
39
42
  # surface replaces :frame, but needs field_reader for access
40
43
  alias oval ellipse
@@ -181,9 +184,9 @@ module Processing
181
184
 
182
185
  def import_opengl
183
186
  # Include processing opengl classes that we'd like to use:
184
- %w(FontTexture FrameBuffer LinePath LineStroker PGL
187
+ %w[FontTexture FrameBuffer LinePath LineStroker PGL
185
188
  PGraphics2D PGraphics3D PGraphicsOpenGL PShader
186
- PShapeOpenGL Texture).each do |klass|
189
+ PShapeOpenGL Texture].each do |klass|
187
190
  java_import format('processing.opengl.%s', klass)
188
191
  end
189
192
  end
@@ -192,14 +195,16 @@ module Processing
192
195
  # @HACK purists may prefer 'forwardable' to the use of Proxy
193
196
  # Importing PConstants here to access the processing constants
194
197
  module Proxy
195
- include Math, HelperMethods, Java::ProcessingCore::PConstants
198
+ include Math
199
+ include HelperMethods
200
+ include Java::ProcessingCore::PConstants
196
201
 
197
- def respond_to_missing?(name, include_private = false)
198
- $app.respond_to?(name) || super
202
+ def respond_to_missing?(symbol, include_priv = false)
203
+ $app.respond_to?(symbol, include_priv) || super
199
204
  end
200
205
 
201
- def method_missing(name, *args)
202
- return $app.send(name, *args) if $app && $app.respond_to?(name)
206
+ def method_missing(name, *args, &block)
207
+ return $app.send(name, *args) if $app.respond_to? name
203
208
  super
204
209
  end
205
210
  end # Processing::Proxy
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
  require 'yaml'
3
3
 
4
- VERSION = '3.3.2'.freeze # processing version
4
+ VERSION = '3.3.4'.freeze # processing version
5
5
 
6
6
  # Abstract Installer class
7
7
  class Installer
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.3.2'.freeze
4
+ VERSION = '1.3.3'.freeze
5
5
  end
data/lib/rpextras.jar CHANGED
Binary file
@@ -65,7 +65,7 @@ module ControlPanel
65
65
  set_horizontal_alignment javax.swing.SwingConstants::CENTER
66
66
  control_panel.add_element(self, name, false)
67
67
  add_action_listener do
68
- $app.instance_variable_set("@#{name}", value) unless value.nil?
68
+ $app.instance_variable_set("@#{name}", value)
69
69
  proc.call(value) if proc
70
70
  end
71
71
  end
@@ -82,8 +82,8 @@ module ControlPanel
82
82
  set_preferred_size(java.awt.Dimension.new(170, 64))
83
83
  control_panel.add_element(self, name, false, true)
84
84
  add_action_listener do
85
- $app.send(name.to_s)
86
- proc.call(value) if proc
85
+ $app.send(name)
86
+ proc.call if proc
87
87
  end
88
88
  end
89
89
  end
@@ -101,6 +101,10 @@ module ControlPanel
101
101
  set_feel
102
102
  end
103
103
 
104
+ def title(name)
105
+ set_title(name)
106
+ end
107
+
104
108
  def display
105
109
  add panel
106
110
  set_size 200, 30 + (64 * elements.size)
@@ -133,7 +137,7 @@ module ControlPanel
133
137
  Menu.new(self, name, elements, initial_value, block || nil)
134
138
  end
135
139
 
136
- def checkbox(name, initial_value = nil, &block)
140
+ def checkbox(name, initial_value = false, &block)
137
141
  checkbox = Checkbox.new(self, name, block || nil)
138
142
  checkbox.do_click if initial_value == true
139
143
  end
@@ -150,10 +154,10 @@ module ControlPanel
150
154
 
151
155
  def set_feel(lf = 'metal')
152
156
  lafinfo = javax.swing.UIManager.getInstalledLookAndFeels
153
- laf = lafinfo.select do |info|
154
- info.getName.eql? lf.capitalize
157
+ laf = lafinfo.to_ary.select do |info|
158
+ info.name =~ Regexp.new(Regexp.escape(lf), Regexp::IGNORECASE)
155
159
  end
156
- javax.swing.UIManager.setLookAndFeel(laf[0].getClassName)
160
+ javax.swing.UIManager.setLookAndFeel(laf[0].class_name)
157
161
  end
158
162
  end
159
163
 
@@ -168,4 +172,4 @@ module ControlPanel
168
172
  end
169
173
  end
170
174
 
171
- Processing::App.send :include, ControlPanel::InstanceMethods
175
+ Processing::App.include(ControlPanel::InstanceMethods)
data/vendors/Rakefile CHANGED
@@ -9,9 +9,9 @@ WARNING = <<-EOS.freeze
9
9
  EOS
10
10
 
11
11
 
12
- JRUBYC_VERSION = '9.1.10.0'
12
+ JRUBYC_VERSION = '9.1.12.0'
13
13
 
14
- EXAMPLES = '2.1'
14
+ EXAMPLES = '2.3'
15
15
  HOME_DIR = ENV['HOME']
16
16
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
17
17
 
@@ -30,7 +30,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
30
30
  warn(WARNING)
31
31
  end
32
32
 
33
- check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "3ec520273edcfb9051abd99ca9c646ad43e0eeeb615f7e546231783af6c5bb13")
33
+ check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "f97a65d79aa57f01328783dd00f81568f70dbf26a3ed2a502d6a985224d0ac72")
34
34
 
35
35
  end
36
36
 
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: 1.3.2
4
+ version: 1.3.3
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: 2017-06-11 00:00:00.000000000 Z
13
+ date: 2017-07-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - A decent graphics card
103
103
  - java runtime >= 1.8.0_131+
104
- - processing = 3.3.4
104
+ - processing = 3.3.5
105
105
  rubyforge_project:
106
106
  rubygems_version: 2.5.1
107
107
  signing_key: