propane 3.4.2-java → 3.8.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/extensions.xml +1 -1
  3. data/.mvn/wrapper/MavenWrapperDownloader.java +2 -2
  4. data/.mvn/wrapper/maven-wrapper.properties +2 -2
  5. data/.travis.yml +1 -1
  6. data/CHANGELOG.md +9 -1
  7. data/Gemfile +2 -0
  8. data/README.md +7 -10
  9. data/Rakefile +10 -11
  10. data/bin/propane +3 -1
  11. data/lib/propane.rb +4 -2
  12. data/lib/propane/app.rb +5 -1
  13. data/lib/propane/creators/sketch_class.rb +7 -1
  14. data/lib/propane/creators/sketch_factory.rb +4 -2
  15. data/lib/propane/creators/sketch_writer.rb +1 -0
  16. data/lib/propane/helper_methods.rb +22 -23
  17. data/lib/propane/helpers/numeric.rb +2 -0
  18. data/lib/propane/helpers/version_error.rb +1 -0
  19. data/lib/propane/library.rb +5 -1
  20. data/lib/propane/library_loader.rb +2 -0
  21. data/lib/propane/native_folder.rb +10 -9
  22. data/lib/propane/native_loader.rb +3 -0
  23. data/lib/propane/runner.rb +20 -14
  24. data/lib/propane/version.rb +2 -1
  25. data/library/boids/boids.rb +21 -11
  26. data/library/color_group/color_group.rb +2 -0
  27. data/library/control_panel/control_panel.rb +8 -5
  28. data/library/dxf/dxf.rb +2 -0
  29. data/library/file_chooser/chooser.rb +10 -9
  30. data/library/file_chooser/file_chooser.rb +10 -9
  31. data/library/library_proxy/library_proxy.rb +2 -0
  32. data/library/net/net.rb +2 -0
  33. data/library/slider/slider.rb +23 -22
  34. data/library/vector_utils/vector_utils.rb +4 -0
  35. data/library/video_event/video_event.rb +2 -0
  36. data/pom.rb +37 -36
  37. data/pom.xml +7 -7
  38. data/propane.gemspec +13 -9
  39. data/src/main/java/japplemenubar/JAppleMenuBar.java +3 -3
  40. data/src/main/java/monkstone/ColorUtil.java +1 -3
  41. data/src/main/java/monkstone/MathToolModule.java +1 -1
  42. data/src/main/java/monkstone/PropaneLibrary.java +2 -2
  43. data/src/main/java/monkstone/fastmath/DegLutTables.java +111 -0
  44. data/src/main/java/monkstone/fastmath/Deglut.java +6 -56
  45. data/src/main/java/monkstone/filechooser/Chooser.java +1 -1
  46. data/src/main/java/monkstone/noise/Noise.java +116 -0
  47. data/src/main/java/monkstone/noise/NoiseGenerator.java +63 -0
  48. data/src/main/java/monkstone/noise/NoiseMode.java +15 -0
  49. data/src/main/java/monkstone/noise/SimplexNoise.java +137 -103
  50. data/src/main/java/monkstone/noise/ValueNoise.java +170 -0
  51. data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
  52. data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
  53. data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +1 -1
  54. data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +1 -1
  55. data/src/main/java/monkstone/slider/SliderBar.java +1 -1
  56. data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
  57. data/src/main/java/monkstone/slider/WheelHandler.java +1 -1
  58. data/src/main/java/monkstone/vecmath/package-info.java +1 -1
  59. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +1 -1
  60. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -2
  61. data/src/main/java/monkstone/videoevent/CaptureEvent.java +1 -1
  62. data/src/main/java/monkstone/videoevent/MovieEvent.java +1 -1
  63. data/src/main/java/monkstone/videoevent/package-info.java +1 -1
  64. data/src/main/java/processing/awt/PGraphicsJava2D.java +781 -285
  65. data/src/main/java/processing/awt/PImageAWT.java +377 -0
  66. data/src/main/java/processing/awt/PShapeJava2D.java +56 -52
  67. data/src/main/java/processing/awt/PSurfaceAWT.java +308 -208
  68. data/src/main/java/processing/awt/ShimAWT.java +581 -0
  69. data/src/main/java/processing/core/PApplet.java +13142 -13883
  70. data/src/main/java/processing/core/PConstants.java +477 -447
  71. data/src/main/java/processing/core/PFont.java +914 -880
  72. data/src/main/java/processing/core/PGraphics.java +152 -136
  73. data/src/main/java/processing/core/PImage.java +275 -372
  74. data/src/main/java/processing/core/PMatrix.java +172 -159
  75. data/src/main/java/processing/core/PMatrix2D.java +478 -415
  76. data/src/main/java/processing/core/PMatrix3D.java +762 -735
  77. data/src/main/java/processing/core/PShape.java +2887 -2651
  78. data/src/main/java/processing/core/PShapeOBJ.java +97 -92
  79. data/src/main/java/processing/core/PShapeSVG.java +1705 -1490
  80. data/src/main/java/processing/core/PStyle.java +40 -37
  81. data/src/main/java/processing/core/PSurface.java +139 -97
  82. data/src/main/java/processing/core/PSurfaceNone.java +296 -218
  83. data/src/main/java/processing/core/PVector.java +995 -963
  84. data/src/main/java/processing/core/ThinkDifferent.java +12 -8
  85. data/src/main/java/processing/data/DoubleDict.java +756 -710
  86. data/src/main/java/processing/data/DoubleList.java +749 -696
  87. data/src/main/java/processing/data/FloatDict.java +748 -702
  88. data/src/main/java/processing/data/FloatList.java +751 -697
  89. data/src/main/java/processing/data/IntDict.java +720 -673
  90. data/src/main/java/processing/data/IntList.java +699 -633
  91. data/src/main/java/processing/data/JSONArray.java +931 -873
  92. data/src/main/java/processing/data/JSONObject.java +1262 -1165
  93. data/src/main/java/processing/data/JSONTokener.java +351 -341
  94. data/src/main/java/processing/data/LongDict.java +710 -663
  95. data/src/main/java/processing/data/LongList.java +701 -635
  96. data/src/main/java/processing/data/Sort.java +37 -41
  97. data/src/main/java/processing/data/StringDict.java +525 -486
  98. data/src/main/java/processing/data/StringList.java +626 -580
  99. data/src/main/java/processing/data/Table.java +3690 -3510
  100. data/src/main/java/processing/data/TableRow.java +182 -183
  101. data/src/main/java/processing/data/XML.java +957 -883
  102. data/src/main/java/processing/event/Event.java +87 -67
  103. data/src/main/java/processing/event/KeyEvent.java +48 -41
  104. data/src/main/java/processing/event/MouseEvent.java +88 -113
  105. data/src/main/java/processing/event/TouchEvent.java +10 -6
  106. data/src/main/java/processing/javafx/PGraphicsFX2D.java +20 -345
  107. data/src/main/java/processing/javafx/PSurfaceFX.java +149 -121
  108. data/src/main/java/processing/net/Client.java +20 -20
  109. data/src/main/java/processing/net/Server.java +9 -9
  110. data/src/main/java/processing/opengl/FontTexture.java +286 -266
  111. data/src/main/java/processing/opengl/FrameBuffer.java +389 -377
  112. data/src/main/java/processing/opengl/LinePath.java +132 -89
  113. data/src/main/java/processing/opengl/LineStroker.java +588 -581
  114. data/src/main/java/processing/opengl/PGL.java +660 -567
  115. data/src/main/java/processing/opengl/PGraphics2D.java +408 -315
  116. data/src/main/java/processing/opengl/PGraphics3D.java +107 -72
  117. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +12378 -12075
  118. data/src/main/java/processing/opengl/PJOGL.java +1753 -1670
  119. data/src/main/java/processing/opengl/PShader.java +369 -461
  120. data/src/main/java/processing/opengl/PShapeOpenGL.java +4678 -4580
  121. data/src/main/java/processing/opengl/PSurfaceJOGL.java +1114 -1027
  122. data/src/main/java/processing/opengl/Texture.java +1492 -1401
  123. data/src/main/java/processing/opengl/VertexBuffer.java +57 -55
  124. data/test/create_test.rb +21 -20
  125. data/test/deglut_spec_test.rb +4 -2
  126. data/test/helper_methods_test.rb +49 -20
  127. data/test/math_tool_test.rb +39 -32
  128. data/test/native_folder.rb +47 -0
  129. data/test/respond_to_test.rb +3 -2
  130. data/test/sketches/key_event.rb +2 -2
  131. data/test/sketches/library/my_library/my_library.rb +3 -0
  132. data/test/test_helper.rb +2 -0
  133. data/test/vecmath_spec_test.rb +35 -22
  134. data/vendors/Rakefile +35 -40
  135. metadata +47 -23
  136. data/library/simplex_noise/simplex_noise.rb +0 -3
  137. data/src/main/java/processing/opengl/shaders/LightVert-brcm.glsl +0 -154
  138. data/src/main/java/processing/opengl/shaders/LightVert-vc4.glsl +0 -154
  139. data/src/main/java/processing/opengl/shaders/TexLightVert-brcm.glsl +0 -160
  140. data/src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl +0 -160
