jruby_art 1.4.6 → 1.4.7

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: 5e7948e73b776e9dfca7b46777e50760a3619c113c7fd0ca413862da34574920
4
- data.tar.gz: f62b554ccda776b2062dc60f327dd3cd400687f74c2ad94a3f073d884e1351f0
3
+ metadata.gz: ac6a3c365c5e0b4fc36d08129d47204316f92a05890f1fe0a239ddee0fb67126
4
+ data.tar.gz: '0397d79178b171f627abf1f0d39a09430868b41475cfdac3de5e1711bcc6069d'
5
5
  SHA512:
6
- metadata.gz: 336b393947c3c19ca50a5da9e2f0bf66cae7de3ca96993379a6577114c734d0f780d52540c5f2210baf28212c5dbde5d1bb89a17a213db39b9c3dc474ca57d64
7
- data.tar.gz: ea45cf6e5554808f8ee2019477ba5bcbebef27da90e7bf729758b649585f18d6e828cc27723958297b5007c58db56c2876c9726fc025b288358329cb983ed246
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
- buf = create_graphics(buf_width, buf_height, renderer)
15
- buf.begin_draw
16
- yield buf
17
- buf.end_draw
18
- buf
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(
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  require 'yaml'
4
- VERSION = '3.3.6'.freeze # processing version
4
+ VERSION = '3.3.7'.freeze # processing version
5
5
  HOME = ENV['HOME']
6
6
  # Abstract Installer class
7
7
  class Installer
@@ -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 or GLSL files we
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.4.6'.freeze
4
+ VERSION = '1.4.7'.freeze
5
5
  end
Binary file
@@ -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-17 Martin Prout.
3
+ # Copyright (c) 2016-18 Martin Prout.
4
4
 
5
5
  java_import 'monkstone.slider.CustomHorizontalSlider'
6
6
  java_import 'monkstone.slider.CustomVerticalSlider'
@@ -11,7 +11,7 @@ EOS
11
11
 
12
12
  JRUBYC_VERSION = '9.1.16.0'
13
13
 
14
- EXAMPLES = '2.8'
14
+ EXAMPLES = '2.9'
15
15
  HOME_DIR = ENV['HOME']
16
16
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
17
17
 
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.6
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-02-22 00:00:00.000000000 Z
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.6
109
+ - processing = 3.3.7
110
110
  rubyforge_project:
111
111
  rubygems_version: 2.7.6
112
112
  signing_key: