jruby_art 2.1.0.pre → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbf26674aba52f404fc1679b7e35bfa75cd5792f0c675830ccddb729836737ed
4
- data.tar.gz: acea5fc131540b56debfb2f5e12d08c4992c73dd7812ab2abe33fffa2f51ff3e
3
+ metadata.gz: ebbb071256ed356c298940ff1d43ab297083601dd1133f8bdc2cd9372c2cab75
4
+ data.tar.gz: fdb9418da66238174d66ed86cd7e01737141612dac48069d81c73d65bd002928
5
5
  SHA512:
6
- metadata.gz: 721237157a7fcb8f143dd9fb6bb103e5daf6c18fe887270acdf02961253dea43fc4323c3d3ea9c057a444177b371ffc43a03e41995ec360a7f62a3acd8a0dfc0
7
- data.tar.gz: cb13667eefa322ceec5c7515db6018f85b25dd6fa5b93fb2d2d24cd4d8810f705955737280218e5aa8dc000f78509b14098ab48ce560b3ad7421dbca3d63c366
6
+ metadata.gz: db6e4d1bcccbe15f31785b4f454505d0fa298648ce119c2b6bba5cfca3da92a381b4fc1a1834d16611c7d3e569929347fabb0c29abf71bc8d91b51328450a2af
7
+ data.tar.gz: b3f8884511bbc842313fa8e20e38e0622e20199a0d36add5adc14ea59ac100ddbafeddfc4d7f22e4fbb39b1fab7a8f98e85b2ba37b91f7f568077fc9c1939f15
Binary file
@@ -1,16 +1,18 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # JRubyArt is for Code Art.
3
4
  # Send suggestions, ideas, and hate-mail to mamba2928 [at] gmail.com
4
5
  # Also, send samples and libraries.
5
6
  unless defined? K9_ROOT
6
- $LOAD_PATH << File.expand_path(File.dirname(__FILE__))
7
- K9_ROOT = File.expand_path(File.dirname(__FILE__) + '/../')
7
+ $LOAD_PATH << File.dirname(__dir__)
8
+ K9_ROOT = File.dirname(__dir__)
8
9
  end
9
10
 
10
- SKETCH_ROOT ||= Dir.pwd
11
-
12
11
  require "#{K9_ROOT}/lib/jruby_art/version"
13
12
  require "#{K9_ROOT}/lib/jruby_art/helpers/numeric"
13
+ # inherited from ruby-processing, we could probably re-factor this but since
14
+ # SKETCH_ROOT is used before instance of sketch is created leave it alone.
15
+ SKETCH_ROOT ||= Dir.pwd
14
16
 
15
17
  # The top-level namespace, a home for all JRubyArt classes.
16
18
  module Processing
@@ -15,6 +15,7 @@ module Processing
15
15
  include_package 'processing.core'
16
16
  # Load vecmath, fastmath and mathtool modules
17
17
  Java::Monkstone::JRLibrary.load(JRuby.runtime)
18
+
18
19
  # import custom Vecmath renderers
19
20
  module Render
20
21
  java_import 'monkstone.vecmath.GfxRender'
@@ -33,7 +34,7 @@ module Processing
33
34
  key_typed: :keyTyped
34
35
  }.freeze
35
36
  class << self
36
- attr_accessor :app
37
+ attr_accessor :app, :surface
37
38
  end
38
39
  # All sketches extend this class
39
40
  class App < PApplet
@@ -42,12 +43,11 @@ module Processing
42
43
  include MathTool
43
44
  include Render
44
45
  # Alias some methods for familiarity for Shoes coders.
45
- # surface replaces :frame, but needs field_reader for access
46
+ # surface replaces :frame
46
47
  alias oval ellipse
47
48
  alias stroke_width stroke_weight
48
49
  alias rgb color
49
50
  alias gray color
50
- field_reader :surface
51
51
 
52
52
  def sketch_class
53
53
  self.class.sketch_class
@@ -113,6 +113,7 @@ module Processing
113
113
  puts(exception.backtrace.map { |trace| "\t#{trace}" })
114
114
  close
115
115
  end
116
+ @surface = self.get_surface
116
117
  # NB: this is the processing runSketch() method as used by processing.py
117
118
  run_sketch
118
119
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '2.1.0.pre'.freeze
4
+ VERSION = '2.2.0'
5
5
  end
@@ -9,7 +9,7 @@ WARNING = <<-WARN.freeze
9
9
 
10
10
  WARN
11
11
 
12
- JRUBYC_VERSION = '9.2.7.0'.freeze
12
+ JRUBYC_VERSION = '9.2.8.0'.freeze
13
13
 
14
14
  EXAMPLES = '3.4'.freeze
15
15
  HOME_DIR = ENV['HOME']
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.1.0.pre
4
+ version: 2.2.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: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -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.1.0.pre.jar
60
+ - lib/jruby_art-2.2.0.jar
61
61
  - lib/jruby_art.rb
62
62
  - lib/jruby_art/app.rb
63
63
  - lib/jruby_art/config.rb
@@ -95,7 +95,8 @@ files:
95
95
  - vendors/Rakefile
96
96
  homepage: https://ruby-processing.github.io/JRubyArt/
97
97
  licenses:
98
- - MIT
98
+ - GPL-3.0
99
+ - LGPL-2.0
99
100
  metadata: {}
100
101
  post_install_message: Use 'k9 --install' to install jruby-complete, and 'k9 --check'
101
102
  to check config.
@@ -109,9 +110,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
110
  version: '2.3'
110
111
  required_rubygems_version: !ruby/object:Gem::Requirement
111
112
  requirements:
112
- - - ">"
113
+ - - ">="
113
114
  - !ruby/object:Gem::Version
114
- version: 1.3.1
115
+ version: '0'
115
116
  requirements:
116
117
  - A decent graphics card
117
118
  - java runtime >= 11.0.3+
Binary file