@@ -1,9 +1,10 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'java'
3
4
  require_relative 'test_helper'
4
5
  require_relative '../lib/propane'
5
6
 
6
- METHODS = %i(
7
+ METHODS = %i[
7
8
  alpha
8
9
  ambient
9
10
  ambient_light
@@ -182,7 +183,7 @@ METHODS = %i(
182
183
  update_pixels
183
184
  vertex
184
185
  width
185
- )
186
+ ].freeze
186
187
 
187
188
  class TestSketch < Propane::App
188
189
  def settings
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env jruby
2
- require 'propane'
2
+ # frozen_string_literal: true
3
3
 
4
+ require 'propane'
4
5
 
5
6
  class CustomProxySketch < Propane::App
6
-
7
7
  # A simple demonstration of vanilla processing 'reflection' methods using
8
8
  # propane :library_proxy. See my_library.rb code for the guts.
9
9
  load_libraries :library_proxy, :my_library
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This class demonstrates how by inheriting from the abstract class LibraryProxy
2
4
  # we can access 'keyEvent' and 'draw' (Note we need a draw method even
3
5
  # though can be empty)
@@ -20,6 +22,7 @@ class MyLibrary < LibraryProxy
20
22
  def keyEvent(e) # NB: need camel case for reflection to work
21
23
  return unless e.get_action == KeyEvent::PRESS
22
24
  return if e.get_key > 122 # else we can't use :chr
25
+
23
26
  case e.get_key.chr.upcase
24
27
  when 'S'
25
28
  app.send :hide, false
data/test/test_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  gem 'minitest'
2
4
  require 'minitest/pride'
3
5
  require 'minitest/autorun'
@@ -1,14 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'test_helper'
2
4
  require 'java'
3
5
  require_relative '../lib/propane'
4
6
 
5
7
  Java::Monkstone::PropaneLibrary.load(JRuby.runtime)
6
8
 
7
-
8
9
  Dir.chdir(File.dirname(__FILE__))
9
-
10
+ # Vecmath Test class
10
11
  class VecmathTest < Minitest::Test
11
-
12
12
  # duck for Vec2D constructor
13
13
  Point = Struct.new(:x, :y)
14
14
  # duck for Vec3D constructor
@@ -17,12 +17,11 @@ class VecmathTest < Minitest::Test
17
17
  Pointless = Struct.new(:a, :b)
18
18
  # non-duck to test fail
19
19
  Pointless3 = Struct.new(:a, :b, :c)
20
- def setup
21
-
22
- end
20
+ def setup; end
23
21
 
24
22
  def test_equals
25
- x, y = 1.0000001, 1.01
23
+ x = 1.0000001
24
+ y = 1.01
26
25
  a = Vec2D.new(x, y)
27
26
  assert_equal(a.to_a, [x, y], 'Failed to return Vec2D as an Array')
28
27
  end
@@ -34,7 +33,8 @@ class VecmathTest < Minitest::Test
34
33
  end
35
34
 
36
35
  def test_copy_equals
37
- x, y = 1.0000001, 1.01
36
+ x = 1.0000001
37
+ y = 1.01
38
38
  a = Vec2D.new(x, y)
39
39
  b = a.copy
40
40
  assert_equal(a.to_a, b.to_a, 'Failed deep copy')
@@ -47,20 +47,23 @@ class VecmathTest < Minitest::Test
47
47
  end
48
48
 
49
49
  def test_constructor_fixnum
50
- val = Point.new(1, 8) # duck type fixnum
50
+ # duck type fixnum
51
+ val = Point.new(1, 8)
51
52
  expected = Vec2D.new(val)
52
53
  assert_equal(expected, Vec2D.new(1.0, 8.0), 'Failed duck type constructor fixnum')
53
54
  end
54
55
 
55
56
  def test_failed_duck_type
56
- val = Pointless.new(1.0, 8.0) # non duck type
57
+ # non duck type
58
+ val = Pointless.new(1.0, 8.0)
57
59
  assert_raises TypeError do
58
60
  Vec2D.new(val)
59
61
  end
60
62
  end
61
63
 
62
64
  def test_copy_not_equals
63
- x, y = 1.0000001, 1.01
65
+ x = 1.0000001
66
+ y = 1.01
64
67
  a = Vec2D.new(x, y)
65
68
  b = a.copy
66
69
  b *= 0
@@ -121,7 +124,7 @@ class VecmathTest < Minitest::Test
121
124
 
122
125
  def test_random
123
126
  a = Vec2D.random
124
- assert a.kind_of? Vec2D
127
+ assert a.is_a? Vec2D
125
128
  assert_in_epsilon(a.mag, 1.0)
126
129
  end
127
130
 
@@ -133,7 +136,7 @@ class VecmathTest < Minitest::Test
133
136
 
134
137
  def test_mag
135
138
  a = Vec2D.new(-3, -4)
136
- assert_in_epsilon(a.mag, 5, 0.001,'Failed to return magnitude of vector')
139
+ assert_in_epsilon(a.mag, 5, 0.001, 'Failed to return magnitude of vector')
137
140
  end
138
141
 
139
142
  def test_mag_variant
@@ -233,14 +236,16 @@ class VecmathTest < Minitest::Test
233
236
  end
234
237
 
235
238
  def test_rotate
236
- x, y = 20, 10
239
+ x = 20
240
+ y = 10
237
241
  b = Vec2D.new(x, y)
238
242
  a = b.rotate(Math::PI / 2)
239
243
  assert_equal(a, Vec2D.new(-10, 20), 'Failed to rotate vector by scalar radians')
240
244
  end
241
245
 
242
246
  def test_hash_index
243
- x, y = 10, 20
247
+ x = 10
248
+ y = 20
244
249
  b = Vec2D.new(x, y)
245
250
  assert_equal(b[:x], x, 'Failed to hash index')
246
251
  end
@@ -275,7 +280,7 @@ class VecmathTest < Minitest::Test
275
280
  a = Vec2D.new(200, 0)
276
281
  b = Vec2D.new(0, 200)
277
282
  # Expected result is an area, twice that of the triangle created by the vectors
278
- assert_equal((a).cross(b).abs, 40_000.0, 'Failed area test using 2D vector cross product')
283
+ assert_equal(a.cross(b).abs, 40_000.0, 'Failed area test using 2D vector cross product')
279
284
  end
280
285
 
281
286
  def test_cross_non_zero # Could be used to calculate area of triangle
@@ -294,7 +299,9 @@ class VecmathTest < Minitest::Test
294
299
  end
295
300
 
296
301
  def test_equals3
297
- x, y, z = 1.0000001, 1.01, 0.0
302
+ x = 1.0000001
303
+ y = 1.01
304
+ z = 0.0
298
305
  a = Vec3D.new(x, y)
299
306
  assert_equal(a.to_a, [x, y, z], 'Failed to return Vec3D as an Array')
300
307
  end
@@ -325,14 +332,18 @@ class VecmathTest < Minitest::Test
325
332
  end
326
333
 
327
334
  def test_copy_equals3
328
- x, y, z = 1.0000001, 1.01, 1
335
+ x = 1.0000001
336
+ y = 1.01
337
+ z = 1
329
338
  a = Vec3D.new(x, y, z)
330
339
  b = a.copy
331
340
  assert_equal(a.to_a, b.to_a, 'Failed deep copy')
332
341
  end
333
342
 
334
343
  def test_copy_not_equals3
335
- x, y, z = 1.0000001, 1.01, 6.0
344
+ x = 1.0000001
345
+ y = 1.01
346
+ z = 6.0
336
347
  a = Vec3D.new(x, y, z)
337
348
  b = a.copy
338
349
  b *= 0
@@ -377,13 +388,13 @@ class VecmathTest < Minitest::Test
377
388
 
378
389
  def test_random3
379
390
  a = Vec3D.random
380
- assert a.kind_of? Vec3D
391
+ assert a.is_a? Vec3D
381
392
  assert_in_epsilon(a.mag, 1.0)
382
393
  end
383
394
 
384
395
  def test_assign_value3
385
396
  a = Vec3D.new(3, 5)
386
- a.x=23
397
+ a.x = 23
387
398
  assert_equal(a.x, 23, 'Failed to assign x value')
388
399
  end
389
400
 
@@ -512,7 +523,9 @@ class VecmathTest < Minitest::Test
512
523
  end
513
524
 
514
525
  def test_hash_key3
515
- x, y, z = 10, 20, 50
526
+ x = 10
527
+ y = 20
528
+ z = 50
516
529
  b = Vec3D.new(x, y, z)
517
530
  assert_equal(b[:x], x, 'Failed hash key access')
518
531
  assert_equal(b[:y], y, 'Failed hash key access')
data/vendors/Rakefile CHANGED
@@ -1,78 +1,76 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'rake/clean'
3
4
 
4
- WARNING = <<-EOS
5
+ WARNING = <<-WGET
5
6
  WARNING: you may not have wget installed, you could just download
6
7
  the correct version of propane-examples (see EXAMPLES vendors directory)
7
- EOS
8
- SOUND = 'sound.zip'.freeze
9
- SOUND_VERSION = 'v1.3.2' # version 1.3.2
10
- GLVIDEO = 'processing-glvideo.zip'
11
- VIDEO = 'video-2.0-beta4.zip'
12
- VIDEO_VERSION = 'r6-v2.0-beta4'
13
- EXAMPLES = '2.7'.freeze
8
+ WGET
9
+ SOUND = 'sound.zip'
10
+ PROCESSING_GITHUB = 'https://github.com/processing'
11
+ PROPANE_EXAMPLES = 'https://github.com/ruby-processing/propane-examples'
12
+ VIDEO = 'video.zip'
13
+ DOWNLOAD = 'releases/download/latest'
14
+ EXAMPLES = '3.0'
14
15
  HOME_DIR = ENV['HOME']
15
- MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
16
+ LIBRARY = File.join(HOME_DIR, '.propane', 'libraries')
17
+ MAC_OR_LINUX = /linux|mac|darwin/.match?(RbConfig::CONFIG['host_os'])
16
18
 
17
- CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
19
+ CLOBBER.include(EXAMPLES, SOUND, VIDEO)
18
20
 
19
21
  desc 'download, and copy propane examples'
20
22
  task default: [:download_and_copy_samples]
21
23
 
22
24
  desc 'download and copy examples to user home'
23
- task download_and_copy_samples: [:download_examples, :copy_examples]
25
+ task download_and_copy_samples: %i[download_examples copy_examples]
24
26
 
25
27
  task :download_examples
26
28
  file_name = MAC_OR_LINUX.nil? ? "#{EXAMPLES}.zip" : "#{EXAMPLES}.tar.gz"
27
- wget_base = 'wget https://github.com/ruby-processing/propane-examples'
29
+ wget_base = ['wget', PROPANE_EXAMPLES].join(' ')
28
30
  wget_string = [wget_base, 'archive', file_name].join('/')
29
31
  file file_name do
30
32
  begin
31
33
  sh wget_string
32
- rescue
34
+ rescue StandardError
33
35
  warn(WARNING)
34
36
  end
35
37
  end
36
38
 
37
39
  desc 'download and copy sound library to ~/.propane'
38
- task download_and_copy_sound: [:init_dir, :download_sound, :copy_sound, :clobber]
40
+ task download_and_copy_sound: %i[init_dir download_sound copy_sound clobber]
39
41
 
40
42
  desc 'download and copy video library to ~/.propane'
41
- task download_and_copy_video: [:init_dir, :download_video, :copy_video, :clobber]
43
+ task download_and_copy_video: %i[init_dir download_video copy_video clobber]
42
44
 
43
45
  desc 'download sound library'
44
46
  task :download_sound do
45
- wget_base = 'wget https://github.com/processing/processing-sound'
46
- wget_string = [wget_base, 'releases/download', SOUND_VERSION, SOUND].join('/')
47
+ wget_base = ['wget', PROCESSING_GITHUB].join(' ')
48
+ wget_string = [wget_base, 'processing-sound', DOWNLOAD, SOUND].join('/')
47
49
  begin
48
50
  sh wget_string
49
- rescue
51
+ rescue StandardError
50
52
  warn(WARNING)
51
53
  end
52
54
  end
53
55
 
56
+ desc 'initialize ~/.propane directories'
57
+ task :init_dir do
58
+ FileUtils.mkdir_p LIBRARY unless File.exist? LIBRARY
59
+ end
60
+
54
61
  desc 'download video library'
55
62
  task :download_video do
56
- wget_base = 'wget https://github.com/processing/processing-video'
57
- wget_string = [wget_base, 'releases/download', VIDEO_VERSION, VIDEO].join('/')
63
+ wget_base = ['wget', PROCESSING_GITHUB].join(' ')
64
+ wget_string = [wget_base, 'processing-video', DOWNLOAD, VIDEO].join('/')
58
65
  begin
59
66
  sh wget_string
60
- rescue
67
+ rescue StandardError
61
68
  warn(WARNING)
62
69
  end
63
70
  end
64
71
 
65
- desc 'initialize ~/.propane directories'
66
- task :init_dir do
67
- unless File.exist? "#{HOME_DIR}/.propane/libraries"
68
- sh "mkdir -p ~/.propane"
69
- sh "mkdir -p ~/.propane/libraries"
70
- end
71
- end
72
-
73
-
74
72
  desc 'copy examples'
75
- task :copy_examples => file_name do
73
+ task copy_examples: file_name do
76
74
  if MAC_OR_LINUX.nil?
77
75
  sh "unzip #{EXAMPLES}.zip"
78
76
  else
@@ -84,20 +82,17 @@ task :copy_examples => file_name do
84
82
  end
85
83
 
86
84
  desc 'copy sound library'
87
- task :copy_sound => SOUND do
88
- directory "~/.propane"
89
- directory "~/.propane/libraries"
85
+ task copy_sound: SOUND do
90
86
  sh "unzip #{SOUND}"
91
- sh "rm -r #{HOME_DIR}/.propane/libraries/sound" if File.exist? "#{HOME_DIR}/.propane/libraries/sound"
92
- sh "cp -r sound #{HOME_DIR}/.propane/libraries"
87
+ sh "rm -r #{LIBRARY}/sound" if File.exist? "#{LIBRARY}/sound"
88
+ sh "cp -r sound #{LIBRARY}"
93
89
  sh 'rm -r sound'
94
- sh 'rm -r __MACOSX'
95
90
  end
96
91
 
97
92
  desc 'copy video library'
98
- task :copy_video => VIDEO do
93
+ task copy_video: VIDEO do
99
94
  sh "unzip #{VIDEO}"
100
- sh "rm -r #{HOME_DIR}/.propane/libraries/video" if File.exist? "#{HOME_DIR}/.propane/libraries/video"
101
- sh "cp -r video #{HOME_DIR}/.propane/libraries/video"
95
+ sh "rm -r #{LIBRARY}/video" if File.exist? "#{LIBRARY}/video"
96
+ sh "cp -r video #{LIBRARY}"
102
97
  sh 'rm -r video'
103
98
  end
metadata CHANGED
@@ -1,63 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: propane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.8.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-22 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '12.3'
18
+ version: 0.1.0
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 0.1.3
22
+ name: jruby-openssl
20
23
  type: :development
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '12.3'
29
+ version: 0.1.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.1.3
27
33
  - !ruby/object:Gem::Dependency
28
- name: minitest
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - "~>"
32
37
  - !ruby/object:Gem::Version
33
- version: '5.11'
38
+ version: '5.14'
39
+ name: minitest
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '5.11'
46
+ version: '5.14'
41
47
  - !ruby/object:Gem::Dependency
42
- name: arcball
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
50
  - - "~>"
49
51
  - !ruby/object:Gem::Version
50
- version: '1.0'
52
+ version: '12.3'
53
+ name: rake
51
54
  type: :runtime
52
55
  prerelease: false
53
56
  version_requirements: !ruby/object:Gem::Requirement
54
57
  requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '12.3'
61
+ - !ruby/object:Gem::Dependency
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '1.0'
55
67
  - - ">="
56
68
  - !ruby/object:Gem::Version
57
- version: 1.0.0
69
+ version: 1.0.2
70
+ name: arcball
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
58
75
  - - "~>"
59
76
  - !ruby/object:Gem::Version
60
77
  version: '1.0'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 1.0.2
61
81
  description: " A batteries included version of processing in ruby targetting jdk11.\n"
62
82
  email:
63
83
  - mamba2928@yahoo.co.uk
@@ -91,7 +111,7 @@ files:
91
111
  - lib/jogl-all-natives-macosx-universal.jar
92
112
  - lib/jogl-all-natives-windows-amd64.jar
93
113
  - lib/jogl-all.jar
94
- - lib/propane-3.4.2.jar
114
+ - lib/propane-3.8.0.jar
95
115
  - lib/propane.rb
96
116
  - lib/propane/app.rb
97
117
  - lib/propane/creators/sketch_class.rb
@@ -115,7 +135,6 @@ files:
115
135
  - library/library_proxy/README.md
116
136
  - library/library_proxy/library_proxy.rb
117
137
  - library/net/net.rb
118
- - library/simplex_noise/simplex_noise.rb
119
138
  - library/slider/slider.rb
120
139
  - library/vector_utils/vector_utils.rb
121
140
  - library/video_event/video_event.rb
@@ -131,10 +150,15 @@ files:
131
150
  - src/main/java/monkstone/MathToolModule.java
132
151
  - src/main/java/monkstone/PropaneLibrary.java
133
152
  - src/main/java/monkstone/core/LibraryProxy.java
153
+ - src/main/java/monkstone/fastmath/DegLutTables.java
134
154
  - src/main/java/monkstone/fastmath/Deglut.java
135
155
  - src/main/java/monkstone/fastmath/package-info.java
136
156
  - src/main/java/monkstone/filechooser/Chooser.java
157
+ - src/main/java/monkstone/noise/Noise.java
158
+ - src/main/java/monkstone/noise/NoiseGenerator.java
159
+ - src/main/java/monkstone/noise/NoiseMode.java
137
160
  - src/main/java/monkstone/noise/SimplexNoise.java
161
+ - src/main/java/monkstone/noise/ValueNoise.java
138
162
  - src/main/java/monkstone/slider/CustomHorizontalSlider.java
139
163
  - src/main/java/monkstone/slider/CustomVerticalSlider.java
140
164
  - src/main/java/monkstone/slider/SimpleHorizontalSlider.java
@@ -156,8 +180,10 @@ files:
156
180
  - src/main/java/monkstone/videoevent/MovieEvent.java
157
181
  - src/main/java/monkstone/videoevent/package-info.java
158
182
  - src/main/java/processing/awt/PGraphicsJava2D.java
183
+ - src/main/java/processing/awt/PImageAWT.java
159
184
  - src/main/java/processing/awt/PShapeJava2D.java
160
185
  - src/main/java/processing/awt/PSurfaceAWT.java
186
+ - src/main/java/processing/awt/ShimAWT.java
161
187
  - src/main/java/processing/core/PApplet.java
162
188
  - src/main/java/processing/core/PConstants.java
163
189
  - src/main/java/processing/core/PFont.java
@@ -224,8 +250,6 @@ files:
224
250
  - src/main/java/processing/opengl/shaders/ColorFrag.glsl
225
251
  - src/main/java/processing/opengl/shaders/ColorVert.glsl
226
252
  - src/main/java/processing/opengl/shaders/LightFrag.glsl
227
- - src/main/java/processing/opengl/shaders/LightVert-brcm.glsl
228
- - src/main/java/processing/opengl/shaders/LightVert-vc4.glsl
229
253
  - src/main/java/processing/opengl/shaders/LightVert.glsl
230
254
  - src/main/java/processing/opengl/shaders/LineFrag.glsl
231
255
  - src/main/java/processing/opengl/shaders/LineVert.glsl
@@ -234,8 +258,6 @@ files:
234
258
  - src/main/java/processing/opengl/shaders/PointVert.glsl
235
259
  - src/main/java/processing/opengl/shaders/TexFrag.glsl
236
260
  - src/main/java/processing/opengl/shaders/TexLightFrag.glsl
237
- - src/main/java/processing/opengl/shaders/TexLightVert-brcm.glsl
238
- - src/main/java/processing/opengl/shaders/TexLightVert-vc4.glsl
239
261
  - src/main/java/processing/opengl/shaders/TexLightVert.glsl
240
262
  - src/main/java/processing/opengl/shaders/TexVert.glsl
241
263
  - src/main/resources/icon/icon-1024.png
@@ -251,6 +273,7 @@ files:
251
273
  - test/deglut_spec_test.rb
252
274
  - test/helper_methods_test.rb
253
275
  - test/math_tool_test.rb
276
+ - test/native_folder.rb
254
277
  - test/respond_to_test.rb
255
278
  - test/sketches/key_event.rb
256
279
  - test/sketches/library/my_library/my_library.rb
@@ -262,7 +285,7 @@ licenses:
262
285
  - GPL-3.0
263
286
  - LGPL-2.0
264
287
  metadata: {}
265
- post_install_message:
288
+ post_install_message:
266
289
  rdoc_options: []
267
290
  require_paths:
268
291
  - lib
@@ -279,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
302
  requirements:
280
303
  - java runtime >= 11.0.2+
281
304
  rubygems_version: 3.0.6
282
- signing_key:
305
+ signing_key:
283
306
  specification_version: 4
284
307
  summary: ruby implementation of processing-4.0 on MacOS, linux and windows (64bit
285
308
  only)
@@ -288,6 +311,7 @@ test_files:
288
311
  - test/deglut_spec_test.rb
289
312
  - test/helper_methods_test.rb
290
313
  - test/math_tool_test.rb
314
+ - test/native_folder.rb
291
315
  - test/respond_to_test.rb
292
316
  - test/sketches/key_event.rb
293
317
  - test/sketches/library/my_library/my_library.rb