jruby_art 2.4.2 → 2.6.0
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 +4 -4
- data/lib/gluegen-rt-natives-linux-amd64.jar +0 -0
- data/lib/gluegen-rt-natives-macosx-universal.jar +0 -0
- data/lib/gluegen-rt-natives-windows-amd64.jar +0 -0
- data/lib/gluegen-rt.jar +0 -0
- data/lib/jogl-all-natives-linux-amd64.jar +0 -0
- data/lib/jogl-all-natives-macosx-universal.jar +0 -0
- data/lib/jogl-all-natives-windows-amd64.jar +0 -0
- data/lib/jogl-all.jar +0 -0
- data/lib/jruby_art/app.rb +1 -0
- data/lib/jruby_art/helper_methods.rb +6 -6
- data/lib/jruby_art/native_folder.rb +1 -1
- data/lib/jruby_art/processing_ide.rb +5 -3
- data/lib/jruby_art/runner.rb +3 -2
- data/lib/jruby_art/version.rb +1 -1
- data/lib/jruby_art-2.6.0.jar +0 -0
- data/lib/jruby_art.rb +0 -1
- data/library/pdf/itextpdf-5.5.13.2.jar +0 -0
- data/library/pdf/pdf.rb +7 -0
- data/library/svg/batik-all-1.14.jar +0 -0
- data/library/svg/svg.rb +7 -0
- data/vendors/Rakefile +12 -12
- metadata +11 -7
- data/lib/jruby_art-2.4.2.jar +0 -0
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
|
Binary file
|
Binary file
|
Binary file
|
data/lib/gluegen-rt.jar
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/jogl-all.jar
CHANGED
Binary file
|
data/lib/jruby_art/app.rb
CHANGED
@@ -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
|
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
# detects processing preferences.txt, extracts sketchbook_path
|
4
4
|
class ProcessingIde
|
5
|
+
THREE='sketchbook.path.three='.freeze
|
6
|
+
FOUR='sketchbook.path.four='.freeze
|
5
7
|
attr_reader :preferences
|
6
8
|
def initialize
|
7
9
|
@preferences = File.join(ENV['HOME'], '.processing', 'preferences.txt')
|
@@ -14,9 +16,9 @@ class ProcessingIde
|
|
14
16
|
def sketchbook_path
|
15
17
|
File.open(preferences, 'r') do |file|
|
16
18
|
file.each_line do |line|
|
17
|
-
if /sketchbook/.match?(line)
|
18
|
-
|
19
|
-
|
19
|
+
return line.tap { |sli| sli.slice!(FOUR) }.chomp if /sketchbook.path.four/.match?(line)
|
20
|
+
|
21
|
+
return line.tap { |sli| sli.slice!(THREE) }.chomp if /sketchbook.path.three/.match?(line)
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
data/lib/jruby_art/runner.rb
CHANGED
@@ -141,9 +141,10 @@ module Processing
|
|
141
141
|
def install(library = nil)
|
142
142
|
require_relative 'installer'
|
143
143
|
library ||= 'new'
|
144
|
-
|
144
|
+
choice = library.downcase
|
145
|
+
case choice
|
145
146
|
when /sound|video/
|
146
|
-
system "cd #{K9_ROOT}/vendors && rake
|
147
|
+
system "cd #{K9_ROOT}/vendors && rake install_#{choice}"
|
147
148
|
when /samples/
|
148
149
|
system "cd #{K9_ROOT}/vendors && rake install_samples"
|
149
150
|
when /jruby/
|
data/lib/jruby_art/version.rb
CHANGED
Binary file
|
data/lib/jruby_art.rb
CHANGED
Binary file
|
data/library/pdf/pdf.rb
ADDED
Binary file
|
data/library/svg/svg.rb
ADDED
data/vendors/Rakefile
CHANGED
@@ -11,15 +11,15 @@ 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
|
-
SOUND_VERSION = 'v2.2.
|
17
|
-
VIDEO = 'video
|
18
|
-
VIDEO_VERSION = '
|
19
|
-
EXAMPLES = '
|
16
|
+
SOUND_VERSION = 'v2.2.3'
|
17
|
+
VIDEO = 'video.zip'
|
18
|
+
VIDEO_VERSION = 'v2.0'
|
19
|
+
EXAMPLES = '4.1'
|
20
20
|
HOME_DIR = ENV['HOME']
|
21
21
|
MAC_OR_LINUX = /linux|mac|darwin/.match?(RbConfig::CONFIG['host_os'])
|
22
|
-
|
22
|
+
DOWNLOAD = 'releases/download/latest'
|
23
23
|
CLOBBER << "jruby-complete-#{JRUBYC_VERSION}.jar"
|
24
24
|
CLOBBER << "jruby-complete-#{JRUBYC_VERSION}.jar.sha256"
|
25
25
|
|
@@ -82,15 +82,15 @@ task :init_dir do
|
|
82
82
|
end
|
83
83
|
|
84
84
|
desc 'download and copy sound library to ~/.jruby_art'
|
85
|
-
task
|
85
|
+
task install_sound: %i[wget_check init_dir download_sound copy_sound clobber]
|
86
86
|
|
87
87
|
desc 'download and copy video library to ~/.jruby_art'
|
88
|
-
task
|
88
|
+
task install_video: %i[wget_check init_dir download_video copy_video clobber]
|
89
89
|
|
90
90
|
desc 'download sound library'
|
91
91
|
task :download_sound do
|
92
92
|
wget_base = 'wget https://github.com/processing/processing-sound'
|
93
|
-
wget_string = [wget_base,
|
93
|
+
wget_string = [wget_base, DOWNLOAD, SOUND].join('/')
|
94
94
|
puts wget_string
|
95
95
|
system wget_string
|
96
96
|
end
|
@@ -98,12 +98,12 @@ end
|
|
98
98
|
desc 'download video library'
|
99
99
|
task :download_video do
|
100
100
|
wget_base = 'wget https://github.com/processing/processing-video'
|
101
|
-
wget_string = [wget_base,
|
101
|
+
wget_string = [wget_base, DOWNLOAD, VIDEO].join('/')
|
102
102
|
system wget_string
|
103
103
|
end
|
104
104
|
|
105
105
|
desc 'copy sound library'
|
106
|
-
task copy_sound
|
106
|
+
task :copy_sound do
|
107
107
|
system "unzip #{SOUND}"
|
108
108
|
if File.exist? "#{HOME_DIR}/.jruby_art/libraries/sound"
|
109
109
|
FileUtils.rm_r "#{HOME_DIR}/.picrate/libraries/sound"
|
@@ -113,7 +113,7 @@ task copy_sound: SOUND do
|
|
113
113
|
end
|
114
114
|
|
115
115
|
desc 'copy video library'
|
116
|
-
task copy_video
|
116
|
+
task :copy_video do
|
117
117
|
system "unzip #{VIDEO}"
|
118
118
|
if File.exist? "#{HOME_DIR}/.jruby_art/libraries/video"
|
119
119
|
FileUtils.rm_r "#{HOME_DIR}/.picrate/libraries/video"
|
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:
|
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
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: '5.10'
|
19
19
|
name: minitest
|
20
|
-
type: :development
|
21
20
|
prerelease: false
|
21
|
+
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
@@ -31,15 +31,15 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '12.3'
|
33
33
|
name: rake
|
34
|
-
type: :development
|
35
34
|
prerelease: false
|
35
|
+
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '12.3'
|
41
41
|
description: |2
|
42
|
-
JRubyArt-2.
|
42
|
+
JRubyArt-2.5.0+ is a ruby implementation of the processing art framework, with enhanced
|
43
43
|
functionality. Processing libraries and ruby gems can be used in your sketches.
|
44
44
|
Features create/run/watch/live modes.
|
45
45
|
email: mamba2928@yahoo.co.uk
|
@@ -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
|
@@ -89,7 +89,11 @@ files:
|
|
89
89
|
- library/library_proxy/README.md
|
90
90
|
- library/library_proxy/library_proxy.rb
|
91
91
|
- library/net/net.rb
|
92
|
+
- library/pdf/itextpdf-5.5.13.2.jar
|
93
|
+
- library/pdf/pdf.rb
|
92
94
|
- library/slider/slider.rb
|
95
|
+
- library/svg/batik-all-1.14.jar
|
96
|
+
- library/svg/svg.rb
|
93
97
|
- library/vector_utils/vector_utils.rb
|
94
98
|
- library/video_event/video_event.rb
|
95
99
|
- vendors/Rakefile
|
@@ -116,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
120
|
requirements:
|
117
121
|
- A decent graphics card
|
118
122
|
- java runtime >= 11.0.3+
|
119
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.2.29
|
120
124
|
signing_key:
|
121
125
|
specification_version: 4
|
122
126
|
summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
|
data/lib/jruby_art-2.4.2.jar
DELETED
Binary file
|