jruby_art 1.4.6 → 1.4.7
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/jruby_art/helper_methods.rb +5 -5
- data/lib/jruby_art/installer.rb +1 -1
- data/lib/jruby_art/runners/watch.rb +4 -6
- data/lib/jruby_art/version.rb +1 -1
- data/lib/rpextras.jar +0 -0
- data/library/slider/slider.rb +1 -1
- data/vendors/Rakefile +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6a3c365c5e0b4fc36d08129d47204316f92a05890f1fe0a239ddee0fb67126
|
4
|
+
data.tar.gz: '0397d79178b171f627abf1f0d39a09430868b41475cfdac3de5e1711bcc6069d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87635de1c259c5a1e4673f551db357e3824cb19b7c2260010646a3ba52a3178fdfd189e5e99aaa670b723f6ca300093cfdc2a5e774411a8b9f2db4e45a59a01b
|
7
|
+
data.tar.gz: cefd4c98c57a35a536fc1d3779f3374b654a20295328f6436122d085b16cd13fe478bd8a522f363a483799c5055956c38d28a3e0e65f633feb2a9387d4a559f7
|
@@ -11,11 +11,11 @@ module Processing
|
|
11
11
|
# You can optionally pass it a width, a height, and a renderer.
|
12
12
|
# Takes care of starting and ending the draw for you.
|
13
13
|
def buffer(buf_width = width, buf_height = height, renderer = @render_mode)
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
create_graphics(buf_width, buf_height, renderer).tap do |buffer|
|
15
|
+
buffer.begin_draw
|
16
|
+
yield buffer
|
17
|
+
buffer.end_draw
|
18
|
+
end
|
19
19
|
end
|
20
20
|
|
21
21
|
def kamera(
|
data/lib/jruby_art/installer.rb
CHANGED
@@ -13,7 +13,7 @@ module Processing
|
|
13
13
|
WATCH_MESSAGE ||= <<-EOS.freeze
|
14
14
|
Warning:
|
15
15
|
To protect you from running watch mode in a top level
|
16
|
-
directory with lots of nested ruby
|
16
|
+
directory with lots of nested ruby files we
|
17
17
|
limit the number of files to watch to %d.
|
18
18
|
If you really want to watch %d files you should
|
19
19
|
increase MAX_WATCH in ~/.jruby_art/config.yml
|
@@ -21,6 +21,9 @@ module Processing
|
|
21
21
|
EOS
|
22
22
|
SLEEP_TIME = 0.2
|
23
23
|
def initialize
|
24
|
+
count = Dir["**.*rb"].length
|
25
|
+
max_watch = RP_CONFIG.fetch('MAX_WATCH', 20)
|
26
|
+
return warn format(WATCH_MESSAGE, max_watch, count) if count > max_watch.to_i
|
24
27
|
reload_files_to_watch
|
25
28
|
@time = Time.now
|
26
29
|
start_watching
|
@@ -71,11 +74,6 @@ module Processing
|
|
71
74
|
|
72
75
|
def reload_files_to_watch
|
73
76
|
@files = Dir.glob(File.join(SKETCH_ROOT, '**/*.{rb,glsl}'))
|
74
|
-
count = @files.length
|
75
|
-
max_watch = RP_CONFIG.fetch('MAX_WATCH', 32)
|
76
|
-
return unless count > max_watch.to_i
|
77
|
-
warn format(WATCH_MESSAGE, max_watch, count)
|
78
|
-
abort
|
79
77
|
end
|
80
78
|
end
|
81
79
|
end
|
data/lib/jruby_art/version.rb
CHANGED
data/lib/rpextras.jar
CHANGED
Binary file
|
data/library/slider/slider.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# Here's a little library for quickly hooking up in sketch sliders.
|
3
|
-
# Copyright (c) 2016-
|
3
|
+
# Copyright (c) 2016-18 Martin Prout.
|
4
4
|
|
5
5
|
java_import 'monkstone.slider.CustomHorizontalSlider'
|
6
6
|
java_import 'monkstone.slider.CustomVerticalSlider'
|
data/vendors/Rakefile
CHANGED
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.4.
|
4
|
+
version: 1.4.7
|
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: 2018-
|
13
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
107
107
|
- A decent graphics card
|
108
108
|
- java runtime >= 1.8.0_151+
|
109
|
-
- processing = 3.3.
|
109
|
+
- processing = 3.3.7
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 2.7.6
|
112
112
|
signing_key:
|