jruby_art 1.2.6 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78fe78d9b4fc7d9ed32a9334a6c476018c8e605c
4
- data.tar.gz: d9d3a711138cdb6e0dc0e1fe44522f68bed34003
3
+ metadata.gz: 4da6eeb261a073b3c3f6112d128ec968be2ac318
4
+ data.tar.gz: 58976723ac243d117a2fa73bc2629c6181b77c39
5
5
  SHA512:
6
- metadata.gz: 845ddebe3786fec96a9dc18a89f19c2ca8b35ac747754933871ecb6f9e0874cda1167bdfb8982778a1c5034fb11134b4dc2e06fe2c82115d5813d9a684287ef2
7
- data.tar.gz: b95e566503b2ac46c9ee32908c10a135243338aad858faf364a45128f5973c7cacd6844f3d9b2a406481182af1ffa93ec2eddd924e3f01fa8b3f6f907c21d4cd
6
+ metadata.gz: fccd6b7fd496ca222f3bb42407df58b727ea07005cfe2ee2c4cbd3bfda38ae44ac4f23c88f75a90c9babf72e2df1fbad2d8976f1f55960085a9b5523d88d71bc
7
+ data.tar.gz: f3b67a676d082efdde7795b57beef2af35f56a13435f2708169570959c2080dfd4d52abb271e928b2ae8ec33ff9a8a916380122a1b6164311ad23a7c95d31d43
@@ -24,8 +24,8 @@ class Installer
24
24
  proot = "#{home}/processing-#{VERSION}"
25
25
  proot = "/Java/Processing-#{VERSION}" if os == :windows
26
26
  proot = "/Applications/Processing.app/Contents/Java" if os == :mac
27
- settings = %w(PROCESSING_ROOT JRUBY sketchbook_path template MAX_WATCH)
28
- values = [proot, true, sketch, 'bare', 32]
27
+ settings = %w(PROCESSING_ROOT JRUBY sketchbook_path template MAX_WATCH sketch_title width height)
28
+ values = [proot, true, sketch, 'bare', 32, 'JRubyArt Static Sketch', 600, 600]
29
29
  data = settings.zip(values).to_h
30
30
  open(path, 'w:UTF-8') { |file| file.write(data.to_yaml) }
31
31
  end
@@ -43,7 +43,7 @@ class Installer
43
43
 
44
44
  # in place of default installer class
45
45
  def install
46
- puts 'Usage: k9 setup [check | install | unpack_samples]'
46
+ puts 'Usage: k9 [--check | --install | --help]'
47
47
  end
48
48
 
49
49
  # Display the current version of JRubyArt.
@@ -17,13 +17,13 @@ module Processing
17
17
  NAKED_WRAP = <<-EOS.freeze
18
18
  class Sketch < Processing::App
19
19
  def setup
20
- sketch_title 'Nude Sketch'
20
+ sketch_title '%s'
21
21
  %s
22
22
  no_loop
23
23
  end
24
24
 
25
25
  def settings
26
- size(150, 150)
26
+ size(%d, %d)
27
27
  end
28
28
  end
29
29
  EOS
@@ -38,7 +38,10 @@ module Processing
38
38
  Processing::App.sketch_class.new unless $app
39
39
  return
40
40
  end
41
- code = no_methods ? format(NAKED_WRAP, source) : format(BARE_WRAP, source)
41
+ name = RP_CONFIG.fetch('sketch_title', 'Naked Sketch')
42
+ width = RP_CONFIG.fetch('width', 200)
43
+ height = RP_CONFIG.fetch('height', 200)
44
+ code = no_methods ? format(NAKED_WRAP, name, source, width, height) : format(BARE_WRAP, source)
42
45
  Object.class_eval code, SKETCH_PATH, -1
43
46
  Processing::App.sketch_class.new unless $app
44
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.2.6'.freeze
4
+ VERSION = '1.2.7'.freeze
5
5
  end
data/lib/rpextras.jar CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- # Usage: :wq
2
+ # Usage:
3
3
  # load_library :chooser
4
4
  #
5
5
  # def setup
@@ -16,4 +16,4 @@
16
16
  # end
17
17
  class Processing::App
18
18
  include Java::MonkstoneFilechooser::Chooser
19
- end
19
+ end
@@ -1,10 +1,9 @@
1
+ # frozen_string_literal: true
1
2
  # Here's a little library for quickly hooking up controls to sketches.
2
3
  # For messing with the parameters and such.
3
4
  # These controls will set instance variables on the sketches.
4
-
5
5
  # You can make sliders, checkboxes, buttons, and drop-down menus.
6
6
  # (optionally) pass the range and default value.
7
-
8
7
  module ControlPanel
9
8
  # class used to create slider elements for control_panel
10
9
  class Slider < javax.swing.JSlider
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  # frozen_string_literal: true
3
2
  # Here's a little library for quickly hooking up in sketch sliders.
4
3
  # Copyright (c) 2016 Martin Prout.
data/vendors/Rakefile CHANGED
@@ -8,8 +8,8 @@ WARNING = <<-EOS.freeze
8
8
 
9
9
  EOS
10
10
 
11
- JRUBYC_VERSION = '9.1.6.0'
12
- EXAMPLES = '1.7'
11
+ JRUBYC_VERSION = '9.1.7.0'
12
+ EXAMPLES = '1.8'
13
13
  HOME_DIR = ENV['HOME']
14
14
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
15
15
 
@@ -27,7 +27,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
27
27
  rescue
28
28
  warn(WARNING)
29
29
  end
30
- check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "2a45c5f24deb538343c3a9b9a3b29bbeb11fa9d91cf8649271bd07d2e1aa28cb")
30
+ check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "62983e2b6360005a65931b1cd5a5b50aa97168407feb29410454e658204521de")
31
31
  end
32
32
 
33
33
  directory "../lib/ruby"
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.2.6
4
+ version: 1.2.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: 2016-11-12 00:00:00.000000000 Z
13
+ date: 2017-01-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -103,7 +103,7 @@ requirements:
103
103
  - java runtime >= 1.8.0_111+
104
104
  - processing = 3.2.1+
105
105
  rubyforge_project:
106
- rubygems_version: 2.6.3
106
+ rubygems_version: 2.6.8
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.