jruby_art 1.7.0 → 2.0.0.pre

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: bf7e9cc088b896c579b6060d9de2339618e64c778841a7a3013ab524c717d4f7
4
- data.tar.gz: efa2ffb466a3b3707f892b4e1df7c2949f97555ffbfdb4a95a3790162af059e0
3
+ metadata.gz: 95ee9ba2c0566f581fcbeb6419b9833363db4c3241dceea519363df6ec4bf087
4
+ data.tar.gz: 36e05debb0b7b3eff6de066214d8268aa1dbad95e7b555878b307fb688def583
5
5
  SHA512:
6
- metadata.gz: e3da93db8cf08f3256e882647fea84144e9f6b1a78d643c9aa4d2f3361d0bac5eb43f7c371cbf5e28ac7fce85683263a63acfbd7495049f7d4e70c12e635c8bf
7
- data.tar.gz: cdadd37a6a7eed36508595407e568664e851634b0186cf530a5f42bba3d8530d32ae17a2e62f4eab576610019bf5441e6cbc2de601748829360048bcb47a6441
6
+ metadata.gz: '09e63329ce38c729359ceba06eb607560ad17b867a02bd81601ef0932ec0e2fa5c57a24fe9489aaeacc109117a5bbe9d5cec0f3f29e30990adc3917193f73dc4'
7
+ data.tar.gz: a48465a30672125a40d8188a5c04610c1fa6665048a0d1165f1d2bbbcb80a4e1e5abdef0bd7a7d70bab7509c7930e90001e2b7f3201974d4508c40546fabd907
Binary file
Binary file
Binary file
@@ -1,7 +1,8 @@
1
-
2
- # frozen_string_literal: false
3
1
  require 'java'
4
- require_relative '../rpextras'
2
+ require_relative '../jruby_art'
3
+ Dir["#{K9_ROOT}/lib/*.jar"].each do |jar|
4
+ require jar
5
+ end
5
6
  require_relative '../jruby_art/helper_methods'
6
7
  require_relative '../jruby_art/helpers/aabb'
7
8
  require_relative '../jruby_art/library_loader'
@@ -9,13 +10,13 @@ require_relative '../jruby_art/config'
9
10
 
10
11
  # A wrapper module for the processing App
11
12
  module Processing
12
- Dir[format("%s/core/library/\*.jar", RP_CONFIG['PROCESSING_ROOT'])].each do |jar|
13
- require jar unless jar =~ /native/
14
- end
13
+
15
14
  # Include some core processing classes that we'd like to use:
16
15
  include_package 'processing.core'
16
+ java_import 'processing.core.PFont'
17
17
  # Load vecmath, fastmath and mathtool modules
18
18
  Java::Monkstone::JRLibrary.load(JRuby.runtime)
19
+ # import custom Vecmath renderers
19
20
  module Render
20
21
  java_import 'monkstone.vecmath.GfxRender'
21
22
  java_import 'monkstone.vecmath.ShapeRender'
@@ -86,6 +87,7 @@ module Processing
86
87
  # Processing call them by their expected Java names.
87
88
  def method_added(method_name) #:nodoc:
88
89
  return unless METHODS_TO_ALIAS.key?(method_name)
90
+
89
91
  alias_method METHODS_TO_ALIAS[method_name], method_name
90
92
  end
91
93
  end
@@ -117,9 +119,9 @@ module Processing
117
119
  end
118
120
 
119
121
  def size(*args)
120
- w, h, mode = *args
121
- @width ||= w
122
- @height ||= h
122
+ width, height, mode = *args
123
+ @width ||= width
124
+ @height ||= height
123
125
  @render_mode ||= mode
124
126
  import_opengl if /opengl/ =~ mode
125
127
  super(*args)
@@ -131,6 +133,7 @@ module Processing
131
133
 
132
134
  def sketch_path(spath = '')
133
135
  return super() if spath.empty?
136
+
134
137
  super(spath)
135
138
  end
136
139
 
@@ -181,19 +184,22 @@ module Processing
181
184
  klass.constants.each do |name|
182
185
  const = klass.const_get name
183
186
  next if const.class != Class || const.to_s.match(/^Java::/)
184
- const.class_eval 'include Processing::Proxy'
187
+
188
+ const.class_eval 'include Processing::Proxy', __FILE__, __LINE__
185
189
  end
186
190
  end
187
191
 
188
192
  def import_opengl
189
193
  # Include processing opengl classes that we'd like to use:
194
+ opengl = 'processing.opengl.%s'
190
195
  %w[FontTexture FrameBuffer LinePath LineStroker PGL
191
196
  PGraphics2D PGraphics3D PGraphicsOpenGL PShader
192
197
  PShapeOpenGL Texture].each do |klass|
193
- java_import format('processing.opengl.%s', klass)
198
+ java_import format(opengl, klass)
194
199
  end
195
200
  end
196
- end # Processing::App
201
+ end
202
+ # Processing::App
197
203
 
198
204
  # @HACK purists may prefer 'forwardable' to the use of Proxy
199
205
  # Importing PConstants here to access the processing constants
@@ -207,8 +213,12 @@ module Processing
207
213
  end
208
214
 
209
215
  def method_missing(name, *args)
210
- return Processing.app.send(name, *args) if Processing.app && Processing.app.respond_to?(name)
216
+ app = Processing.app
217
+ return app.send(name, *args) if app && app.respond_to?(name)
218
+
211
219
  super
212
220
  end
213
- end # Processing::Proxy
214
- end # Processing
221
+ end
222
+ # Processing::Proxy
223
+ end
224
+ # Processing
@@ -1,44 +1,43 @@
1
- # frozen_string_literal: false
2
-
3
1
  require 'yaml'
2
+ require_relative 'default_config'
3
+ require_relative 'version'
4
+ HOME = ENV['HOME']
5
+ # Configuration class
6
+ class Config
7
+ attr_reader :config
8
+ def initialize(conf = {})
9
+ @config = Default.config.merge(conf)
10
+ end
4
11
 
5
- # The wrapper module
6
- module Processing
7
- unless defined? RP_CONFIG
8
- config_path = "#{ENV['HOME']}/.jruby_art/config.yml"
9
- begin
10
- CONFIG_FILE_PATH = File.expand_path(config_path)
11
- RP_CONFIG = YAML.safe_load(File.read(CONFIG_FILE_PATH))
12
- rescue
13
- warn(format('WARN: you need to set PROCESSING_ROOT in %s', config_path))
14
- end
12
+ def write_to_file
13
+ directory = File.join(HOME, '.jruby_art')
14
+ Dir.mkdir(directory) unless Dir.exist? directory
15
+ File.write(File.join(HOME, '.jruby_art', 'config.yml'), config.to_yaml)
15
16
  end
16
17
 
17
- WIN_PATTERNS = [
18
- /bccwin/i,
19
- /cygwin/i,
20
- /djgpp/i,
21
- /ming/i,
22
- /mswin/i,
23
- /wince/i
24
- ].freeze
18
+ def load_config
19
+ config_path = File.join(File.join(HOME, '.jruby_art', 'config.yml'))
20
+ if File.exist? config_path
21
+ loaded = YAML.safe_load(File.read(config_path))
22
+ @config = Default.config.merge(loaded)
23
+ return self unless loaded.key? 'PROCESSING_ROOT'
25
24
 
26
- # This class knows about supported JRubyArt operating systems
27
- class HostOS
28
- def self.os
29
- detect_os = RbConfig::CONFIG['host_os']
30
- case detect_os
31
- when /mac|darwin/ then :mac
32
- when /gnueabihf/ then :arm
33
- when /linux/ then :linux
34
- when /solaris|bsd/ then :unix
35
- else
36
- WIN_PATTERNS.find { |reg| detect_os =~ reg }
37
- raise "unsupported os: #{detect_os.inspect}" if Regexp.last_match.nil?
38
- :windows
39
- end
25
+ warn '*********** Move Old Config File ***************'
40
26
  end
27
+ @config = Default.config
28
+ warn '*********** Default Config Loaded ***************'
29
+ self
41
30
  end
42
31
 
43
- OS ||= HostOS.os
32
+ def check
33
+ load_config
34
+ puts "JRubyArt version #{JRubyArt::VERSION}"
35
+ puts 'Approximates to Processing-4.0'
36
+ puts "processing ide = #{config.fetch('processing_ide', false)}"
37
+ puts "library_path = #{config.fetch('library_path', File.join(HOME, '.jruby_art'))}"
38
+ puts "template = #{config.fetch('template', 'bare')}"
39
+ puts "java_args = #{config.fetch('java_args', '')}"
40
+ puts "MAX_WATCH = #{config.fetch('MAX_WATCH', 32)}"
41
+ puts "JRUBY = #{config.fetch('JRUBY', true)}"
42
+ end
44
43
  end
@@ -0,0 +1,13 @@
1
+ # default configuration
2
+ class Default
3
+ def self.config
4
+ {
5
+ 'processing_ide' => false,
6
+ 'library_path' => File.join(ENV['HOME'], '.jruby_art', 'libraries'),
7
+ 'MAX_WATCH' => 32,
8
+ 'JRUBY' => true,
9
+ 'template' => 'bare',
10
+ 'java_args' => nil
11
+ }
12
+ end
13
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: false
2
2
  # processing module wrapper
3
- require_relative '../rpextras'
3
+ require_relative '../jruby_art'
4
4
 
5
5
  module Processing
6
6
  # Provides some convenience methods
@@ -1,99 +1,34 @@
1
- # frozen_string_literal: false
1
+ require_relative 'config'
2
+ require_relative 'processing_ide'
2
3
 
3
- require 'yaml'
4
- VERSION = '3.5.3'.freeze # processing version
5
- HOME = ENV['HOME']
6
- # Abstract Installer class
7
4
  class Installer
8
- attr_reader :os, :sketch, :gem_root, :confd
9
- def initialize(root, os)
10
- @os = os
11
- @gem_root = root
12
- @sketch = "#{HOME}/sketchbook" if os == :linux
13
- @sketch = "#{HOME}/My Documents/Processing" if os == :windows
14
- @sketch = "#{HOME}/Documents/Processing" if os == :mac
15
- @confd = "#{HOME}/.jruby_art"
5
+ attr_reader :processing_ide
6
+ def initialize
7
+ @processing_ide = ProcessingIde.new
16
8
  end
17
9
 
18
- # Optimistically set processing root
19
- def set_processing_root
20
- folder = "#{HOME}/.jruby_art"
21
- Dir.mkdir(folder) unless File.exist? folder
22
- path = File.join(folder, 'config.yml')
23
- proot = "#{HOME}/processing-#{VERSION}"
24
- proot = "/usr/local/lib/processing-#{VERSION}" if os == :arm
25
- proot = "/Java/Processing-#{VERSION}" if os == :windows
26
- proot = '/Applications/Processing.app/Contents/Java' if os == :mac
27
- jruby = true
28
- jruby = false if os == :arm
29
- settings = %w[
30
- PROCESSING_ROOT JRUBY sketchbook_path template MAX_WATCH sketch_title width height
31
- ]
32
- values = [
33
- proot, true, sketch, 'bare', 32, 'JRubyArt Static Sketch', 600, 600
34
- ]
35
- data = settings.zip(values).to_h
36
- open(path, 'w:UTF-8') { |file| file.write(data.to_yaml) }
37
- warn 'PROCESSING_ROOT set optimistically, run check to confirm'
38
- end
39
-
40
- def root_exist?
41
- Core.check?(config['PROCESSING_ROOT'])
42
- end
43
-
44
- def config
45
- k9config = File.join(confd, 'config.yml')
46
- return '' unless File.exist? k9config
47
- YAML.load_file(k9config)
48
- end
49
-
50
- # in place of default installer class
51
- def install
52
- puts 'Usage: k9 [--check | --install | --help]'
53
- end
54
-
55
- # Display the current version of JRubyArt.
56
- def show_version
57
- puts format('JRubyArt version %s', JRubyArt::VERSION)
58
- puts format('Expected Processing version %s', VERSION)
59
- end
60
- end
61
-
62
- # Configuration checker
63
- class Check < Installer
64
- require_relative './core'
65
10
  def install
66
- show_version
67
- return super unless config
68
- installed = File.exist? File.join(gem_root, 'lib/ruby/jruby-complete.jar')
69
- proot = ' PROCESSING_ROOT = Not Set Correctly!!!' unless root_exist?
70
- proot ||= " PROCESSING_ROOT = #{config['PROCESSING_ROOT']}"
71
- sketchbook = " sketchbook_path = #{config['sketchbook_path']}"
72
- template = " template = #{config['template']}"
73
- java_args = " java_args = #{config['java_args']}"
74
- max_watch = " MAX_WATCH = #{config['MAX_WATCH']}"
75
- jruby = config.fetch('JRUBY', true)
76
- puts proot
77
- puts " JRUBY = #{jruby}" unless jruby.nil?
78
- puts " jruby-complete installed = #{installed}"
79
- puts sketchbook
80
- puts template
81
- puts java_args
82
- puts max_watch
11
+ if processing_ide.installed?
12
+ config = Config.new(
13
+ 'processing_ide' => true,
14
+ 'library_path' => processing_ide.sketchbook_path)
15
+ else
16
+ config = Config.new('processing_ide' => false)
17
+ end
18
+ config.write_to_file
83
19
  end
84
20
  end
85
21
 
86
22
  # Examples Installer
87
- class UnpackSamples < Installer
23
+ class UnpackSamples
88
24
  def install
89
- system "cd #{gem_root}/vendors && rake unpack_samples"
25
+ system "cd #{K9_ROOT}/vendors && rake unpack_samples"
90
26
  end
91
27
  end
92
28
 
93
29
  # JRuby-Complete installer
94
- class JRubyCompleteInstall < Installer
30
+ class JRubyCompleteInstall
95
31
  def install
96
- set_processing_root unless File.exist? File.join(confd, 'config.yml')
97
- system "cd #{gem_root}/vendors && rake"
32
+ system "cd #{K9_ROOT}/vendors && rake"
98
33
  end
99
34
  end
@@ -3,7 +3,6 @@ require_relative 'native_loader'
3
3
 
4
4
  require 'pathname'
5
5
 
6
- BUNDLED = %r{pdf|net|dxf|svg|serial}
7
6
  # This class knows where to find propane libraries
8
7
  class Library
9
8
  require_relative '../jruby_art'
@@ -22,6 +21,7 @@ class Library
22
21
  return if (@path = Pathname.new(
23
22
  File.join(K9_ROOT, 'library', name, "#{name}.rb")
24
23
  )).exist?
24
+
25
25
  locate_java
26
26
  end
27
27
 
@@ -30,33 +30,26 @@ class Library
30
30
  File.join(SKETCH_ROOT, 'library', name)
31
31
  )
32
32
  return @path = dir.join(Pathname.new("#{name}.jar")) if dir.directory?
33
+
33
34
  locate_installed_java
34
35
  end
35
36
 
36
37
  def locate_installed_java
37
- prefix = bundled? ? File.join(root, 'modes/java') : sketchbook
38
+ prefix = library_path
38
39
  @dir = Pathname.new(
39
40
  File.join(prefix, "libraries/#{name}/library")
40
41
  )
41
42
  @path = dir.join(Pathname.new("#{name}.jar"))
42
43
  end
43
44
 
44
- def sketchbook
45
- Processing::RP_CONFIG.fetch('sketchbook_path', "#{ENV['HOME']}/sketchbook")
46
- end
47
-
48
- def root
49
- Processing::RP_CONFIG.fetch('PROCESSING_ROOT', "#{ENV['HOME']}/processing")
45
+ def library_path
46
+ Processing::RP_CONFIG.fetch('library_path', "#{ENV['HOME']}/.jruby_art")
50
47
  end
51
48
 
52
49
  def ruby?
53
50
  path.extname == '.rb'
54
51
  end
55
52
 
56
- def bundled?
57
- BUNDLED =~ name
58
- end
59
-
60
53
  def exist?
61
54
  path.exist?
62
55
  end
@@ -66,6 +59,7 @@ class Library
66
59
  require jar
67
60
  end
68
61
  return unless native_binaries?
62
+
69
63
  add_binaries_to_classpath
70
64
  end
71
65
 
@@ -0,0 +1,19 @@
1
+ # detects processing preferences.txt, extracts sketchbook_path
2
+ class ProcessingIde
3
+ attr_reader :preferences
4
+ def initialize
5
+ @preferences = File.join(ENV['HOME'], '.processing', 'preferences.txt')
6
+ end
7
+
8
+ def installed?
9
+ File.exist?(preferences)
10
+ end
11
+
12
+ def sketchbook_path
13
+ File.open(preferences, 'r') do |file|
14
+ file.each_line do |line|
15
+ return line.tap { |sli| sli.slice!('sketchbook.path.three=') }.chomp if line =~ /sketchbook/
16
+ end
17
+ end
18
+ end
19
+ end
@@ -11,6 +11,10 @@ require_relative '../jruby_art/launcher'
11
11
  module Processing
12
12
  # Utility class to handle the different commands that the 'k9' command
13
13
  # offers. Able to run, watch, live, create, app, and unpack
14
+ unless defined? RP_CONFIG
15
+ conf = Config.new.load_config
16
+ RP_CONFIG = conf.config
17
+ end
14
18
  class Runner
