jruby_art 1.5.2 → 1.6.0

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: d343ba87e75e79fc29202d79b846a27bda5445cfb1e44a80153c7c4302d594c7
4
- data.tar.gz: d9a250e69876d180d1a2fb75cb036bb8b4c07a84faa99bada6965d69ca3a158f
3
+ metadata.gz: 84cc485001db3b20b00cd886945eacc00513b9941b6a5db19a5919c6e50b4ef4
4
+ data.tar.gz: b16776047856d509191c03fe4a11dbd957da6f1e9768dff76e0ce4186578d0f3
5
5
  SHA512:
6
- metadata.gz: 9d5fcf77602678c6b2c20406813891cdebfd75f603d3f7f91168bfe13c66dc1ef39773dde4cf9fe9394fff77c63d56c5c5ac642c77257c00625f167bb1224c06
7
- data.tar.gz: c3438b1a4a89905f140a35d0813366a292012e92242cd168fefd26654dbd7a686198d05d43ab0d371a1d51fb8f4625c0123af4cfcb68753f321a9913b0ec174a
6
+ metadata.gz: fdb98851670c58a909cbee43f90b5519e8944e9f8565fa2501f31aa468b1a2f3c7704717ef1bcb9809579b07ed8bd23eaefed5546ce449fc347b3dcf584da2cc
7
+ data.tar.gz: f466f428a0e7a3c7d8e1f3d35d0d50efacae38e803b590a285b704cc530edcbdc161939bc0773b576c39cbff6b8a74ae7d06c8fc351bb5dd53302b8abd4631ea
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  require 'yaml'
4
- VERSION = '3.3.7'.freeze # processing version
4
+ VERSION = '3.4'.freeze # processing version
5
5
  HOME = ENV['HOME']
6
6
  # Abstract Installer class
7
7
  class Installer
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # A wrapper for version
3
3
  module JRubyArt
4
- VERSION = '1.5.2'.freeze
4
+ VERSION = '1.6.0'.freeze
5
5
  end
Binary file
@@ -0,0 +1,26 @@
1
+ java_import Java::Monkstone::ColorUtil
2
+
3
+ # class wraps a java color array, supports shuffle!, last and ruby_string
4
+ # as well as ability to initialize with an array of "web" color string
5
+ class ColorGroup
6
+ attr_reader :colors
7
+ def initialize(p5cols)
8
+ @colors = p5cols
9
+ end
10
+
11
+ def self.from_web_array(web)
12
+ ColorGroup.new(ColorUtil.web_array(web))
13
+ end
14
+
15
+ def shuffle!
16
+ @colors = ColorUtil.shuffle(colors)
17
+ end
18
+
19
+ def ruby_string
20
+ ColorUtil.rubyString(colors)
21
+ end
22
+
23
+ def last
24
+ colors[0]
25
+ end
26
+ end
@@ -9,9 +9,9 @@ WARNING = <<-EOS.freeze
9
9
  EOS
10
10
 
11
11
 
12
- JRUBYC_VERSION = '9.2.0.0'
12
+ JRUBYC_VERSION = '9.2.1.0'
13
13
 
14
- EXAMPLES = '3.1'
14
+ EXAMPLES = '3.2'
15
15
  HOME_DIR = ENV['HOME']
16
16
  MAC_OR_LINUX = /linux|mac|darwin/ =~ RbConfig::CONFIG['host_os']
17
17
 
@@ -29,7 +29,7 @@ file "jruby-complete-#{JRUBYC_VERSION}.jar" do
29
29
  rescue
30
30
  warn(WARNING)
31
31
  end
32
- check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "0db6726861b57e927c3a49725c30278795434c8b27a4520013efb4aabdc59def")
32
+ check_sha256("jruby-complete-#{JRUBYC_VERSION}.jar", "25998288595780e092cdac048c61d9cf0125095cbde254ae0ed2b0cfd8a7f9d2")
33
33
  end
34
34
 
35
35
  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.5.2
4
+ version: 1.6.0
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-07-02 00:00:00.000000000 Z
13
+ date: 2018-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -40,9 +40,10 @@ dependencies:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '5.10'
43
- description: " JRubyArt is a ruby wrapper for the processing art framework, with
44
- enhanced\n functionality. Use both processing libraries and ruby gems in your sketches.\n
45
- \ Features create/run/watch/live modes. \n"
43
+ description: |2
44
+ JRubyArt is a ruby wrapper for the processing art framework, with enhanced
45
+ functionality. Use both processing libraries and ruby gems in your sketches.
46
+ Features create/run/watch/live modes.
46
47
  email: mamba2928@yahoo.co.uk
47
48
  executables:
48
49
  - k9
@@ -75,6 +76,7 @@ files:
75
76
  - lib/rpextras.jar
76
77
  - library/boids/boids.rb
77
78
  - library/chooser/chooser.rb
79
+ - library/color_group/color_group.rb
78
80
  - library/control_panel/control_panel.rb
79
81
  - library/library_proxy/README.md
80
82
  - library/library_proxy/library_proxy.rb
@@ -103,10 +105,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
105
  version: '0'
104
106
  requirements:
105
107
  - A decent graphics card
106
- - java runtime >= 1.8.0_151+
107
- - processing = 3.3.7
108
+ - java runtime >= 1.8.0_171+
109
+ - processing = 3.4
108
110
  rubyforge_project:
109
- rubygems_version: 2.7.6
111
+ rubygems_version: 2.7.7
110
112
  signing_key:
111
113
  specification_version: 4
112
114
  summary: Code as Art, Art as Code. Processing and Ruby are meant for each other.