15
19
  WIN_PATTERNS = [
16
20
  /bccwin/i,
@@ -135,14 +139,15 @@ module Processing
135
139
  end
136
140
 
137
141
  def install
138
- require_relative '../jruby_art/installer'
139
- JRubyCompleteInstall.new(K9_ROOT, OS).install
140
- UnpackSamples.new(K9_ROOT, OS).install
142
+ require_relative 'installer'
143
+ Installer.new.install
144
+ JRubyCompleteInstall.new.install
145
+ UnpackSamples.new.install
141
146
  end
142
147
 
143
148
  def check
144
- require_relative '../jruby_art/installer'
145
- Check.new(K9_ROOT, OS).install
149
+ require_relative '../jruby_art/config'
150
+ Config.new.check
146
151
  end
147
152
 
148
153
  # Show the standard help/usage message.
@@ -152,9 +157,9 @@ module Processing
152
157
 
153
158
  def show_version
154
159
  require 'erb'
155
- warning = 'WARNING: JDK8 is preferred'.freeze
160
+ warning = 'WARNING: JDK11 is preferred'.freeze
156
161
  if RUBY_PLATFORM == 'java'
157
- warn warning unless ENV_JAVA['java.specification.version'] == '1.8'
162
+ warn warning unless ENV_JAVA['java.specification.version'] == '11'
158
163
  end
159
164
  template = ERB.new <<-EOF
160
165
  JRubyArt version <%= JRubyArt::VERSION %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.7.0'.freeze
4
+ VERSION = '2.0.0.pre'.freeze
5
5
  end
@@ -1,3 +1,4 @@
1
+ require 'fileutils'
1
2
  require 'rake/clean'
2
3
 
3
4
  WARNING = <<-WARN.freeze
@@ -19,7 +20,7 @@ CLOBBER << "jruby-complete-#{JRUBYC_VERSION}.jar.sha256"
19
20
 
20
21
  file "jruby-complete-#{JRUBYC_VERSION}.jar.sha256" do
21
22
  begin
22
- sh "wget https://repo1.maven.org/maven2/org/jruby/jruby-complete/#{JRUBYC_VERSION}/jruby-complete-#{JRUBYC_VERSION}.jar.sha256"
23
+ system "wget https://repo1.maven.org/maven2/org/jruby/jruby-complete/#{JRUBYC_VERSION}/jruby-complete-#{JRUBYC_VERSION}.jar.sha256"
23
24
  rescue
24
25
  warn(WARNING)
25
26
  end
@@ -36,7 +37,7 @@ task download: ["jruby-complete-#{JRUBYC_VERSION}.jar"]
36
37
 
37
38
  file "jruby-complete-#{JRUBYC_VERSION}.jar" do
38
39
  begin
39
- sh "wget https://repo1.maven.org/maven2/org/jruby/jruby-complete/#{JRUBYC_VERSION}/jruby-complete-#{JRUBYC_VERSION}.jar"
40
+ system "wget https://repo1.maven.org/maven2/org/jruby/jruby-complete/#{JRUBYC_VERSION}/jruby-complete-#{JRUBYC_VERSION}.jar"
40
41
  rescue
41
42
  warn(WARNING)
42
43
  end
@@ -48,7 +49,9 @@ directory '../lib/ruby'
48
49
 
49
50
  desc 'copy jruby-complete'
50
51
  task copy_ruby: ['../lib/ruby'] do
51
- sh "cp -v jruby-complete-#{JRUBYC_VERSION}.jar ../lib/ruby/jruby-complete.jar"
52
+ FileUtils.cp(
53
+ "jruby-complete-#{JRUBYC_VERSION}.jar", '../lib/ruby/jruby-complete.jar'
54
+ )
52
55
  end
53
56
 
54
57
  def check_sha256(filename, expected_hash)
@@ -73,9 +76,9 @@ file_name = MAC_OR_LINUX.nil? ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
73
76
  file file_name do
74
77
  begin
75
78
  if MAC_OR_LINUX.nil?
76
- sh "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.zip"
79
+ system "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.zip"
77
80
  else
78
- sh "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.tar.gz"
81
+ system "wget https://github.com/ruby-processing/JRubyArt-examples/archive/#{EXAMPLES}.tar.gz"
79
82
  end
80
83
  rescue
81
84
  warn(WARNING)
@@ -89,7 +92,7 @@ task copy_examples: file_name do
89
92
  else
90
93
  sh "tar xzvf #{EXAMPLES}.tar.gz"
91
94
  end
92
- sh "rm -r #{HOME_DIR}/k9_samples" if File.exist? "#{HOME_DIR}/k9_samples"
93
- sh "cp -r JRubyArt-examples-#{EXAMPLES} #{HOME_DIR}/k9_samples"
94
- sh "rm -r JRubyArt-examples-#{EXAMPLES}"
95
+ FileUtils.rm_r("#{HOME_DIR}/k9_samples") if File.exist? "#{HOME_DIR}/k9_samples"
96
+ FileUtils.cp_r("JRubyArt-examples-#{EXAMPLES}", "#{HOME_DIR}/k9_samples")
97
+ FileUtils.rm_r("JRubyArt-examples-#{EXAMPLES}")
95
98
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby_art
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 2.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
- - Jeremy Ashkenas
8
- - Guillaume Pierronnet
9
7
  - Martin Prout
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2019-05-17 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: rake
@@ -41,7 +39,7 @@ dependencies:
41
39
  - !ruby/object:Gem::Version
42
40
  version: '5.10'
43
41
  description: |2
44
- JRubyArt is a ruby wrapper for the processing art framework, with enhanced
42
+ JRubyArt is a ruby implementation of the processing art framework, with enhanced
45
43
  functionality. Use both processing libraries and ruby gems in your sketches.
46
44
  Features create/run/watch/live modes.
47
45
  email: mamba2928@yahoo.co.uk
@@ -51,11 +49,20 @@ extensions: []
51
49
  extra_rdoc_files: []
52
50
  files:
53
51
  - bin/k9
52
+ - lib/gluegen-rt-natives-linux-amd64.jar
53
+ - lib/gluegen-rt-natives-macosx-universal.jar
54
+ - lib/gluegen-rt-natives-windows-amd64.jar
55
+ - lib/gluegen-rt.jar
56
+ - lib/jogl-all-natives-linux-amd64.jar
57
+ - lib/jogl-all-natives-macosx-universal.jar
58
+ - lib/jogl-all-natives-windows-amd64.jar
59
+ - lib/jogl-all.jar
60
+ - lib/jruby_art.jar
54
61
  - lib/jruby_art.rb
55
62
  - lib/jruby_art/app.rb
56
63
  - lib/jruby_art/config.rb
57
- - lib/jruby_art/core.rb
58
64
  - lib/jruby_art/creators/sketch_writer.rb
65
+ - lib/jruby_art/default_config.rb
59
66
  - lib/jruby_art/helper_methods.rb
60
67
  - lib/jruby_art/helpers/aabb.rb
61
68
  - lib/jruby_art/helpers/numeric.rb
@@ -67,13 +74,13 @@ files:
67
74
  - lib/jruby_art/library_loader.rb
68
75
  - lib/jruby_art/native_folder.rb
69
76
  - lib/jruby_art/native_loader.rb
77
+ - lib/jruby_art/processing_ide.rb
70
78
  - lib/jruby_art/runner.rb
71
79
  - lib/jruby_art/runners/base.rb
72
80
  - lib/jruby_art/runners/live.rb
73
81
  - lib/jruby_art/runners/run.rb
74
82
  - lib/jruby_art/runners/watch.rb
75
83
  - lib/jruby_art/version.rb
76
- - lib/rpextras.jar
77
84
  - library/boids/boids.rb
78
85
  - library/chooser/chooser.rb
79
86
  - library/color_group/color_group.rb
@@ -100,14 +107,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
107
  version: '2.3'
101
108
  required_rubygems_version: !ruby/object:Gem::Requirement
102
109
  requirements:
103
- - - ">="
110
+ - - ">"
104
111
  - !ruby/object:Gem::Version
105
- version: '0'
112
+ version: 1.3.1
106
113
  requirements:
107
114
  - A decent graphics card
108
- - java runtime >= 1.8.0_171+
109
- - processing = 3.5.3
110
- rubygems_version: 3.0.1
115
+ - java runtime >= 11.0.3+
116
+ rubygems_version: 3.0.3
111
117
  signing_key:
112
118
  specification_version: 4
113
119
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
- # module encapsulates a check that the PROCESSING_ROOT exists
3
- module Core
4
- def self.check?(path)
5
- if File.directory?(path)
6
- core_path = File.join(path, 'core/library/core.jar')
7
- return true if File.exist?(core_path)
8
- warn format('%s jar does not exist', core_path)
9
- else warn format('%s directory does not exist', path)
10
- end
11
- end
12
- end
13
-
14
- # Provided processing distributions have the same nested structure ie:-
15
- # "core/library/core.jar" we can find "core.jar" when PROCESSING_ROOT exists
Binary file